diff --git a/llvm/test/FrontendC/2003-08-06-BuiltinSetjmpLongjmp.c b/llvm/test/FrontendC/2003-08-06-BuiltinSetjmpLongjmp.c index 39412e5f84ee..12b4f7b93329 100644 --- a/llvm/test/FrontendC/2003-08-06-BuiltinSetjmpLongjmp.c +++ b/llvm/test/FrontendC/2003-08-06-BuiltinSetjmpLongjmp.c @@ -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. diff --git a/llvm/test/FrontendC/2003-08-17-DeadCodeShortCircuit.c b/llvm/test/FrontendC/2003-08-17-DeadCodeShortCircuit.c index c275fee5d09a..9ae633ee0812 100644 --- a/llvm/test/FrontendC/2003-08-17-DeadCodeShortCircuit.c +++ b/llvm/test/FrontendC/2003-08-17-DeadCodeShortCircuit.c @@ -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; diff --git a/llvm/test/FrontendC/2003-11-03-AddrArrayElement.c b/llvm/test/FrontendC/2003-11-03-AddrArrayElement.c index ed3fc1a6cb42..4337da7d1e43 100644 --- a/llvm/test/FrontendC/2003-11-03-AddrArrayElement.c +++ b/llvm/test/FrontendC/2003-11-03-AddrArrayElement.c @@ -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. diff --git a/llvm/test/FrontendC/2003-11-08-PointerSubNotGetelementptr.c b/llvm/test/FrontendC/2003-11-08-PointerSubNotGetelementptr.c index 443dfbdb37fc..58f9f82e1543 100644 --- a/llvm/test/FrontendC/2003-11-08-PointerSubNotGetelementptr.c +++ b/llvm/test/FrontendC/2003-11-08-PointerSubNotGetelementptr.c @@ -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 diff --git a/llvm/test/FrontendC/2003-11-13-TypeSafety.c b/llvm/test/FrontendC/2003-11-13-TypeSafety.c index 128b767e22da..9b76bb11c984 100644 --- a/llvm/test/FrontendC/2003-11-13-TypeSafety.c +++ b/llvm/test/FrontendC/2003-11-13-TypeSafety.c @@ -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; diff --git a/llvm/test/FrontendC/2003-12-14-ExternInlineSupport.c b/llvm/test/FrontendC/2003-12-14-ExternInlineSupport.c index fb92ec773c1a..a45eb98dca2a 100644 --- a/llvm/test/FrontendC/2003-12-14-ExternInlineSupport.c +++ b/llvm/test/FrontendC/2003-12-14-ExternInlineSupport.c @@ -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() {} diff --git a/llvm/test/FrontendC/2004-02-12-LargeAggregateCopy.c b/llvm/test/FrontendC/2004-02-12-LargeAggregateCopy.c index b3c9bcf38108..93b7fe44bf60 100644 --- a/llvm/test/FrontendC/2004-02-12-LargeAggregateCopy.c +++ b/llvm/test/FrontendC/2004-02-12-LargeAggregateCopy.c @@ -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; diff --git a/llvm/test/FrontendC/2004-02-13-BuiltinFrameReturnAddress.c b/llvm/test/FrontendC/2004-02-13-BuiltinFrameReturnAddress.c index 162d32a658c0..f115b5a5f013 100644 --- a/llvm/test/FrontendC/2004-02-13-BuiltinFrameReturnAddress.c +++ b/llvm/test/FrontendC/2004-02-13-BuiltinFrameReturnAddress.c @@ -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); diff --git a/llvm/test/FrontendC/2004-02-13-IllegalVararg.c b/llvm/test/FrontendC/2004-02-13-IllegalVararg.c index 21039c6b0fa9..0d003c8033ca 100644 --- a/llvm/test/FrontendC/2004-02-13-IllegalVararg.c +++ b/llvm/test/FrontendC/2004-02-13-IllegalVararg.c @@ -1,4 +1,4 @@ -// RUN: %llvmgcc -xc %s -w -c -o - | llc +// RUN: %llvmgcc -xc %s -w -S -o - | llc // XFAIL: * // See PR2452 diff --git a/llvm/test/FrontendC/2004-02-13-Memset.c b/llvm/test/FrontendC/2004-02-13-Memset.c index fc26051f6d85..fb6ed2352ea3 100644 --- a/llvm/test/FrontendC/2004-02-13-Memset.c +++ b/llvm/test/FrontendC/2004-02-13-Memset.c @@ -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); diff --git a/llvm/test/FrontendC/2004-02-20-Builtins.c b/llvm/test/FrontendC/2004-02-20-Builtins.c index 0c9ac7cae8af..c056a8405f73 100644 --- a/llvm/test/FrontendC/2004-02-20-Builtins.c +++ b/llvm/test/FrontendC/2004-02-20-Builtins.c @@ -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 diff --git a/llvm/test/FrontendC/2004-03-07-ExternalConstant.c b/llvm/test/FrontendC/2004-03-07-ExternalConstant.c index b8e13a35548a..4a9094bdf344 100644 --- a/llvm/test/FrontendC/2004-03-07-ExternalConstant.c +++ b/llvm/test/FrontendC/2004-03-07-ExternalConstant.c @@ -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 () { diff --git a/llvm/test/FrontendC/2004-06-17-UnorderedCompares.c b/llvm/test/FrontendC/2004-06-17-UnorderedCompares.c index f91ed6687ce4..286e7bc7cf70 100644 --- a/llvm/test/FrontendC/2004-06-17-UnorderedCompares.c +++ b/llvm/test/FrontendC/2004-06-17-UnorderedCompares.c @@ -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 diff --git a/llvm/test/FrontendC/2004-11-27-StaticFunctionRedeclare.c b/llvm/test/FrontendC/2004-11-27-StaticFunctionRedeclare.c index b1e14212732e..994ac8f8436f 100644 --- a/llvm/test/FrontendC/2004-11-27-StaticFunctionRedeclare.c +++ b/llvm/test/FrontendC/2004-11-27-StaticFunctionRedeclare.c @@ -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 diff --git a/llvm/test/FrontendC/2005-01-02-PointerDifference.c b/llvm/test/FrontendC/2005-01-02-PointerDifference.c index a351da2ed8c8..2c108e5f6cac 100644 --- a/llvm/test/FrontendC/2005-01-02-PointerDifference.c +++ b/llvm/test/FrontendC/2005-01-02-PointerDifference.c @@ -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; } diff --git a/llvm/test/FrontendC/2005-12-04-AttributeUsed.c b/llvm/test/FrontendC/2005-12-04-AttributeUsed.c index 33e27e89f4c8..f47e977f4861 100644 --- a/llvm/test/FrontendC/2005-12-04-AttributeUsed.c +++ b/llvm/test/FrontendC/2005-12-04-AttributeUsed.c @@ -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)); diff --git a/llvm/test/FrontendC/2007-01-06-KNR-Proto.c b/llvm/test/FrontendC/2007-01-06-KNR-Proto.c index eb2f25482d9d..6aa74d4cb25f 100644 --- a/llvm/test/FrontendC/2007-01-06-KNR-Proto.c +++ b/llvm/test/FrontendC/2007-01-06-KNR-Proto.c @@ -1,4 +1,4 @@ -// RUN: %llvmgcc -S -o - -emit-llvm %s +// RUN: %llvmgcc -S -o - %s // PR1083 int svc_register (void (*dispatch) (int)); diff --git a/llvm/test/FrontendC/2007-02-04-AddrLValue-2.c b/llvm/test/FrontendC/2007-02-04-AddrLValue-2.c index 90251e6debdf..fa20faff3e15 100644 --- a/llvm/test/FrontendC/2007-02-04-AddrLValue-2.c +++ b/llvm/test/FrontendC/2007-02-04-AddrLValue-2.c @@ -1,4 +1,4 @@ -// RUN: %llvmgcc %s -O3 -S -o - -emit-llvm +// RUN: %llvmgcc %s -O3 -S -o - // PR1173 struct S { char s; }; diff --git a/llvm/test/FrontendC/2007-02-04-AddrLValue.c b/llvm/test/FrontendC/2007-02-04-AddrLValue.c index c8b65a946f5e..214fce7747ce 100644 --- a/llvm/test/FrontendC/2007-02-04-AddrLValue.c +++ b/llvm/test/FrontendC/2007-02-04-AddrLValue.c @@ -1,4 +1,4 @@ -// RUN: %llvmgcc %s -O3 -S -o - -emit-llvm +// RUN: %llvmgcc %s -O3 -S -o - // PR1176 typedef struct diff --git a/llvm/test/FrontendC/2007-02-04-EmptyStruct.c b/llvm/test/FrontendC/2007-02-04-EmptyStruct.c index 48ad31f7c3fd..5ad2c705cce8 100644 --- a/llvm/test/FrontendC/2007-02-04-EmptyStruct.c +++ b/llvm/test/FrontendC/2007-02-04-EmptyStruct.c @@ -1,4 +1,4 @@ -// RUN: %llvmgcc %s -O3 -S -o - -emit-llvm +// RUN: %llvmgcc %s -O3 -S -o - // PR1175 struct empty { }; diff --git a/llvm/test/FrontendC/2007-02-04-WITH_SIZE_EXPR.c b/llvm/test/FrontendC/2007-02-04-WITH_SIZE_EXPR.c index f02a44b15733..d5a9fbb0ecc2 100644 --- a/llvm/test/FrontendC/2007-02-04-WITH_SIZE_EXPR.c +++ b/llvm/test/FrontendC/2007-02-04-WITH_SIZE_EXPR.c @@ -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) diff --git a/llvm/test/FrontendC/2007-02-05-nested.c b/llvm/test/FrontendC/2007-02-05-nested.c index be23f175c8c8..bd6d30695ba0 100644 --- a/llvm/test/FrontendC/2007-02-05-nested.c +++ b/llvm/test/FrontendC/2007-02-05-nested.c @@ -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); diff --git a/llvm/test/FrontendC/2007-02-07-AddrLabel.c b/llvm/test/FrontendC/2007-02-07-AddrLabel.c index 144f62d0992b..03ed4c987e44 100644 --- a/llvm/test/FrontendC/2007-02-07-AddrLabel.c +++ b/llvm/test/FrontendC/2007-02-07-AddrLabel.c @@ -1,5 +1,5 @@ // PR947 -// RUN: %llvmgcc %s -c -o - +// RUN: %llvmgcc %s -S -o - void foo() { void *ptr; diff --git a/llvm/test/FrontendC/2007-02-16-VoidPtrDiff.c b/llvm/test/FrontendC/2007-02-16-VoidPtrDiff.c index 713b9b28b075..15df28cae3fe 100644 --- a/llvm/test/FrontendC/2007-02-16-VoidPtrDiff.c +++ b/llvm/test/FrontendC/2007-02-16-VoidPtrDiff.c @@ -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)); diff --git a/llvm/test/FrontendC/2007-02-16-WritableStrings.c b/llvm/test/FrontendC/2007-02-16-WritableStrings.c index 0f281ce7c5e3..ebf64c2c3161 100644 --- a/llvm/test/FrontendC/2007-02-16-WritableStrings.c +++ b/llvm/test/FrontendC/2007-02-16-WritableStrings.c @@ -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"; diff --git a/llvm/test/FrontendC/2007-02-25-C-DotDotDot.c b/llvm/test/FrontendC/2007-02-25-C-DotDotDot.c index 969602200c19..3f96fd1f9e1f 100644 --- a/llvm/test/FrontendC/2007-02-25-C-DotDotDot.c +++ b/llvm/test/FrontendC/2007-02-25-C-DotDotDot.c @@ -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: diff --git a/llvm/test/FrontendC/2007-03-01-VarSizeArrayIdx.c b/llvm/test/FrontendC/2007-03-01-VarSizeArrayIdx.c index a3d480cafe66..6ebe79672f58 100644 --- a/llvm/test/FrontendC/2007-03-01-VarSizeArrayIdx.c +++ b/llvm/test/FrontendC/2007-03-01-VarSizeArrayIdx.c @@ -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) { diff --git a/llvm/test/FrontendC/2007-04-11-InlineAsmStruct.c b/llvm/test/FrontendC/2007-04-11-InlineAsmStruct.c index 49741c68ee6e..6c6c1509903d 100644 --- a/llvm/test/FrontendC/2007-04-11-InlineAsmStruct.c +++ b/llvm/test/FrontendC/2007-04-11-InlineAsmStruct.c @@ -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() { diff --git a/llvm/test/FrontendC/2007-04-11-InlineAsmUnion.c b/llvm/test/FrontendC/2007-04-11-InlineAsmUnion.c index 83fe7db771f5..014470102d32 100644 --- a/llvm/test/FrontendC/2007-04-11-InlineAsmUnion.c +++ b/llvm/test/FrontendC/2007-04-11-InlineAsmUnion.c @@ -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() { diff --git a/llvm/test/FrontendC/2007-04-11-InlineStorageClassC89.c b/llvm/test/FrontendC/2007-04-11-InlineStorageClassC89.c index ec2b1ec70bec..834fb07a2623 100644 --- a/llvm/test/FrontendC/2007-04-11-InlineStorageClassC89.c +++ b/llvm/test/FrontendC/2007-04-11-InlineStorageClassC89.c @@ -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)); diff --git a/llvm/test/FrontendC/2007-04-11-InlineStorageClassC99.c b/llvm/test/FrontendC/2007-04-11-InlineStorageClassC99.c index 89af2789b3e5..6031071e3464 100644 --- a/llvm/test/FrontendC/2007-04-11-InlineStorageClassC99.c +++ b/llvm/test/FrontendC/2007-04-11-InlineStorageClassC99.c @@ -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)); diff --git a/llvm/test/FrontendC/2007-04-13-InlineAsmStruct2.c b/llvm/test/FrontendC/2007-04-13-InlineAsmStruct2.c index e4870e75be2f..44ddeb3f95d8 100644 --- a/llvm/test/FrontendC/2007-04-13-InlineAsmStruct2.c +++ b/llvm/test/FrontendC/2007-04-13-InlineAsmStruct2.c @@ -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() { diff --git a/llvm/test/FrontendC/2007-04-13-InlineAsmUnion2.c b/llvm/test/FrontendC/2007-04-13-InlineAsmUnion2.c index 284654d223c0..a0944a7b6407 100644 --- a/llvm/test/FrontendC/2007-04-13-InlineAsmUnion2.c +++ b/llvm/test/FrontendC/2007-04-13-InlineAsmUnion2.c @@ -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() { diff --git a/llvm/test/FrontendC/2007-04-24-VolatileStructCopy.c b/llvm/test/FrontendC/2007-04-24-VolatileStructCopy.c index 4765921f1d21..d49e75e02541 100644 --- a/llvm/test/FrontendC/2007-04-24-VolatileStructCopy.c +++ b/llvm/test/FrontendC/2007-04-24-VolatileStructCopy.c @@ -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 { diff --git a/llvm/test/FrontendC/2007-04-24-bit-not-expr.c b/llvm/test/FrontendC/2007-04-24-bit-not-expr.c index 1c27f181c0e4..fab0b90bb15f 100644 --- a/llvm/test/FrontendC/2007-04-24-bit-not-expr.c +++ b/llvm/test/FrontendC/2007-04-24-bit-not-expr.c @@ -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) { diff --git a/llvm/test/FrontendC/2007-04-24-str-const.c b/llvm/test/FrontendC/2007-04-24-str-const.c index 4c109c41b019..3c3dab372ab5 100644 --- a/llvm/test/FrontendC/2007-04-24-str-const.c +++ b/llvm/test/FrontendC/2007-04-24-str-const.c @@ -1,4 +1,4 @@ -// RUN: %llvmgcc -c %s -o /dev/null +// RUN: %llvmgcc -S %s -o /dev/null static char *str; static const struct { diff --git a/llvm/test/FrontendC/2007-05-07-PaddingElements.c b/llvm/test/FrontendC/2007-05-07-PaddingElements.c index 9be8850895ae..1e4f4d0a7512 100644 --- a/llvm/test/FrontendC/2007-05-07-PaddingElements.c +++ b/llvm/test/FrontendC/2007-05-07-PaddingElements.c @@ -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; diff --git a/llvm/test/FrontendC/2007-05-11-str-const.c b/llvm/test/FrontendC/2007-05-11-str-const.c index 48deddbb019e..46a74c19e017 100644 --- a/llvm/test/FrontendC/2007-05-11-str-const.c +++ b/llvm/test/FrontendC/2007-05-11-str-const.c @@ -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"; diff --git a/llvm/test/FrontendC/2007-05-15-PaddingElement.c b/llvm/test/FrontendC/2007-05-15-PaddingElement.c index a218b3594d72..bad6a11dae81 100644 --- a/llvm/test/FrontendC/2007-05-15-PaddingElement.c +++ b/llvm/test/FrontendC/2007-05-15-PaddingElement.c @@ -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; diff --git a/llvm/test/FrontendC/2007-05-16-EmptyStruct.c b/llvm/test/FrontendC/2007-05-16-EmptyStruct.c index 23c0b1d6a3f6..7b2ab61bccaf 100644 --- a/llvm/test/FrontendC/2007-05-16-EmptyStruct.c +++ b/llvm/test/FrontendC/2007-05-16-EmptyStruct.c @@ -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; diff --git a/llvm/test/FrontendC/2007-05-29-UnionCopy.c b/llvm/test/FrontendC/2007-05-29-UnionCopy.c index ded67d4d6b28..95ab388c842f 100644 --- a/llvm/test/FrontendC/2007-05-29-UnionCopy.c +++ b/llvm/test/FrontendC/2007-05-29-UnionCopy.c @@ -1,4 +1,4 @@ -// RUN: %llvmgcc -S -o - -emit-llvm %s | grep memcpy +// RUN: %llvmgcc -S -o - %s | grep memcpy // PR1421 struct A { diff --git a/llvm/test/FrontendC/2007-06-05-NoInlineAttribute.c b/llvm/test/FrontendC/2007-06-05-NoInlineAttribute.c index b11b3c779684..9543538fb1b9 100644 --- a/llvm/test/FrontendC/2007-06-05-NoInlineAttribute.c +++ b/llvm/test/FrontendC/2007-06-05-NoInlineAttribute.c @@ -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)); diff --git a/llvm/test/FrontendC/2007-06-15-AnnotateAttribute.c b/llvm/test/FrontendC/2007-06-15-AnnotateAttribute.c index 009911737036..115c3f73b90b 100644 --- a/llvm/test/FrontendC/2007-06-15-AnnotateAttribute.c +++ b/llvm/test/FrontendC/2007-06-15-AnnotateAttribute.c @@ -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 diff --git a/llvm/test/FrontendC/2007-06-18-SextAttrAggregate.c b/llvm/test/FrontendC/2007-06-18-SextAttrAggregate.c index 2fcd72607a2a..c395db220dc6 100644 --- a/llvm/test/FrontendC/2007-06-18-SextAttrAggregate.c +++ b/llvm/test/FrontendC/2007-06-18-SextAttrAggregate.c @@ -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{ diff --git a/llvm/test/FrontendC/2007-07-29-RestrictPtrArg.c b/llvm/test/FrontendC/2007-07-29-RestrictPtrArg.c index 99eae39054b3..5925d972b269 100644 --- a/llvm/test/FrontendC/2007-07-29-RestrictPtrArg.c +++ b/llvm/test/FrontendC/2007-07-29-RestrictPtrArg.c @@ -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; diff --git a/llvm/test/FrontendC/2007-08-01-LoadStoreAlign.c b/llvm/test/FrontendC/2007-08-01-LoadStoreAlign.c index 75a82c14ad0f..5365c06c2579 100644 --- a/llvm/test/FrontendC/2007-08-01-LoadStoreAlign.c +++ b/llvm/test/FrontendC/2007-08-01-LoadStoreAlign.c @@ -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; diff --git a/llvm/test/FrontendC/2007-08-21-ComplexCst.c b/llvm/test/FrontendC/2007-08-21-ComplexCst.c index 7ddd87c08e48..ebdee14bba35 100644 --- a/llvm/test/FrontendC/2007-08-21-ComplexCst.c +++ b/llvm/test/FrontendC/2007-08-21-ComplexCst.c @@ -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); } diff --git a/llvm/test/FrontendC/2007-09-05-ConstCtor.c b/llvm/test/FrontendC/2007-09-05-ConstCtor.c index 8e0e9945ffaa..adae4a69b103 100644 --- a/llvm/test/FrontendC/2007-09-05-ConstCtor.c +++ b/llvm/test/FrontendC/2007-09-05-ConstCtor.c @@ -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 { diff --git a/llvm/test/FrontendC/2007-09-20-GcrootAttribute.c b/llvm/test/FrontendC/2007-09-20-GcrootAttribute.c index 23cd37ff6a55..b67b474c4c1b 100644 --- a/llvm/test/FrontendC/2007-09-20-GcrootAttribute.c +++ b/llvm/test/FrontendC/2007-09-20-GcrootAttribute.c @@ -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 { diff --git a/llvm/test/FrontendC/2007-11-07-AlignedMemcpy.c b/llvm/test/FrontendC/2007-11-07-AlignedMemcpy.c index f1900bb646b4..eb9d22c62523 100644 --- a/llvm/test/FrontendC/2007-11-07-AlignedMemcpy.c +++ b/llvm/test/FrontendC/2007-11-07-AlignedMemcpy.c @@ -1,4 +1,4 @@ -// RUN: %llvmgcc -c %s -o /dev/null +// RUN: %llvmgcc -S %s -o /dev/null void bork() { int Qux[33] = {0}; } diff --git a/llvm/test/FrontendC/2007-11-27-SExtZExt.c b/llvm/test/FrontendC/2007-11-27-SExtZExt.c index 2b6cd6232d52..8ea4786af369 100644 --- a/llvm/test/FrontendC/2007-11-27-SExtZExt.c +++ b/llvm/test/FrontendC/2007-11-27-SExtZExt.c @@ -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; } diff --git a/llvm/test/FrontendC/2008-01-25-ByValReadNone.c b/llvm/test/FrontendC/2008-01-25-ByValReadNone.c index 42e9c3626297..4cb1a6394eaa 100644 --- a/llvm/test/FrontendC/2008-01-25-ByValReadNone.c +++ b/llvm/test/FrontendC/2008-01-25-ByValReadNone.c @@ -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 diff --git a/llvm/test/FrontendC/2008-01-28-PragmaMark.c b/llvm/test/FrontendC/2008-01-28-PragmaMark.c index 0b3ac17df32a..6a4b5b52ff2f 100644 --- a/llvm/test/FrontendC/2008-01-28-PragmaMark.c +++ b/llvm/test/FrontendC/2008-01-28-PragmaMark.c @@ -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 diff --git a/llvm/test/FrontendC/2008-03-03-CtorAttrType.c b/llvm/test/FrontendC/2008-03-03-CtorAttrType.c index dc0e47d811a4..96648f4ec5a6 100644 --- a/llvm/test/FrontendC/2008-03-03-CtorAttrType.c +++ b/llvm/test/FrontendC/2008-03-03-CtorAttrType.c @@ -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; } diff --git a/llvm/test/FrontendC/2008-03-05-syncPtr.c b/llvm/test/FrontendC/2008-03-05-syncPtr.c index 43e46717b279..7b271f7ee747 100644 --- a/llvm/test/FrontendC/2008-03-05-syncPtr.c +++ b/llvm/test/FrontendC/2008-03-05-syncPtr.c @@ -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. diff --git a/llvm/test/FrontendC/2008-05-19-AlwaysInline.c b/llvm/test/FrontendC/2008-05-19-AlwaysInline.c index 506f6cf9c509..8dcb57b1862e 100644 --- a/llvm/test/FrontendC/2008-05-19-AlwaysInline.c +++ b/llvm/test/FrontendC/2008-05-19-AlwaysInline.c @@ -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) diff --git a/llvm/test/FrontendC/2008-08-07-AlignPadding1.c b/llvm/test/FrontendC/2008-08-07-AlignPadding1.c index 776b1052f135..6be9fe4ed3b5 100644 --- a/llvm/test/FrontendC/2008-08-07-AlignPadding1.c +++ b/llvm/test/FrontendC/2008-08-07-AlignPadding1.c @@ -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. */ diff --git a/llvm/test/FrontendC/2008-08-07-AlignPadding2.c b/llvm/test/FrontendC/2008-08-07-AlignPadding2.c index ea13a0a1bc67..51135ba633a2 100644 --- a/llvm/test/FrontendC/2008-08-07-AlignPadding2.c +++ b/llvm/test/FrontendC/2008-08-07-AlignPadding2.c @@ -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. */ diff --git a/llvm/test/FrontendC/2008-10-30-ZeroPlacement.c b/llvm/test/FrontendC/2008-10-30-ZeroPlacement.c index ec4ea94a115f..d73442dca8b9 100644 --- a/llvm/test/FrontendC/2008-10-30-ZeroPlacement.c +++ b/llvm/test/FrontendC/2008-10-30-ZeroPlacement.c @@ -1,4 +1,4 @@ -// RUN: %llvmgcc -c %s +// RUN: %llvmgcc -S %s // PR2987 struct S2045 { diff --git a/llvm/test/FrontendC/2008-11-02-WeakAlias.c b/llvm/test/FrontendC/2008-11-02-WeakAlias.c index befafe455149..d10e57f5efe0 100644 --- a/llvm/test/FrontendC/2008-11-02-WeakAlias.c +++ b/llvm/test/FrontendC/2008-11-02-WeakAlias.c @@ -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"))); diff --git a/llvm/test/FrontendC/2008-11-08-InstCombineSelect.c b/llvm/test/FrontendC/2008-11-08-InstCombineSelect.c index 70c8d3a22486..b850d3ff6f25 100644 --- a/llvm/test/FrontendC/2008-11-08-InstCombineSelect.c +++ b/llvm/test/FrontendC/2008-11-08-InstCombineSelect.c @@ -1,4 +1,4 @@ -// RUN: %llvmgcc %s -S -emit-llvm -O2 -o - +// RUN: %llvmgcc %s -S -O2 -o - // PR3028 int g_187; diff --git a/llvm/test/FrontendC/2008-11-11-AnnotateStructFieldAttribute.c b/llvm/test/FrontendC/2008-11-11-AnnotateStructFieldAttribute.c index fa5713e2482b..8af59d54f751 100644 --- a/llvm/test/FrontendC/2008-11-11-AnnotateStructFieldAttribute.c +++ b/llvm/test/FrontendC/2008-11-11-AnnotateStructFieldAttribute.c @@ -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 diff --git a/llvm/test/FrontendC/2008-12-23-AsmIntPointerTie.c b/llvm/test/FrontendC/2008-12-23-AsmIntPointerTie.c index da2eda6628ed..57061422b8f2 100644 --- a/llvm/test/FrontendC/2008-12-23-AsmIntPointerTie.c +++ b/llvm/test/FrontendC/2008-12-23-AsmIntPointerTie.c @@ -1,4 +1,4 @@ -// RUN: %llvmgcc %s -S -emit-llvm -O1 -o - +// RUN: %llvmgcc %s -S -O1 -o - #include diff --git a/llvm/test/FrontendC/2009-01-05-BlockInlining.c b/llvm/test/FrontendC/2009-01-05-BlockInlining.c index 9692d8f688ab..8fb6e54514a5 100644 --- a/llvm/test/FrontendC/2009-01-05-BlockInlining.c +++ b/llvm/test/FrontendC/2009-01-05-BlockInlining.c @@ -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 diff --git a/llvm/test/FrontendC/2009-03-13-dbg.c b/llvm/test/FrontendC/2009-03-13-dbg.c index aa13af41248c..46abd3a96382 100644 --- a/llvm/test/FrontendC/2009-03-13-dbg.c +++ b/llvm/test/FrontendC/2009-03-13-dbg.c @@ -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() {} diff --git a/llvm/test/FrontendC/2009-05-04-EnumInreg.c b/llvm/test/FrontendC/2009-05-04-EnumInreg.c index 6dbdb54db5f6..fb0c03e439e6 100644 --- a/llvm/test/FrontendC/2009-05-04-EnumInreg.c +++ b/llvm/test/FrontendC/2009-05-04-EnumInreg.c @@ -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 diff --git a/llvm/test/FrontendC/2010-01-13-MemBarrier.c b/llvm/test/FrontendC/2010-01-13-MemBarrier.c index 8fcd5228781e..a540e59c6caa 100644 --- a/llvm/test/FrontendC/2010-01-13-MemBarrier.c +++ b/llvm/test/FrontendC/2010-01-13-MemBarrier.c @@ -1,4 +1,4 @@ -// RUN: %llvmgcc %s -S -emit-llvm -o - | FileCheck %s +// RUN: %llvmgcc %s -S -o - | FileCheck %s // XFAIL: sparc // rdar://7536390 diff --git a/llvm/test/FrontendC/2010-05-18-asmsched.c b/llvm/test/FrontendC/2010-05-18-asmsched.c index 12e91405d10f..33b87703220c 100644 --- a/llvm/test/FrontendC/2010-05-18-asmsched.c +++ b/llvm/test/FrontendC/2010-05-18-asmsched.c @@ -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) { diff --git a/llvm/test/FrontendC/2010-05-26-AsmSideEffect.c b/llvm/test/FrontendC/2010-05-26-AsmSideEffect.c index c5f75799dd3b..acc38b783ba3 100644 --- a/llvm/test/FrontendC/2010-05-26-AsmSideEffect.c +++ b/llvm/test/FrontendC/2010-05-26-AsmSideEffect.c @@ -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) { diff --git a/llvm/test/FrontendC/2010-06-28-nowarn.c b/llvm/test/FrontendC/2010-06-28-nowarn.c index 9cfb6636fdef..3db8df10c189 100644 --- a/llvm/test/FrontendC/2010-06-28-nowarn.c +++ b/llvm/test/FrontendC/2010-06-28-nowarn.c @@ -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 diff --git a/llvm/test/FrontendC/2010-07-14-overconservative-align.c b/llvm/test/FrontendC/2010-07-14-overconservative-align.c index 1744ba84185d..c4a9caac6666 100644 --- a/llvm/test/FrontendC/2010-07-14-overconservative-align.c +++ b/llvm/test/FrontendC/2010-07-14-overconservative-align.c @@ -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; diff --git a/llvm/test/FrontendC/attribute_constructor.c b/llvm/test/FrontendC/attribute_constructor.c index b2f7c9b19fc0..da17a37e2606 100644 --- a/llvm/test/FrontendC/attribute_constructor.c +++ b/llvm/test/FrontendC/attribute_constructor.c @@ -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() { diff --git a/llvm/test/FrontendC/block-copy.c b/llvm/test/FrontendC/block-copy.c index a53732e4f9ff..c088f2dc1955 100644 --- a/llvm/test/FrontendC/block-copy.c +++ b/llvm/test/FrontendC/block-copy.c @@ -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. */ diff --git a/llvm/test/FrontendC/cstring-align.c b/llvm/test/FrontendC/cstring-align.c index 764126e02184..544c9f3d3fbb 100644 --- a/llvm/test/FrontendC/cstring-align.c +++ b/llvm/test/FrontendC/cstring-align.c @@ -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 *); diff --git a/llvm/test/FrontendC/extern-weak.c b/llvm/test/FrontendC/extern-weak.c index 4729b048fbe0..73b59cc48c40 100644 --- a/llvm/test/FrontendC/extern-weak.c +++ b/llvm/test/FrontendC/extern-weak.c @@ -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__) diff --git a/llvm/test/FrontendC/func-aligned.c b/llvm/test/FrontendC/func-aligned.c index 40149f49d8ec..477e82418aef 100644 --- a/llvm/test/FrontendC/func-aligned.c +++ b/llvm/test/FrontendC/func-aligned.c @@ -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))); diff --git a/llvm/test/FrontendC/hidden-visibility.c b/llvm/test/FrontendC/hidden-visibility.c index fc2ae444b404..18201d95e7b5 100644 --- a/llvm/test/FrontendC/hidden-visibility.c +++ b/llvm/test/FrontendC/hidden-visibility.c @@ -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; diff --git a/llvm/test/FrontendC/implicit-arg.c b/llvm/test/FrontendC/implicit-arg.c index 971245f3badc..a6cb8bce7ed6 100644 --- a/llvm/test/FrontendC/implicit-arg.c +++ b/llvm/test/FrontendC/implicit-arg.c @@ -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(); diff --git a/llvm/test/FrontendC/libcalls-d.c b/llvm/test/FrontendC/libcalls-d.c index 126866ad6297..d92208d89edd 100644 --- a/llvm/test/FrontendC/libcalls-d.c +++ b/llvm/test/FrontendC/libcalls-d.c @@ -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); diff --git a/llvm/test/FrontendC/libcalls-ld.c b/llvm/test/FrontendC/libcalls-ld.c index 6533eb88d9e5..cf71d19eaa35 100644 --- a/llvm/test/FrontendC/libcalls-ld.c +++ b/llvm/test/FrontendC/libcalls-ld.c @@ -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. diff --git a/llvm/test/FrontendC/libcalls.c b/llvm/test/FrontendC/libcalls.c index a2761dd5b004..60e22e7e690a 100644 --- a/llvm/test/FrontendC/libcalls.c +++ b/llvm/test/FrontendC/libcalls.c @@ -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); diff --git a/llvm/test/FrontendC/pr3518.c b/llvm/test/FrontendC/pr3518.c index 4c193c7739b2..53150b806bbb 100644 --- a/llvm/test/FrontendC/pr3518.c +++ b/llvm/test/FrontendC/pr3518.c @@ -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 diff --git a/llvm/test/FrontendC/pr4349.c b/llvm/test/FrontendC/pr4349.c index fbd7e56eba15..49c89e25fed4 100644 --- a/llvm/test/FrontendC/pr4349.c +++ b/llvm/test/FrontendC/pr4349.c @@ -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 diff --git a/llvm/test/FrontendC/pr5406.c b/llvm/test/FrontendC/pr5406.c index 492bdafa7eda..0b1f277592fb 100644 --- a/llvm/test/FrontendC/pr5406.c +++ b/llvm/test/FrontendC/pr5406.c @@ -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: * diff --git a/llvm/test/FrontendC/ptr-rotate.c b/llvm/test/FrontendC/ptr-rotate.c index 56c21f46e7ae..36d9755dd674 100644 --- a/llvm/test/FrontendC/ptr-rotate.c +++ b/llvm/test/FrontendC/ptr-rotate.c @@ -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 diff --git a/llvm/test/FrontendC/sret.c b/llvm/test/FrontendC/sret.c index 11ac5d6824e8..42666917a8df 100644 --- a/llvm/test/FrontendC/sret.c +++ b/llvm/test/FrontendC/sret.c @@ -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; diff --git a/llvm/test/FrontendC/sret2.c b/llvm/test/FrontendC/sret2.c index 7b621f942fa9..0f35b1c2586f 100644 --- a/llvm/test/FrontendC/sret2.c +++ b/llvm/test/FrontendC/sret2.c @@ -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; diff --git a/llvm/test/FrontendC/unaligned-memcpy.c b/llvm/test/FrontendC/unaligned-memcpy.c index 9e6ce07e367e..8fb84e4f5150 100644 --- a/llvm/test/FrontendC/unaligned-memcpy.c +++ b/llvm/test/FrontendC/unaligned-memcpy.c @@ -1,4 +1,4 @@ -// RUN: %llvmgcc %s -S -emit-llvm -o - | llc +// RUN: %llvmgcc %s -S -o - | llc void bork() { char Qux[33] = {0};