Remove explicit uses of -emit-llvm, the test infrastructure adds it

automatically.  Use -S with llvm-gcc rather than -c, so tests can
work when llvm-gcc is really dragonegg (which can output IR with -S
but not -c).

llvm-svn: 120158
This commit is contained in:
Duncan Sands 2010-11-25 21:24:35 +00:00
parent 2b5243d096
commit b32d19de6a
88 changed files with 121 additions and 121 deletions

View File

@ -1,4 +1,4 @@
/* RUN: %llvmgcc -xc %s -c -o - | llvm-dis | not grep __builtin_
/* RUN: %llvmgcc -xc %s -S -o - | not grep __builtin_
*
* __builtin_longjmp/setjmp should get transformed into llvm.setjmp/longjmp
* just like explicit setjmp/longjmp calls are.

View File

@ -1,4 +1,4 @@
// RUN: %llvmgcc -xc %s -c -o %t.o
// RUN: %llvmgcc -xc %s -S -o %t.o
int test(_Bool pos, _Bool color) {
return 0;

View File

@ -1,4 +1,4 @@
// RUN: %llvmgcc -xc %s -c -o - | llvm-dis | grep getelementptr
// RUN: %llvmgcc -xc %s -S -o - | grep getelementptr
// This should be turned into a tasty getelementptr instruction, not a nasty
// series of casts and address arithmetic.

View File

@ -1,4 +1,4 @@
// RUN: %llvmgcc -xc %s -c -o - | llvm-dis | grep getelementptr
// RUN: %llvmgcc -xc %s -S -o - | grep getelementptr
char *test(char* C) {
return C-1; // Should turn into a GEP

View File

@ -1,4 +1,4 @@
// RUN: %llvmgcc -xc %s -c -o - | llvm-dis | grep getelementptr
// RUN: %llvmgcc -xc %s -S -o - | grep getelementptr
int *test(int *X, int Y) {
return X + Y;

View File

@ -1,3 +1,3 @@
// RUN: %llvmgcc -xc %s -c -o - | llvm-dis | not grep dead_function
// RUN: %llvmgcc -xc %s -S -o - | not grep dead_function
extern __inline__ void dead_function() {}

View File

@ -1,4 +1,4 @@
// RUN: %llvmgcc -xc %s -c -o - | llvm-dis | grep llvm.memcpy
// RUN: %llvmgcc -xc %s -S -o - | grep llvm.memcpy
struct X { int V[10000]; };
struct X Global1, Global2;

View File

@ -1,4 +1,4 @@
// RUN: %llvmgcc -xc %s -c -o - | llvm-dis | grep llvm.*address | count 4
// RUN: %llvmgcc -xc %s -S -o - | grep llvm.*address | count 4
void *test1() {
return __builtin_return_address(1);

View File

@ -1,4 +1,4 @@
// RUN: %llvmgcc -xc %s -w -c -o - | llc
// RUN: %llvmgcc -xc %s -w -S -o - | llc
// XFAIL: *
// See PR2452

View File

@ -1,4 +1,4 @@
// RUN: %llvmgcc -xc %s -c -o - | llvm-dis | grep llvm.memset | count 3
// RUN: %llvmgcc -xc %s -S -o - | grep llvm.memset | count 3
void *memset(void*, int, long);
void bzero(void*, long);

View File

@ -1,4 +1,4 @@
// RUN: %llvmgcc -O3 -xc %s -c -o - | llvm-dis | not grep builtin
// RUN: %llvmgcc -O3 -xc %s -S -o - | not grep builtin
#include <math.h>

View File

@ -1,4 +1,4 @@
// RUN: %llvmgcc -xc %s -c -o - | llvm-dis | grep constant
// RUN: %llvmgcc -xc %s -S -o - | grep constant
extern const int a[]; // 'a' should be marked constant even though it's external!
int foo () {

View File

@ -1,4 +1,4 @@
// RUN: %llvmgcc -xc -std=c99 %s -c -o - | llvm-dis | grep -v llvm.isunordered | not grep call
// RUN: %llvmgcc -xc -std=c99 %s -S -o - | grep -v llvm.isunordered | not grep call
#include <math.h>

View File

@ -1,5 +1,5 @@
// RUN: %llvmgcc -c -emit-llvm %s -o - | \
// RUN: opt -std-compile-opts | llvm-dis | not grep {declare i32.*func}
// RUN: %llvmgcc -S %s -o - | \
// RUN: opt -std-compile-opts -S | not grep {declare i32.*func}
// There should not be an unresolved reference to func here. Believe it or not,
// the "expected result" is a function named 'func' which is internal and

View File

@ -1,3 +1,3 @@
// RUN: %llvmgcc -xc %s -c -o - | llvm-dis | grep -v div
// RUN: %llvmgcc -xc %s -S -o - | grep -v div
int Diff(int *P, int *Q) { return P-Q; }

View File

@ -1,4 +1,4 @@
// RUN: %llvmgcc %s -S -emit-llvm -o - | llvm-as | llvm-dis | \
// RUN: %llvmgcc %s -S -o - | llvm-as | llvm-dis | \
// RUN: grep llvm.used | grep foo | grep X
int X __attribute__((used));

View File

@ -1,4 +1,4 @@
// RUN: %llvmgcc -S -o - -emit-llvm %s
// RUN: %llvmgcc -S -o - %s
// PR1083
int svc_register (void (*dispatch) (int));

View File

@ -1,4 +1,4 @@
// RUN: %llvmgcc %s -O3 -S -o - -emit-llvm
// RUN: %llvmgcc %s -O3 -S -o -
// PR1173
struct S { char s; };

View File

@ -1,4 +1,4 @@
// RUN: %llvmgcc %s -O3 -S -o - -emit-llvm
// RUN: %llvmgcc %s -O3 -S -o -
// PR1176
typedef struct

View File

@ -1,4 +1,4 @@
// RUN: %llvmgcc %s -O3 -S -o - -emit-llvm
// RUN: %llvmgcc %s -O3 -S -o -
// PR1175
struct empty { };

View File

@ -1,4 +1,4 @@
// RUN: %llvmgcc %s -O3 -S -o - -emit-llvm
// RUN: %llvmgcc %s -O3 -S -o -
// PR1174
void zzz (char *s1, char *s2, int len, int *q)

View File

@ -1,4 +1,4 @@
// RUN: %llvmgcc -S -fnested-functions -O0 -o - -emit-llvm %s
// RUN: %llvmgcc -S -fnested-functions -O0 -o - %s
// PR915
extern void abort(void);

View File

@ -1,5 +1,5 @@
// PR947
// RUN: %llvmgcc %s -c -o -
// RUN: %llvmgcc %s -S -o -
void foo() {
void *ptr;

View File

@ -1,4 +1,4 @@
// RUN: %llvmgcc %s -S -o - -emit-llvm
// RUN: %llvmgcc %s -S -o -
void foo(void *ptr, int test) {
(ptr - ((void *) test + 0x2000));

View File

@ -1,7 +1,7 @@
// Test the -fwritable-strings option.
// RUN: %llvmgcc -O3 -S -o - -emit-llvm -fwritable-strings %s | \
// RUN: %llvmgcc -O3 -S -o - -fwritable-strings %s | \
// RUN: grep {internal global}
// RUN: %llvmgcc -O3 -S -o - -emit-llvm %s | grep {private constant}
// RUN: %llvmgcc -O3 -S -o - %s | grep {private constant}
char *X = "foo";

View File

@ -1,4 +1,4 @@
// RUN: %llvmgcc -O0 -S -o - -emit-llvm -fno-inline -fno-unit-at-a-time %s | \
// RUN: %llvmgcc -O0 -S -o - -fno-inline -fno-unit-at-a-time %s | \
// RUN: grep {call float @foo}
// Make sure the call to foo is compiled as:

View File

@ -1,4 +1,4 @@
// RUN: %llvmgcc %s -O3 -S -o - -emit-llvm | grep mul
// RUN: %llvmgcc %s -O3 -S -o - | grep mul
// PR1233
float foo(int w, float A[][w], int g, int h) {

View File

@ -1,4 +1,4 @@
// RUN: %llvmgcc %s -S -emit-llvm -o - | llc
// RUN: %llvmgcc %s -S -o - | llc
struct V { short X, Y; };
int bar() {

View File

@ -1,4 +1,4 @@
// RUN: %llvmgcc %s -S -emit-llvm -o - | llc
// RUN: %llvmgcc %s -S -o - | llc
union U { int x; float p; };
void foo() {

View File

@ -1,17 +1,17 @@
// RUN: %llvmgcc %s -S -emit-llvm -O0 -o - | grep define | grep xglobWeak | \
// RUN: %llvmgcc %s -S -O0 -o - | grep define | grep xglobWeak | \
// RUN: grep weak | count 1
// RUN: %llvmgcc %s -S -emit-llvm -O0 -o - | grep define | grep xextWeak | \
// RUN: %llvmgcc %s -S -O0 -o - | grep define | grep xextWeak | \
// RUN: grep weak | count 1
// RUN: %llvmgcc %s -S -emit-llvm -O0 -o - | grep define | \
// RUN: %llvmgcc %s -S -O0 -o - | grep define | \
// RUN: grep xWeaknoinline | grep weak | count 1
// RUN: %llvmgcc %s -S -emit-llvm -O0 -o - | grep define | \
// RUN: %llvmgcc %s -S -O0 -o - | grep define | \
// RUN: grep xWeakextnoinline | grep weak | count 1
// RUN: %llvmgcc %s -S -emit-llvm -O0 -o - | grep define | \
// RUN: %llvmgcc %s -S -O0 -o - | grep define | \
// RUN: grep xglobnoWeak | grep -v internal | grep -v weak | \
// RUN: grep -v linkonce | count 1
// RUN: %llvmgcc %s -S -emit-llvm -O0 -o - | grep define | \
// RUN: %llvmgcc %s -S -O0 -o - | grep define | \
// RUN: grep xstatnoWeak | grep internal | count 1
// RUN: %llvmgcc %s -S -emit-llvm -O0 -o - | grep define | \
// RUN: %llvmgcc %s -S -O0 -o - | grep define | \
// RUN: grep xextnoWeak | grep available_externally | grep -v weak | \
// RUN: grep -v linkonce | count 1
inline int xglobWeak(int) __attribute__((weak));

View File

@ -1,17 +1,17 @@
// RUN: %llvmgcc -std=c99 %s -S -emit-llvm -O0 -o - | grep declare | \
// RUN: %llvmgcc -std=c99 %s -S -O0 -o - | grep declare | \
// RUN: grep xglobWeak | grep extern_weak | count 1
// RUN: %llvmgcc -std=c99 %s -S -emit-llvm -O0 -o - | grep define | \
// RUN: %llvmgcc -std=c99 %s -S -O0 -o - | grep define | \
// RUN: grep xextWeak | grep weak | count 1
// RUN: %llvmgcc -std=c99 %s -S -emit-llvm -O0 -o - | grep define | \
// RUN: %llvmgcc -std=c99 %s -S -O0 -o - | grep define | \
// RUN: grep xWeaknoinline | grep weak | count 1
// RUN: %llvmgcc -std=c99 %s -S -emit-llvm -O0 -o - | grep define | \
// RUN: %llvmgcc -std=c99 %s -S -O0 -o - | grep define | \
// RUN: grep xWeakextnoinline | grep weak | count 1
// RUN: %llvmgcc -std=c99 %s -S -emit-llvm -O0 -o - | grep define | \
// RUN: %llvmgcc -std=c99 %s -S -O0 -o - | grep define | \
// RUN: grep xglobnoWeak | grep available_externally | grep -v weak | \
// RUN: grep -v linkonce | count 1
// RUN: %llvmgcc -std=c99 %s -S -emit-llvm -O0 -o - | grep define | \
// RUN: %llvmgcc -std=c99 %s -S -O0 -o - | grep define | \
// RUN: grep xstatnoWeak | grep internal | count 1
// RUN: %llvmgcc -std=c99 %s -S -emit-llvm -O0 -o - | grep define | \
// RUN: %llvmgcc -std=c99 %s -S -O0 -o - | grep define | \
// RUN: grep xextnoWeak | grep -v available_externally | grep -v weak | \
// RUN: grep -v linkonce | count 1
inline int xglobWeak(int) __attribute__((weak));

View File

@ -1,4 +1,4 @@
// RUN: %llvmgcc %s -S -emit-llvm -o - | grep {call void asm}
// RUN: %llvmgcc %s -S -o - | grep {call void asm}
struct V { short X, Y; };
int bar() {

View File

@ -1,4 +1,4 @@
// RUN: %llvmgcc %s -S -emit-llvm -o - | grep {call void asm}
// RUN: %llvmgcc %s -S -o - | grep {call void asm}
union U { int x; char* p; };
void foo() {

View File

@ -1,4 +1,4 @@
// RUN: %llvmgcc -O3 -S -o - -emit-llvm %s | grep {volatile store}
// RUN: %llvmgcc -O3 -S -o - %s | grep {volatile store}
// PR1352
struct foo {

View File

@ -1,5 +1,5 @@
// PR 1346
// RUN: %llvmgcc -c %s -o /dev/null
// RUN: %llvmgcc -S %s -o /dev/null
extern bar(void *);
void f(void *cd) {

View File

@ -1,4 +1,4 @@
// RUN: %llvmgcc -c %s -o /dev/null
// RUN: %llvmgcc -S %s -o /dev/null
static char *str;
static const struct {

View File

@ -1,6 +1,6 @@
// PR 1278
// RUN: %llvmgcc %s -S -emit-llvm -O0 -o - | grep {struct.s} | not grep "4 x i8] zeroinitializer"
// RUN: %llvmgcc %s -S -emit-llvm -O0 -o - | not grep "i32 0, i32 2"
// RUN: %llvmgcc %s -S -O0 -o - | grep {struct.s} | not grep "4 x i8] zeroinitializer"
// RUN: %llvmgcc %s -S -O0 -o - | not grep "i32 0, i32 2"
struct s {
double d1;
int s1;

View File

@ -1,4 +1,4 @@
// RUN: %llvmgcc -c -g %s -o /dev/null
// RUN: %llvmgcc -S -g %s -o /dev/null
static unsigned char out[]={0,1};
static const unsigned char str1[]="1";

View File

@ -1,6 +1,6 @@
// PR 1419
// RUN: %llvmgcc -xc -O2 %s -c -o - | llvm-dis | grep "ret i32 1"
// RUN: %llvmgcc -xc -O2 %s -S -o - | grep "ret i32 1"
struct A {
short x;
long long :0;

View File

@ -1,5 +1,5 @@
// PR 1417
// RUN: %llvmgcc -xc %s -c -o - | llvm-dis | grep "struct.anon = type \{\}"
// RUN: %llvmgcc -xc %s -S -o - | grep "struct.anon = type \{\}"
struct { } *X;

View File

@ -1,4 +1,4 @@
// RUN: %llvmgcc -S -o - -emit-llvm %s | grep memcpy
// RUN: %llvmgcc -S -o - %s | grep memcpy
// PR1421
struct A {

View File

@ -1,4 +1,4 @@
// RUN: %llvmgcc -O2 -c -emit-llvm %s -o - | llvm-dis | grep call
// RUN: %llvmgcc -O2 -S %s -o - | grep call
static int bar(int x, int y) __attribute__((noinline));

View File

@ -1,5 +1,5 @@
// RUN: %llvmgcc -c -emit-llvm %s -o - | llvm-dis | grep llvm.global.annotations
// RUN: %llvmgcc -c -emit-llvm %s -o - | llvm-dis | grep llvm.var.annotation | count 3
// RUN: %llvmgcc -S %s -o - | grep llvm.global.annotations
// RUN: %llvmgcc -S %s -o - | grep llvm.var.annotation | count 3
#include <stdio.h>

View File

@ -1,4 +1,4 @@
// RUN: %llvmgcc %s -o - -S -emit-llvm -O3 | grep {i8 signext}
// RUN: %llvmgcc %s -o - -S -O3 | grep {i8 signext}
// PR1513
struct s{

View File

@ -1,4 +1,4 @@
// RUN: %llvmgcc -c -emit-llvm %s -o - | llvm-dis | grep noalias
// RUN: %llvmgcc -S %s -o - | grep noalias
void foo(int * __restrict myptr1, int * myptr2) {
myptr1[0] = 0;

View File

@ -1,5 +1,5 @@
// RUN: %llvmgcc -O3 -S -o - -emit-llvm %s | grep {align 1} | count 2
// RUN: %llvmgcc -O3 -S -o - -emit-llvm %s | llc
// RUN: %llvmgcc -O3 -S -o - %s | grep {align 1} | count 2
// RUN: %llvmgcc -O3 -S -o - %s | llc
struct p {
char a;

View File

@ -1,3 +1,3 @@
// RUN: %llvmgcc -O2 -c %s -o /dev/null
// RUN: %llvmgcc -O2 -S %s -o /dev/null
void f(_Complex float z);
void g() { f(1.0i); }

View File

@ -1,4 +1,4 @@
// RUN: %llvmgcc -xc -Os -c %s -o /dev/null
// RUN: %llvmgcc -xc -Os -S %s -o /dev/null
// PR1641
struct A {

View File

@ -1,6 +1,6 @@
// RUN: %llvmgcc -S -emit-llvm %s -o - | grep llvm.gcroot
// RUN: %llvmgcc -S -emit-llvm %s -o - | grep llvm.gcroot | count 6
// RUN: %llvmgcc -S -emit-llvm %s -o - | llvm-as
// RUN: %llvmgcc -S %s -o - | grep llvm.gcroot
// RUN: %llvmgcc -S %s -o - | grep llvm.gcroot | count 6
// RUN: %llvmgcc -S %s -o - | llvm-as
typedef struct foo_s
{

View File

@ -1,4 +1,4 @@
// RUN: %llvmgcc -c %s -o /dev/null
// RUN: %llvmgcc -S %s -o /dev/null
void bork() {
int Qux[33] = {0};
}

View File

@ -1,4 +1,4 @@
// RUN: %llvmgcc -S %s -emit-llvm -o - | grep "signext" | count 4
// RUN: %llvmgcc -S %s -o - | grep "signext" | count 4
signed char foo1() { return 1; }

View File

@ -1,5 +1,5 @@
// RUN: %llvmgcc -O3 -S -o - -emit-llvm %s | not grep readonly
// RUN: %llvmgcc -O3 -S -o - -emit-llvm %s | not grep readnone
// RUN: %llvmgcc -O3 -S -o - %s | not grep readonly
// RUN: %llvmgcc -O3 -S -o - %s | not grep readnone
// The struct being passed byval means that we cannot mark the

View File

@ -1,4 +1,4 @@
// RUN: %llvmgcc -Werror -c %s -o /dev/null
// RUN: %llvmgcc -Werror -S %s -o /dev/null
#pragma mark LLVM's world
#ifdef DO_ERROR
#error LLVM's world

View File

@ -1,4 +1,4 @@
// RUN: %llvmgcc %s -S -emit-llvm -o - | grep llvm.global_ctors
// RUN: %llvmgcc %s -S -o - | grep llvm.global_ctors
int __attribute__((constructor)) foo(void) {
return 0;
}

View File

@ -1,4 +1,4 @@
// RUN: %llvmgcc %s -S -emit-llvm -o - | grep llvm.atomic
// RUN: %llvmgcc %s -S -o - | grep llvm.atomic
// XFAIL: sparc-sun-solaris2|arm
// Feature currently implemented only for x86, alpha, powerpc.

View File

@ -1,5 +1,5 @@
// RUN: %llvmgcc %s -S -fno-unit-at-a-time -emit-llvm -O0 -o - | not grep sabrina
// RUN: %llvmgcc %s -S -funit-at-a-time -emit-llvm -O0 -o - | not grep sabrina
// RUN: %llvmgcc %s -S -fno-unit-at-a-time -O0 -o - | not grep sabrina
// RUN: %llvmgcc %s -S -funit-at-a-time -O0 -o - | not grep sabrina
static inline int sabrina (void) __attribute__((always_inline));
static inline int sabrina (void)

View File

@ -1,4 +1,4 @@
/* RUN: %llvmgcc %s -S -o - -emit-llvm -O0 | grep {zeroinitializer.*zeroinitializer.*zeroinitializer.*zeroinitializer.*zeroinitializer.*zeroinitializer}
/* RUN: %llvmgcc %s -S -o - -O0 | grep {zeroinitializer.*zeroinitializer.*zeroinitializer.*zeroinitializer.*zeroinitializer.*zeroinitializer}
The FE must generate padding here both at the end of each PyG_Head and
between array elements. Reduced from Python. */

View File

@ -1,4 +1,4 @@
/* RUN: %llvmgcc %s -S -o - -emit-llvm -O0 | grep zeroinitializer | count 1
/* RUN: %llvmgcc %s -S -o - -O0 | grep zeroinitializer | count 1
The FE must not generate padding here between array elements. PR 2533. */

View File

@ -1,4 +1,4 @@
// RUN: %llvmgcc -c %s
// RUN: %llvmgcc -S %s
// PR2987
struct S2045
{

View File

@ -1,4 +1,4 @@
// RUN: %llvmgcc -S -emit-llvm -o - %s | grep weak
// RUN: %llvmgcc -S -o - %s | grep weak
// PR2691
void init_IRQ(void) __attribute__((weak, alias("native_init_IRQ")));

View File

@ -1,4 +1,4 @@
// RUN: %llvmgcc %s -S -emit-llvm -O2 -o -
// RUN: %llvmgcc %s -S -O2 -o -
// PR3028
int g_187;

View File

@ -1,4 +1,4 @@
// RUN: %llvmgcc -c -emit-llvm %s -o - | llvm-dis | grep llvm.ptr.annotation | count 3
// RUN: %llvmgcc -S %s -o - | grep llvm.ptr.annotation | count 3
#include <stdio.h>

View File

@ -1,4 +1,4 @@
// RUN: %llvmgcc %s -S -emit-llvm -O1 -o -
// RUN: %llvmgcc %s -S -O1 -o -
#include <stdint.h>

View File

@ -1,4 +1,4 @@
// RUN: %llvmgcc %s -S -emit-llvm -O2 -o %t.s
// RUN: %llvmgcc %s -S -O2 -o %t.s
// RUN: grep {call i32 .*printf.*argc} %t.s | count 3
// RUN: not grep __block_holder_tmp %t.s
// rdar://5865221

View File

@ -1,4 +1,4 @@
// RUN: %llvmgcc %s -c -g -o /dev/null
// RUN: %llvmgcc %s -S -g -o /dev/null
// XTARGET: darwin,linux
// XFAIL: *
void foo() {}

View File

@ -1,4 +1,4 @@
// RUN: %llvmgcc -S -m32 -mregparm=3 %s -emit-llvm -o - | grep {inreg %action}
// RUN: %llvmgcc -S -m32 -mregparm=3 %s -o - | grep {inreg %action}
// XFAIL: *
// XTARGET: x86,i386,i686
// PR3967

View File

@ -1,4 +1,4 @@
// RUN: %llvmgcc %s -S -emit-llvm -o - | FileCheck %s
// RUN: %llvmgcc %s -S -o - | FileCheck %s
// XFAIL: sparc
// rdar://7536390

View File

@ -1,4 +1,4 @@
// RUN: %llvmgcc %s -c -O3 -emit-llvm -o - | llc -march=x86-64 -mtriple=x86_64-apple-darwin | FileCheck %s
// RUN: %llvmgcc %s -S -O3 -o - | llc -march=x86-64 -mtriple=x86_64-apple-darwin | FileCheck %s
// r9 used to be clobbered before its value was moved to r10. 7993104.
void foo(int x, int y) {

View File

@ -1,4 +1,4 @@
// RUN: %llvmgcc %s -S -emit-llvm -o - | FileCheck %s
// RUN: %llvmgcc %s -S -o - | FileCheck %s
// Radar 8026855
int test (void *src) {

View File

@ -1,4 +1,4 @@
// RUN: %llvmgcc %s -c -m32 -fasm-blocks -o /dev/null
// RUN: %llvmgcc %s -S -m32 -fasm-blocks -o /dev/null
// This should not warn about unreferenced label. 7729514.
// XFAIL: *
// XTARGET: x86,i386,i686

View File

@ -1,4 +1,4 @@
// RUN: %llvmgcc %s -emit-llvm -S -o - | FileCheck %s
// RUN: %llvmgcc %s -S -o - | FileCheck %s
// PR 5995
struct s {
int word;

View File

@ -1,4 +1,4 @@
// RUN: %llvmgcc %s -c -o - | llvm-dis | grep llvm.global_ctors
// RUN: %llvmgcc %s -S -o - | grep llvm.global_ctors
void foo() __attribute__((constructor));
void foo() {

View File

@ -1,4 +1,4 @@
/* RUN: %llvmgcc %s -S -o - -emit-llvm -O3 | grep {call.*memcpy}
/* RUN: %llvmgcc %s -S -o - -O3 | grep {call.*memcpy}
This should compile into a memcpy from a global, not 128 stores. */

View File

@ -1,4 +1,4 @@
// RUN: %llvmgcc %s -c -Os -emit-llvm -o - | llc -march=x86 -mtriple=i386-apple-darwin10 | FileCheck %s
// RUN: %llvmgcc %s -S -Os -o - | llc -march=x86 -mtriple=i386-apple-darwin10 | FileCheck %s
extern void func(const char *, const char *);

View File

@ -1,5 +1,5 @@
// RUN: %llvmgcc -O3 -S -o - -emit-llvm %s | grep extern_weak
// RUN: %llvmgcc -O3 -S -o - -emit-llvm %s | llc
// RUN: %llvmgcc -O3 -S -o - %s | grep extern_weak
// RUN: %llvmgcc -O3 -S -o - %s | llc
#if !defined(__linux__) && !defined(__FreeBSD__) && \
!defined(__OpenBSD__) && !defined(__CYGWIN__) && !defined(__DragonFly__)

View File

@ -1,4 +1,4 @@
// RUN: %llvmgcc %s -S -emit-llvm -o - | FileCheck %s
// RUN: %llvmgcc %s -S -o - | FileCheck %s
// rdar://7270273
void foo() __attribute__((aligned (64)));

View File

@ -1,3 +1,3 @@
// RUN: %llvmgcc %s -emit-llvm -S -o - | grep {hidden global}
// RUN: %llvmgcc %s -S -o - | grep {hidden global}
int X __attribute__ ((__visibility__ ("hidden"))) = 123;

View File

@ -1,5 +1,5 @@
// RUN: %llvmgcc %s -S -emit-llvm -O0 -o -
// RUN: %llvmgcc %s -S -emit-llvm -O1 -o -
// RUN: %llvmgcc %s -S -O0 -o -
// RUN: %llvmgcc %s -S -O1 -o -
// rdar://6518089
static int bar();

View File

@ -1,10 +1,10 @@
// llvm-gcc -O1+ should run simplify libcalls, O0 shouldn't
// and -fno-builtins shouldn't.
// -fno-math-errno should emit an llvm intrinsic, -fmath-errno should not.
// RUN: %llvmgcc %s -S -fno-math-errno -emit-llvm -O0 -o - | grep {call.*exp2\\.f64}
// RUN: %llvmgcc %s -S -fmath-errno -emit-llvm -O0 -o - | grep {call.*exp2}
// RUN: %llvmgcc %s -S -emit-llvm -O1 -o - | grep {call.*ldexp}
// RUN: %llvmgcc %s -S -emit-llvm -O3 -fno-builtin -o - | grep {call.*exp2}
// RUN: %llvmgcc %s -S -fno-math-errno -O0 -o - | grep {call.*exp2\\.f64}
// RUN: %llvmgcc %s -S -fmath-errno -O0 -o - | grep {call.*exp2}
// RUN: %llvmgcc %s -S -O1 -o - | grep {call.*ldexp}
// RUN: %llvmgcc %s -S -O3 -fno-builtin -o - | grep {call.*exp2}
double exp2(double);

View File

@ -1,10 +1,10 @@
// llvm-gcc -O1+ should run simplify libcalls, O0 shouldn't
// and -fno-builtins shouldn't.
// -fno-math-errno should emit an llvm intrinsic, -fmath-errno should not.
// RUN: %llvmgcc %s -S -fno-math-errno -emit-llvm -O0 -o - | grep {call.*exp2\\..*f}
// RUN: %llvmgcc %s -S -fmath-errno -emit-llvm -O0 -o - | grep {call.*exp2l}
// RUN: %llvmgcc %s -S -emit-llvm -O1 -o - | grep {call.*ldexp}
// RUN: %llvmgcc %s -S -emit-llvm -O3 -fno-builtin -o - | grep {call.*exp2l}
// RUN: %llvmgcc %s -S -fno-math-errno -O0 -o - | grep {call.*exp2\\..*f}
// RUN: %llvmgcc %s -S -fmath-errno -O0 -o - | grep {call.*exp2l}
// RUN: %llvmgcc %s -S -O1 -o - | grep {call.*ldexp}
// RUN: %llvmgcc %s -S -O3 -fno-builtin -o - | grep {call.*exp2l}
// If this fails for you because your target doesn't support long double,
// please xfail the test.

View File

@ -1,10 +1,10 @@
// llvm-gcc -O1+ should run simplify libcalls, O0 shouldn't
// and -fno-builtins shouldn't.
// -fno-math-errno should emit an llvm intrinsic, -fmath-errno should not.
// RUN: %llvmgcc %s -S -emit-llvm -fno-math-errno -O0 -o - | grep {call.*exp2\\.f32}
// RUN: %llvmgcc %s -S -emit-llvm -fmath-errno -O0 -o - | grep {call.*exp2f}
// RUN: %llvmgcc %s -S -emit-llvm -O1 -o - | grep {call.*ldexp}
// RUN: %llvmgcc %s -S -emit-llvm -O3 -fno-builtin -o - | grep {call.*exp2f}
// RUN: %llvmgcc %s -S -fno-math-errno -O0 -o - | grep {call.*exp2\\.f32}
// RUN: %llvmgcc %s -S -fmath-errno -O0 -o - | grep {call.*exp2f}
// RUN: %llvmgcc %s -S -O1 -o - | grep {call.*ldexp}
// RUN: %llvmgcc %s -S -O3 -fno-builtin -o - | grep {call.*exp2f}
float exp2f(float);

View File

@ -1,4 +1,4 @@
// RUN: %llvmgcc %s -S -emit-llvm -O0 -o - | grep {= internal global} | count 4
// RUN: %llvmgcc %s -S -O0 -o - | grep {= internal global} | count 4
// PR 3518
// Some of the objects were coming out as unintialized (external) before 3518
// was fixed. Internal names are different between llvm-gcc and clang so they

View File

@ -1,4 +1,4 @@
// RUN: %llvmgcc %s -S -emit-llvm -O0 -o - | FileCheck %s
// RUN: %llvmgcc %s -S -O0 -o - | FileCheck %s
// PR 4349
union reg

View File

@ -1,4 +1,4 @@
// RUN: %llvmgcc %s -S -emit-llvm -O0 -o - | FileCheck %s
// RUN: %llvmgcc %s -S -O0 -o - | FileCheck %s
// PR 5406
// XFAIL: *

View File

@ -1,5 +1,5 @@
// RUN: %llvmgcc %s -c -m32 -o /dev/null
// RUN: %llvmgcc %s -c -O1 -m32 -emit-llvm -o - | llc -march=x86 -mtriple=i386-apple-darwin9.7 | FileCheck %s -check-prefix=DARWIN
// RUN: %llvmgcc %s -S -m32 -o /dev/null
// RUN: %llvmgcc %s -S -O1 -m32 -o - | llc -march=x86 -mtriple=i386-apple-darwin9.7 | FileCheck %s -check-prefix=DARWIN
unsigned int func(void *A) {
// DARWIN: roll $27

View File

@ -1,4 +1,4 @@
// RUN: %llvmgcc %s -S -emit-llvm -O0 -o - | grep sret | count 5
// RUN: %llvmgcc %s -S -O0 -o - | grep sret | count 5
struct abc {
long a;

View File

@ -1,4 +1,4 @@
// RUN: %llvmgcc %s -S -emit-llvm -O0 -o - | grep sret | count 2
// RUN: %llvmgcc %s -S -O0 -o - | grep sret | count 2
struct abc {
long a;

View File

@ -1,4 +1,4 @@
// RUN: %llvmgcc %s -S -emit-llvm -o - | llc
// RUN: %llvmgcc %s -S -o - | llc
void bork() {
char Qux[33] = {0};