[llvm-commits] [llvm] r120158 - /llvm/trunk/test/FrontendC/
Duncan Sands
baldrick at free.fr
Thu Nov 25 13:24:36 PST 2010
Author: baldrick
Date: Thu Nov 25 15:24:35 2010
New Revision: 120158
URL: http://llvm.org/viewvc/llvm-project?rev=120158&view=rev
Log:
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).
Modified:
llvm/trunk/test/FrontendC/2003-08-06-BuiltinSetjmpLongjmp.c
llvm/trunk/test/FrontendC/2003-08-17-DeadCodeShortCircuit.c
llvm/trunk/test/FrontendC/2003-11-03-AddrArrayElement.c
llvm/trunk/test/FrontendC/2003-11-08-PointerSubNotGetelementptr.c
llvm/trunk/test/FrontendC/2003-11-13-TypeSafety.c
llvm/trunk/test/FrontendC/2003-12-14-ExternInlineSupport.c
llvm/trunk/test/FrontendC/2004-02-12-LargeAggregateCopy.c
llvm/trunk/test/FrontendC/2004-02-13-BuiltinFrameReturnAddress.c
llvm/trunk/test/FrontendC/2004-02-13-IllegalVararg.c
llvm/trunk/test/FrontendC/2004-02-13-Memset.c
llvm/trunk/test/FrontendC/2004-02-20-Builtins.c
llvm/trunk/test/FrontendC/2004-03-07-ExternalConstant.c
llvm/trunk/test/FrontendC/2004-06-17-UnorderedCompares.c
llvm/trunk/test/FrontendC/2004-11-27-StaticFunctionRedeclare.c
llvm/trunk/test/FrontendC/2005-01-02-PointerDifference.c
llvm/trunk/test/FrontendC/2005-12-04-AttributeUsed.c
llvm/trunk/test/FrontendC/2007-01-06-KNR-Proto.c
llvm/trunk/test/FrontendC/2007-02-04-AddrLValue-2.c
llvm/trunk/test/FrontendC/2007-02-04-AddrLValue.c
llvm/trunk/test/FrontendC/2007-02-04-EmptyStruct.c
llvm/trunk/test/FrontendC/2007-02-04-WITH_SIZE_EXPR.c
llvm/trunk/test/FrontendC/2007-02-05-nested.c
llvm/trunk/test/FrontendC/2007-02-07-AddrLabel.c
llvm/trunk/test/FrontendC/2007-02-16-VoidPtrDiff.c
llvm/trunk/test/FrontendC/2007-02-16-WritableStrings.c
llvm/trunk/test/FrontendC/2007-02-25-C-DotDotDot.c
llvm/trunk/test/FrontendC/2007-03-01-VarSizeArrayIdx.c
llvm/trunk/test/FrontendC/2007-04-11-InlineAsmStruct.c
llvm/trunk/test/FrontendC/2007-04-11-InlineAsmUnion.c
llvm/trunk/test/FrontendC/2007-04-11-InlineStorageClassC89.c
llvm/trunk/test/FrontendC/2007-04-11-InlineStorageClassC99.c
llvm/trunk/test/FrontendC/2007-04-13-InlineAsmStruct2.c
llvm/trunk/test/FrontendC/2007-04-13-InlineAsmUnion2.c
llvm/trunk/test/FrontendC/2007-04-24-VolatileStructCopy.c
llvm/trunk/test/FrontendC/2007-04-24-bit-not-expr.c
llvm/trunk/test/FrontendC/2007-04-24-str-const.c
llvm/trunk/test/FrontendC/2007-05-07-PaddingElements.c
llvm/trunk/test/FrontendC/2007-05-11-str-const.c
llvm/trunk/test/FrontendC/2007-05-15-PaddingElement.c
llvm/trunk/test/FrontendC/2007-05-16-EmptyStruct.c
llvm/trunk/test/FrontendC/2007-05-29-UnionCopy.c
llvm/trunk/test/FrontendC/2007-06-05-NoInlineAttribute.c
llvm/trunk/test/FrontendC/2007-06-15-AnnotateAttribute.c
llvm/trunk/test/FrontendC/2007-06-18-SextAttrAggregate.c
llvm/trunk/test/FrontendC/2007-07-29-RestrictPtrArg.c
llvm/trunk/test/FrontendC/2007-08-01-LoadStoreAlign.c
llvm/trunk/test/FrontendC/2007-08-21-ComplexCst.c
llvm/trunk/test/FrontendC/2007-09-05-ConstCtor.c
llvm/trunk/test/FrontendC/2007-09-20-GcrootAttribute.c
llvm/trunk/test/FrontendC/2007-11-07-AlignedMemcpy.c
llvm/trunk/test/FrontendC/2007-11-27-SExtZExt.c
llvm/trunk/test/FrontendC/2008-01-25-ByValReadNone.c
llvm/trunk/test/FrontendC/2008-01-28-PragmaMark.c
llvm/trunk/test/FrontendC/2008-03-03-CtorAttrType.c
llvm/trunk/test/FrontendC/2008-03-05-syncPtr.c
llvm/trunk/test/FrontendC/2008-05-19-AlwaysInline.c
llvm/trunk/test/FrontendC/2008-08-07-AlignPadding1.c
llvm/trunk/test/FrontendC/2008-08-07-AlignPadding2.c
llvm/trunk/test/FrontendC/2008-10-30-ZeroPlacement.c
llvm/trunk/test/FrontendC/2008-11-02-WeakAlias.c
llvm/trunk/test/FrontendC/2008-11-08-InstCombineSelect.c
llvm/trunk/test/FrontendC/2008-11-11-AnnotateStructFieldAttribute.c
llvm/trunk/test/FrontendC/2008-12-23-AsmIntPointerTie.c
llvm/trunk/test/FrontendC/2009-01-05-BlockInlining.c
llvm/trunk/test/FrontendC/2009-03-13-dbg.c
llvm/trunk/test/FrontendC/2009-05-04-EnumInreg.c
llvm/trunk/test/FrontendC/2010-01-13-MemBarrier.c
llvm/trunk/test/FrontendC/2010-05-18-asmsched.c
llvm/trunk/test/FrontendC/2010-05-26-AsmSideEffect.c
llvm/trunk/test/FrontendC/2010-06-28-nowarn.c
llvm/trunk/test/FrontendC/2010-07-14-overconservative-align.c
llvm/trunk/test/FrontendC/attribute_constructor.c
llvm/trunk/test/FrontendC/block-copy.c
llvm/trunk/test/FrontendC/cstring-align.c
llvm/trunk/test/FrontendC/extern-weak.c
llvm/trunk/test/FrontendC/func-aligned.c
llvm/trunk/test/FrontendC/hidden-visibility.c
llvm/trunk/test/FrontendC/implicit-arg.c
llvm/trunk/test/FrontendC/libcalls-d.c
llvm/trunk/test/FrontendC/libcalls-ld.c
llvm/trunk/test/FrontendC/libcalls.c
llvm/trunk/test/FrontendC/pr3518.c
llvm/trunk/test/FrontendC/pr4349.c
llvm/trunk/test/FrontendC/pr5406.c
llvm/trunk/test/FrontendC/ptr-rotate.c
llvm/trunk/test/FrontendC/sret.c
llvm/trunk/test/FrontendC/sret2.c
llvm/trunk/test/FrontendC/unaligned-memcpy.c
Modified: llvm/trunk/test/FrontendC/2003-08-06-BuiltinSetjmpLongjmp.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC/2003-08-06-BuiltinSetjmpLongjmp.c?rev=120158&r1=120157&r2=120158&view=diff
==============================================================================
--- llvm/trunk/test/FrontendC/2003-08-06-BuiltinSetjmpLongjmp.c (original)
+++ llvm/trunk/test/FrontendC/2003-08-06-BuiltinSetjmpLongjmp.c Thu Nov 25 15:24:35 2010
@@ -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.
Modified: llvm/trunk/test/FrontendC/2003-08-17-DeadCodeShortCircuit.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC/2003-08-17-DeadCodeShortCircuit.c?rev=120158&r1=120157&r2=120158&view=diff
==============================================================================
--- llvm/trunk/test/FrontendC/2003-08-17-DeadCodeShortCircuit.c (original)
+++ llvm/trunk/test/FrontendC/2003-08-17-DeadCodeShortCircuit.c Thu Nov 25 15:24:35 2010
@@ -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;
Modified: llvm/trunk/test/FrontendC/2003-11-03-AddrArrayElement.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC/2003-11-03-AddrArrayElement.c?rev=120158&r1=120157&r2=120158&view=diff
==============================================================================
--- llvm/trunk/test/FrontendC/2003-11-03-AddrArrayElement.c (original)
+++ llvm/trunk/test/FrontendC/2003-11-03-AddrArrayElement.c Thu Nov 25 15:24:35 2010
@@ -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.
Modified: llvm/trunk/test/FrontendC/2003-11-08-PointerSubNotGetelementptr.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC/2003-11-08-PointerSubNotGetelementptr.c?rev=120158&r1=120157&r2=120158&view=diff
==============================================================================
--- llvm/trunk/test/FrontendC/2003-11-08-PointerSubNotGetelementptr.c (original)
+++ llvm/trunk/test/FrontendC/2003-11-08-PointerSubNotGetelementptr.c Thu Nov 25 15:24:35 2010
@@ -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
Modified: llvm/trunk/test/FrontendC/2003-11-13-TypeSafety.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC/2003-11-13-TypeSafety.c?rev=120158&r1=120157&r2=120158&view=diff
==============================================================================
--- llvm/trunk/test/FrontendC/2003-11-13-TypeSafety.c (original)
+++ llvm/trunk/test/FrontendC/2003-11-13-TypeSafety.c Thu Nov 25 15:24:35 2010
@@ -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;
Modified: llvm/trunk/test/FrontendC/2003-12-14-ExternInlineSupport.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC/2003-12-14-ExternInlineSupport.c?rev=120158&r1=120157&r2=120158&view=diff
==============================================================================
--- llvm/trunk/test/FrontendC/2003-12-14-ExternInlineSupport.c (original)
+++ llvm/trunk/test/FrontendC/2003-12-14-ExternInlineSupport.c Thu Nov 25 15:24:35 2010
@@ -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() {}
Modified: llvm/trunk/test/FrontendC/2004-02-12-LargeAggregateCopy.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC/2004-02-12-LargeAggregateCopy.c?rev=120158&r1=120157&r2=120158&view=diff
==============================================================================
--- llvm/trunk/test/FrontendC/2004-02-12-LargeAggregateCopy.c (original)
+++ llvm/trunk/test/FrontendC/2004-02-12-LargeAggregateCopy.c Thu Nov 25 15:24:35 2010
@@ -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;
Modified: llvm/trunk/test/FrontendC/2004-02-13-BuiltinFrameReturnAddress.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC/2004-02-13-BuiltinFrameReturnAddress.c?rev=120158&r1=120157&r2=120158&view=diff
==============================================================================
--- llvm/trunk/test/FrontendC/2004-02-13-BuiltinFrameReturnAddress.c (original)
+++ llvm/trunk/test/FrontendC/2004-02-13-BuiltinFrameReturnAddress.c Thu Nov 25 15:24:35 2010
@@ -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);
Modified: llvm/trunk/test/FrontendC/2004-02-13-IllegalVararg.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC/2004-02-13-IllegalVararg.c?rev=120158&r1=120157&r2=120158&view=diff
==============================================================================
--- llvm/trunk/test/FrontendC/2004-02-13-IllegalVararg.c (original)
+++ llvm/trunk/test/FrontendC/2004-02-13-IllegalVararg.c Thu Nov 25 15:24:35 2010
@@ -1,4 +1,4 @@
-// RUN: %llvmgcc -xc %s -w -c -o - | llc
+// RUN: %llvmgcc -xc %s -w -S -o - | llc
// XFAIL: *
// See PR2452
Modified: llvm/trunk/test/FrontendC/2004-02-13-Memset.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC/2004-02-13-Memset.c?rev=120158&r1=120157&r2=120158&view=diff
==============================================================================
--- llvm/trunk/test/FrontendC/2004-02-13-Memset.c (original)
+++ llvm/trunk/test/FrontendC/2004-02-13-Memset.c Thu Nov 25 15:24:35 2010
@@ -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);
Modified: llvm/trunk/test/FrontendC/2004-02-20-Builtins.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC/2004-02-20-Builtins.c?rev=120158&r1=120157&r2=120158&view=diff
==============================================================================
--- llvm/trunk/test/FrontendC/2004-02-20-Builtins.c (original)
+++ llvm/trunk/test/FrontendC/2004-02-20-Builtins.c Thu Nov 25 15:24:35 2010
@@ -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>
Modified: llvm/trunk/test/FrontendC/2004-03-07-ExternalConstant.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC/2004-03-07-ExternalConstant.c?rev=120158&r1=120157&r2=120158&view=diff
==============================================================================
--- llvm/trunk/test/FrontendC/2004-03-07-ExternalConstant.c (original)
+++ llvm/trunk/test/FrontendC/2004-03-07-ExternalConstant.c Thu Nov 25 15:24:35 2010
@@ -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 () {
Modified: llvm/trunk/test/FrontendC/2004-06-17-UnorderedCompares.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC/2004-06-17-UnorderedCompares.c?rev=120158&r1=120157&r2=120158&view=diff
==============================================================================
--- llvm/trunk/test/FrontendC/2004-06-17-UnorderedCompares.c (original)
+++ llvm/trunk/test/FrontendC/2004-06-17-UnorderedCompares.c Thu Nov 25 15:24:35 2010
@@ -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>
Modified: llvm/trunk/test/FrontendC/2004-11-27-StaticFunctionRedeclare.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC/2004-11-27-StaticFunctionRedeclare.c?rev=120158&r1=120157&r2=120158&view=diff
==============================================================================
--- llvm/trunk/test/FrontendC/2004-11-27-StaticFunctionRedeclare.c (original)
+++ llvm/trunk/test/FrontendC/2004-11-27-StaticFunctionRedeclare.c Thu Nov 25 15:24:35 2010
@@ -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
Modified: llvm/trunk/test/FrontendC/2005-01-02-PointerDifference.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC/2005-01-02-PointerDifference.c?rev=120158&r1=120157&r2=120158&view=diff
==============================================================================
--- llvm/trunk/test/FrontendC/2005-01-02-PointerDifference.c (original)
+++ llvm/trunk/test/FrontendC/2005-01-02-PointerDifference.c Thu Nov 25 15:24:35 2010
@@ -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; }
Modified: llvm/trunk/test/FrontendC/2005-12-04-AttributeUsed.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC/2005-12-04-AttributeUsed.c?rev=120158&r1=120157&r2=120158&view=diff
==============================================================================
--- llvm/trunk/test/FrontendC/2005-12-04-AttributeUsed.c (original)
+++ llvm/trunk/test/FrontendC/2005-12-04-AttributeUsed.c Thu Nov 25 15:24:35 2010
@@ -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));
Modified: llvm/trunk/test/FrontendC/2007-01-06-KNR-Proto.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC/2007-01-06-KNR-Proto.c?rev=120158&r1=120157&r2=120158&view=diff
==============================================================================
--- llvm/trunk/test/FrontendC/2007-01-06-KNR-Proto.c (original)
+++ llvm/trunk/test/FrontendC/2007-01-06-KNR-Proto.c Thu Nov 25 15:24:35 2010
@@ -1,4 +1,4 @@
-// RUN: %llvmgcc -S -o - -emit-llvm %s
+// RUN: %llvmgcc -S -o - %s
// PR1083
int svc_register (void (*dispatch) (int));
Modified: llvm/trunk/test/FrontendC/2007-02-04-AddrLValue-2.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC/2007-02-04-AddrLValue-2.c?rev=120158&r1=120157&r2=120158&view=diff
==============================================================================
--- llvm/trunk/test/FrontendC/2007-02-04-AddrLValue-2.c (original)
+++ llvm/trunk/test/FrontendC/2007-02-04-AddrLValue-2.c Thu Nov 25 15:24:35 2010
@@ -1,4 +1,4 @@
-// RUN: %llvmgcc %s -O3 -S -o - -emit-llvm
+// RUN: %llvmgcc %s -O3 -S -o -
// PR1173
struct S { char s; };
Modified: llvm/trunk/test/FrontendC/2007-02-04-AddrLValue.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC/2007-02-04-AddrLValue.c?rev=120158&r1=120157&r2=120158&view=diff
==============================================================================
--- llvm/trunk/test/FrontendC/2007-02-04-AddrLValue.c (original)
+++ llvm/trunk/test/FrontendC/2007-02-04-AddrLValue.c Thu Nov 25 15:24:35 2010
@@ -1,4 +1,4 @@
-// RUN: %llvmgcc %s -O3 -S -o - -emit-llvm
+// RUN: %llvmgcc %s -O3 -S -o -
// PR1176
typedef struct
Modified: llvm/trunk/test/FrontendC/2007-02-04-EmptyStruct.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC/2007-02-04-EmptyStruct.c?rev=120158&r1=120157&r2=120158&view=diff
==============================================================================
--- llvm/trunk/test/FrontendC/2007-02-04-EmptyStruct.c (original)
+++ llvm/trunk/test/FrontendC/2007-02-04-EmptyStruct.c Thu Nov 25 15:24:35 2010
@@ -1,4 +1,4 @@
-// RUN: %llvmgcc %s -O3 -S -o - -emit-llvm
+// RUN: %llvmgcc %s -O3 -S -o -
// PR1175
struct empty { };
Modified: llvm/trunk/test/FrontendC/2007-02-04-WITH_SIZE_EXPR.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC/2007-02-04-WITH_SIZE_EXPR.c?rev=120158&r1=120157&r2=120158&view=diff
==============================================================================
--- llvm/trunk/test/FrontendC/2007-02-04-WITH_SIZE_EXPR.c (original)
+++ llvm/trunk/test/FrontendC/2007-02-04-WITH_SIZE_EXPR.c Thu Nov 25 15:24:35 2010
@@ -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)
Modified: llvm/trunk/test/FrontendC/2007-02-05-nested.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC/2007-02-05-nested.c?rev=120158&r1=120157&r2=120158&view=diff
==============================================================================
--- llvm/trunk/test/FrontendC/2007-02-05-nested.c (original)
+++ llvm/trunk/test/FrontendC/2007-02-05-nested.c Thu Nov 25 15:24:35 2010
@@ -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);
Modified: llvm/trunk/test/FrontendC/2007-02-07-AddrLabel.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC/2007-02-07-AddrLabel.c?rev=120158&r1=120157&r2=120158&view=diff
==============================================================================
--- llvm/trunk/test/FrontendC/2007-02-07-AddrLabel.c (original)
+++ llvm/trunk/test/FrontendC/2007-02-07-AddrLabel.c Thu Nov 25 15:24:35 2010
@@ -1,5 +1,5 @@
// PR947
-// RUN: %llvmgcc %s -c -o -
+// RUN: %llvmgcc %s -S -o -
void foo() {
void *ptr;
Modified: llvm/trunk/test/FrontendC/2007-02-16-VoidPtrDiff.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC/2007-02-16-VoidPtrDiff.c?rev=120158&r1=120157&r2=120158&view=diff
==============================================================================
--- llvm/trunk/test/FrontendC/2007-02-16-VoidPtrDiff.c (original)
+++ llvm/trunk/test/FrontendC/2007-02-16-VoidPtrDiff.c Thu Nov 25 15:24:35 2010
@@ -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));
Modified: llvm/trunk/test/FrontendC/2007-02-16-WritableStrings.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC/2007-02-16-WritableStrings.c?rev=120158&r1=120157&r2=120158&view=diff
==============================================================================
--- llvm/trunk/test/FrontendC/2007-02-16-WritableStrings.c (original)
+++ llvm/trunk/test/FrontendC/2007-02-16-WritableStrings.c Thu Nov 25 15:24:35 2010
@@ -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";
Modified: llvm/trunk/test/FrontendC/2007-02-25-C-DotDotDot.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC/2007-02-25-C-DotDotDot.c?rev=120158&r1=120157&r2=120158&view=diff
==============================================================================
--- llvm/trunk/test/FrontendC/2007-02-25-C-DotDotDot.c (original)
+++ llvm/trunk/test/FrontendC/2007-02-25-C-DotDotDot.c Thu Nov 25 15:24:35 2010
@@ -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:
Modified: llvm/trunk/test/FrontendC/2007-03-01-VarSizeArrayIdx.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC/2007-03-01-VarSizeArrayIdx.c?rev=120158&r1=120157&r2=120158&view=diff
==============================================================================
--- llvm/trunk/test/FrontendC/2007-03-01-VarSizeArrayIdx.c (original)
+++ llvm/trunk/test/FrontendC/2007-03-01-VarSizeArrayIdx.c Thu Nov 25 15:24:35 2010
@@ -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) {
Modified: llvm/trunk/test/FrontendC/2007-04-11-InlineAsmStruct.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC/2007-04-11-InlineAsmStruct.c?rev=120158&r1=120157&r2=120158&view=diff
==============================================================================
--- llvm/trunk/test/FrontendC/2007-04-11-InlineAsmStruct.c (original)
+++ llvm/trunk/test/FrontendC/2007-04-11-InlineAsmStruct.c Thu Nov 25 15:24:35 2010
@@ -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() {
Modified: llvm/trunk/test/FrontendC/2007-04-11-InlineAsmUnion.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC/2007-04-11-InlineAsmUnion.c?rev=120158&r1=120157&r2=120158&view=diff
==============================================================================
--- llvm/trunk/test/FrontendC/2007-04-11-InlineAsmUnion.c (original)
+++ llvm/trunk/test/FrontendC/2007-04-11-InlineAsmUnion.c Thu Nov 25 15:24:35 2010
@@ -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() {
Modified: llvm/trunk/test/FrontendC/2007-04-11-InlineStorageClassC89.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC/2007-04-11-InlineStorageClassC89.c?rev=120158&r1=120157&r2=120158&view=diff
==============================================================================
--- llvm/trunk/test/FrontendC/2007-04-11-InlineStorageClassC89.c (original)
+++ llvm/trunk/test/FrontendC/2007-04-11-InlineStorageClassC89.c Thu Nov 25 15:24:35 2010
@@ -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));
Modified: llvm/trunk/test/FrontendC/2007-04-11-InlineStorageClassC99.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC/2007-04-11-InlineStorageClassC99.c?rev=120158&r1=120157&r2=120158&view=diff
==============================================================================
--- llvm/trunk/test/FrontendC/2007-04-11-InlineStorageClassC99.c (original)
+++ llvm/trunk/test/FrontendC/2007-04-11-InlineStorageClassC99.c Thu Nov 25 15:24:35 2010
@@ -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));
Modified: llvm/trunk/test/FrontendC/2007-04-13-InlineAsmStruct2.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC/2007-04-13-InlineAsmStruct2.c?rev=120158&r1=120157&r2=120158&view=diff
==============================================================================
--- llvm/trunk/test/FrontendC/2007-04-13-InlineAsmStruct2.c (original)
+++ llvm/trunk/test/FrontendC/2007-04-13-InlineAsmStruct2.c Thu Nov 25 15:24:35 2010
@@ -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() {
Modified: llvm/trunk/test/FrontendC/2007-04-13-InlineAsmUnion2.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC/2007-04-13-InlineAsmUnion2.c?rev=120158&r1=120157&r2=120158&view=diff
==============================================================================
--- llvm/trunk/test/FrontendC/2007-04-13-InlineAsmUnion2.c (original)
+++ llvm/trunk/test/FrontendC/2007-04-13-InlineAsmUnion2.c Thu Nov 25 15:24:35 2010
@@ -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() {
Modified: llvm/trunk/test/FrontendC/2007-04-24-VolatileStructCopy.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC/2007-04-24-VolatileStructCopy.c?rev=120158&r1=120157&r2=120158&view=diff
==============================================================================
--- llvm/trunk/test/FrontendC/2007-04-24-VolatileStructCopy.c (original)
+++ llvm/trunk/test/FrontendC/2007-04-24-VolatileStructCopy.c Thu Nov 25 15:24:35 2010
@@ -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 {
Modified: llvm/trunk/test/FrontendC/2007-04-24-bit-not-expr.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC/2007-04-24-bit-not-expr.c?rev=120158&r1=120157&r2=120158&view=diff
==============================================================================
--- llvm/trunk/test/FrontendC/2007-04-24-bit-not-expr.c (original)
+++ llvm/trunk/test/FrontendC/2007-04-24-bit-not-expr.c Thu Nov 25 15:24:35 2010
@@ -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) {
Modified: llvm/trunk/test/FrontendC/2007-04-24-str-const.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC/2007-04-24-str-const.c?rev=120158&r1=120157&r2=120158&view=diff
==============================================================================
--- llvm/trunk/test/FrontendC/2007-04-24-str-const.c (original)
+++ llvm/trunk/test/FrontendC/2007-04-24-str-const.c Thu Nov 25 15:24:35 2010
@@ -1,4 +1,4 @@
-// RUN: %llvmgcc -c %s -o /dev/null
+// RUN: %llvmgcc -S %s -o /dev/null
static char *str;
static const struct {
Modified: llvm/trunk/test/FrontendC/2007-05-07-PaddingElements.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC/2007-05-07-PaddingElements.c?rev=120158&r1=120157&r2=120158&view=diff
==============================================================================
--- llvm/trunk/test/FrontendC/2007-05-07-PaddingElements.c (original)
+++ llvm/trunk/test/FrontendC/2007-05-07-PaddingElements.c Thu Nov 25 15:24:35 2010
@@ -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;
Modified: llvm/trunk/test/FrontendC/2007-05-11-str-const.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC/2007-05-11-str-const.c?rev=120158&r1=120157&r2=120158&view=diff
==============================================================================
--- llvm/trunk/test/FrontendC/2007-05-11-str-const.c (original)
+++ llvm/trunk/test/FrontendC/2007-05-11-str-const.c Thu Nov 25 15:24:35 2010
@@ -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";
Modified: llvm/trunk/test/FrontendC/2007-05-15-PaddingElement.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC/2007-05-15-PaddingElement.c?rev=120158&r1=120157&r2=120158&view=diff
==============================================================================
--- llvm/trunk/test/FrontendC/2007-05-15-PaddingElement.c (original)
+++ llvm/trunk/test/FrontendC/2007-05-15-PaddingElement.c Thu Nov 25 15:24:35 2010
@@ -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;
Modified: llvm/trunk/test/FrontendC/2007-05-16-EmptyStruct.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC/2007-05-16-EmptyStruct.c?rev=120158&r1=120157&r2=120158&view=diff
==============================================================================
--- llvm/trunk/test/FrontendC/2007-05-16-EmptyStruct.c (original)
+++ llvm/trunk/test/FrontendC/2007-05-16-EmptyStruct.c Thu Nov 25 15:24:35 2010
@@ -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;
Modified: llvm/trunk/test/FrontendC/2007-05-29-UnionCopy.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC/2007-05-29-UnionCopy.c?rev=120158&r1=120157&r2=120158&view=diff
==============================================================================
--- llvm/trunk/test/FrontendC/2007-05-29-UnionCopy.c (original)
+++ llvm/trunk/test/FrontendC/2007-05-29-UnionCopy.c Thu Nov 25 15:24:35 2010
@@ -1,4 +1,4 @@
-// RUN: %llvmgcc -S -o - -emit-llvm %s | grep memcpy
+// RUN: %llvmgcc -S -o - %s | grep memcpy
// PR1421
struct A {
Modified: llvm/trunk/test/FrontendC/2007-06-05-NoInlineAttribute.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC/2007-06-05-NoInlineAttribute.c?rev=120158&r1=120157&r2=120158&view=diff
==============================================================================
--- llvm/trunk/test/FrontendC/2007-06-05-NoInlineAttribute.c (original)
+++ llvm/trunk/test/FrontendC/2007-06-05-NoInlineAttribute.c Thu Nov 25 15:24:35 2010
@@ -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));
Modified: llvm/trunk/test/FrontendC/2007-06-15-AnnotateAttribute.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC/2007-06-15-AnnotateAttribute.c?rev=120158&r1=120157&r2=120158&view=diff
==============================================================================
--- llvm/trunk/test/FrontendC/2007-06-15-AnnotateAttribute.c (original)
+++ llvm/trunk/test/FrontendC/2007-06-15-AnnotateAttribute.c Thu Nov 25 15:24:35 2010
@@ -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>
Modified: llvm/trunk/test/FrontendC/2007-06-18-SextAttrAggregate.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC/2007-06-18-SextAttrAggregate.c?rev=120158&r1=120157&r2=120158&view=diff
==============================================================================
--- llvm/trunk/test/FrontendC/2007-06-18-SextAttrAggregate.c (original)
+++ llvm/trunk/test/FrontendC/2007-06-18-SextAttrAggregate.c Thu Nov 25 15:24:35 2010
@@ -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{
Modified: llvm/trunk/test/FrontendC/2007-07-29-RestrictPtrArg.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC/2007-07-29-RestrictPtrArg.c?rev=120158&r1=120157&r2=120158&view=diff
==============================================================================
--- llvm/trunk/test/FrontendC/2007-07-29-RestrictPtrArg.c (original)
+++ llvm/trunk/test/FrontendC/2007-07-29-RestrictPtrArg.c Thu Nov 25 15:24:35 2010
@@ -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;
Modified: llvm/trunk/test/FrontendC/2007-08-01-LoadStoreAlign.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC/2007-08-01-LoadStoreAlign.c?rev=120158&r1=120157&r2=120158&view=diff
==============================================================================
--- llvm/trunk/test/FrontendC/2007-08-01-LoadStoreAlign.c (original)
+++ llvm/trunk/test/FrontendC/2007-08-01-LoadStoreAlign.c Thu Nov 25 15:24:35 2010
@@ -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;
Modified: llvm/trunk/test/FrontendC/2007-08-21-ComplexCst.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC/2007-08-21-ComplexCst.c?rev=120158&r1=120157&r2=120158&view=diff
==============================================================================
--- llvm/trunk/test/FrontendC/2007-08-21-ComplexCst.c (original)
+++ llvm/trunk/test/FrontendC/2007-08-21-ComplexCst.c Thu Nov 25 15:24:35 2010
@@ -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); }
Modified: llvm/trunk/test/FrontendC/2007-09-05-ConstCtor.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC/2007-09-05-ConstCtor.c?rev=120158&r1=120157&r2=120158&view=diff
==============================================================================
--- llvm/trunk/test/FrontendC/2007-09-05-ConstCtor.c (original)
+++ llvm/trunk/test/FrontendC/2007-09-05-ConstCtor.c Thu Nov 25 15:24:35 2010
@@ -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 {
Modified: llvm/trunk/test/FrontendC/2007-09-20-GcrootAttribute.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC/2007-09-20-GcrootAttribute.c?rev=120158&r1=120157&r2=120158&view=diff
==============================================================================
--- llvm/trunk/test/FrontendC/2007-09-20-GcrootAttribute.c (original)
+++ llvm/trunk/test/FrontendC/2007-09-20-GcrootAttribute.c Thu Nov 25 15:24:35 2010
@@ -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
{
Modified: llvm/trunk/test/FrontendC/2007-11-07-AlignedMemcpy.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC/2007-11-07-AlignedMemcpy.c?rev=120158&r1=120157&r2=120158&view=diff
==============================================================================
--- llvm/trunk/test/FrontendC/2007-11-07-AlignedMemcpy.c (original)
+++ llvm/trunk/test/FrontendC/2007-11-07-AlignedMemcpy.c Thu Nov 25 15:24:35 2010
@@ -1,4 +1,4 @@
-// RUN: %llvmgcc -c %s -o /dev/null
+// RUN: %llvmgcc -S %s -o /dev/null
void bork() {
int Qux[33] = {0};
}
Modified: llvm/trunk/test/FrontendC/2007-11-27-SExtZExt.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC/2007-11-27-SExtZExt.c?rev=120158&r1=120157&r2=120158&view=diff
==============================================================================
--- llvm/trunk/test/FrontendC/2007-11-27-SExtZExt.c (original)
+++ llvm/trunk/test/FrontendC/2007-11-27-SExtZExt.c Thu Nov 25 15:24:35 2010
@@ -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; }
Modified: llvm/trunk/test/FrontendC/2008-01-25-ByValReadNone.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC/2008-01-25-ByValReadNone.c?rev=120158&r1=120157&r2=120158&view=diff
==============================================================================
--- llvm/trunk/test/FrontendC/2008-01-25-ByValReadNone.c (original)
+++ llvm/trunk/test/FrontendC/2008-01-25-ByValReadNone.c Thu Nov 25 15:24:35 2010
@@ -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
Modified: llvm/trunk/test/FrontendC/2008-01-28-PragmaMark.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC/2008-01-28-PragmaMark.c?rev=120158&r1=120157&r2=120158&view=diff
==============================================================================
--- llvm/trunk/test/FrontendC/2008-01-28-PragmaMark.c (original)
+++ llvm/trunk/test/FrontendC/2008-01-28-PragmaMark.c Thu Nov 25 15:24:35 2010
@@ -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
Modified: llvm/trunk/test/FrontendC/2008-03-03-CtorAttrType.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC/2008-03-03-CtorAttrType.c?rev=120158&r1=120157&r2=120158&view=diff
==============================================================================
--- llvm/trunk/test/FrontendC/2008-03-03-CtorAttrType.c (original)
+++ llvm/trunk/test/FrontendC/2008-03-03-CtorAttrType.c Thu Nov 25 15:24:35 2010
@@ -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;
}
Modified: llvm/trunk/test/FrontendC/2008-03-05-syncPtr.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC/2008-03-05-syncPtr.c?rev=120158&r1=120157&r2=120158&view=diff
==============================================================================
--- llvm/trunk/test/FrontendC/2008-03-05-syncPtr.c (original)
+++ llvm/trunk/test/FrontendC/2008-03-05-syncPtr.c Thu Nov 25 15:24:35 2010
@@ -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.
Modified: llvm/trunk/test/FrontendC/2008-05-19-AlwaysInline.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC/2008-05-19-AlwaysInline.c?rev=120158&r1=120157&r2=120158&view=diff
==============================================================================
--- llvm/trunk/test/FrontendC/2008-05-19-AlwaysInline.c (original)
+++ llvm/trunk/test/FrontendC/2008-05-19-AlwaysInline.c Thu Nov 25 15:24:35 2010
@@ -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)
Modified: llvm/trunk/test/FrontendC/2008-08-07-AlignPadding1.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC/2008-08-07-AlignPadding1.c?rev=120158&r1=120157&r2=120158&view=diff
==============================================================================
--- llvm/trunk/test/FrontendC/2008-08-07-AlignPadding1.c (original)
+++ llvm/trunk/test/FrontendC/2008-08-07-AlignPadding1.c Thu Nov 25 15:24:35 2010
@@ -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. */
Modified: llvm/trunk/test/FrontendC/2008-08-07-AlignPadding2.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC/2008-08-07-AlignPadding2.c?rev=120158&r1=120157&r2=120158&view=diff
==============================================================================
--- llvm/trunk/test/FrontendC/2008-08-07-AlignPadding2.c (original)
+++ llvm/trunk/test/FrontendC/2008-08-07-AlignPadding2.c Thu Nov 25 15:24:35 2010
@@ -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. */
Modified: llvm/trunk/test/FrontendC/2008-10-30-ZeroPlacement.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC/2008-10-30-ZeroPlacement.c?rev=120158&r1=120157&r2=120158&view=diff
==============================================================================
--- llvm/trunk/test/FrontendC/2008-10-30-ZeroPlacement.c (original)
+++ llvm/trunk/test/FrontendC/2008-10-30-ZeroPlacement.c Thu Nov 25 15:24:35 2010
@@ -1,4 +1,4 @@
-// RUN: %llvmgcc -c %s
+// RUN: %llvmgcc -S %s
// PR2987
struct S2045
{
Modified: llvm/trunk/test/FrontendC/2008-11-02-WeakAlias.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC/2008-11-02-WeakAlias.c?rev=120158&r1=120157&r2=120158&view=diff
==============================================================================
--- llvm/trunk/test/FrontendC/2008-11-02-WeakAlias.c (original)
+++ llvm/trunk/test/FrontendC/2008-11-02-WeakAlias.c Thu Nov 25 15:24:35 2010
@@ -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")));
Modified: llvm/trunk/test/FrontendC/2008-11-08-InstCombineSelect.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC/2008-11-08-InstCombineSelect.c?rev=120158&r1=120157&r2=120158&view=diff
==============================================================================
--- llvm/trunk/test/FrontendC/2008-11-08-InstCombineSelect.c (original)
+++ llvm/trunk/test/FrontendC/2008-11-08-InstCombineSelect.c Thu Nov 25 15:24:35 2010
@@ -1,4 +1,4 @@
-// RUN: %llvmgcc %s -S -emit-llvm -O2 -o -
+// RUN: %llvmgcc %s -S -O2 -o -
// PR3028
int g_187;
Modified: llvm/trunk/test/FrontendC/2008-11-11-AnnotateStructFieldAttribute.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC/2008-11-11-AnnotateStructFieldAttribute.c?rev=120158&r1=120157&r2=120158&view=diff
==============================================================================
--- llvm/trunk/test/FrontendC/2008-11-11-AnnotateStructFieldAttribute.c (original)
+++ llvm/trunk/test/FrontendC/2008-11-11-AnnotateStructFieldAttribute.c Thu Nov 25 15:24:35 2010
@@ -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>
Modified: llvm/trunk/test/FrontendC/2008-12-23-AsmIntPointerTie.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC/2008-12-23-AsmIntPointerTie.c?rev=120158&r1=120157&r2=120158&view=diff
==============================================================================
--- llvm/trunk/test/FrontendC/2008-12-23-AsmIntPointerTie.c (original)
+++ llvm/trunk/test/FrontendC/2008-12-23-AsmIntPointerTie.c Thu Nov 25 15:24:35 2010
@@ -1,4 +1,4 @@
-// RUN: %llvmgcc %s -S -emit-llvm -O1 -o -
+// RUN: %llvmgcc %s -S -O1 -o -
#include <stdint.h>
Modified: llvm/trunk/test/FrontendC/2009-01-05-BlockInlining.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC/2009-01-05-BlockInlining.c?rev=120158&r1=120157&r2=120158&view=diff
==============================================================================
--- llvm/trunk/test/FrontendC/2009-01-05-BlockInlining.c (original)
+++ llvm/trunk/test/FrontendC/2009-01-05-BlockInlining.c Thu Nov 25 15:24:35 2010
@@ -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
Modified: llvm/trunk/test/FrontendC/2009-03-13-dbg.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC/2009-03-13-dbg.c?rev=120158&r1=120157&r2=120158&view=diff
==============================================================================
--- llvm/trunk/test/FrontendC/2009-03-13-dbg.c (original)
+++ llvm/trunk/test/FrontendC/2009-03-13-dbg.c Thu Nov 25 15:24:35 2010
@@ -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() {}
Modified: llvm/trunk/test/FrontendC/2009-05-04-EnumInreg.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC/2009-05-04-EnumInreg.c?rev=120158&r1=120157&r2=120158&view=diff
==============================================================================
--- llvm/trunk/test/FrontendC/2009-05-04-EnumInreg.c (original)
+++ llvm/trunk/test/FrontendC/2009-05-04-EnumInreg.c Thu Nov 25 15:24:35 2010
@@ -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
Modified: llvm/trunk/test/FrontendC/2010-01-13-MemBarrier.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC/2010-01-13-MemBarrier.c?rev=120158&r1=120157&r2=120158&view=diff
==============================================================================
--- llvm/trunk/test/FrontendC/2010-01-13-MemBarrier.c (original)
+++ llvm/trunk/test/FrontendC/2010-01-13-MemBarrier.c Thu Nov 25 15:24:35 2010
@@ -1,4 +1,4 @@
-// RUN: %llvmgcc %s -S -emit-llvm -o - | FileCheck %s
+// RUN: %llvmgcc %s -S -o - | FileCheck %s
// XFAIL: sparc
// rdar://7536390
Modified: llvm/trunk/test/FrontendC/2010-05-18-asmsched.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC/2010-05-18-asmsched.c?rev=120158&r1=120157&r2=120158&view=diff
==============================================================================
--- llvm/trunk/test/FrontendC/2010-05-18-asmsched.c (original)
+++ llvm/trunk/test/FrontendC/2010-05-18-asmsched.c Thu Nov 25 15:24:35 2010
@@ -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) {
Modified: llvm/trunk/test/FrontendC/2010-05-26-AsmSideEffect.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC/2010-05-26-AsmSideEffect.c?rev=120158&r1=120157&r2=120158&view=diff
==============================================================================
--- llvm/trunk/test/FrontendC/2010-05-26-AsmSideEffect.c (original)
+++ llvm/trunk/test/FrontendC/2010-05-26-AsmSideEffect.c Thu Nov 25 15:24:35 2010
@@ -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) {
Modified: llvm/trunk/test/FrontendC/2010-06-28-nowarn.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC/2010-06-28-nowarn.c?rev=120158&r1=120157&r2=120158&view=diff
==============================================================================
--- llvm/trunk/test/FrontendC/2010-06-28-nowarn.c (original)
+++ llvm/trunk/test/FrontendC/2010-06-28-nowarn.c Thu Nov 25 15:24:35 2010
@@ -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
Modified: llvm/trunk/test/FrontendC/2010-07-14-overconservative-align.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC/2010-07-14-overconservative-align.c?rev=120158&r1=120157&r2=120158&view=diff
==============================================================================
--- llvm/trunk/test/FrontendC/2010-07-14-overconservative-align.c (original)
+++ llvm/trunk/test/FrontendC/2010-07-14-overconservative-align.c Thu Nov 25 15:24:35 2010
@@ -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;
Modified: llvm/trunk/test/FrontendC/attribute_constructor.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC/attribute_constructor.c?rev=120158&r1=120157&r2=120158&view=diff
==============================================================================
--- llvm/trunk/test/FrontendC/attribute_constructor.c (original)
+++ llvm/trunk/test/FrontendC/attribute_constructor.c Thu Nov 25 15:24:35 2010
@@ -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() {
Modified: llvm/trunk/test/FrontendC/block-copy.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC/block-copy.c?rev=120158&r1=120157&r2=120158&view=diff
==============================================================================
--- llvm/trunk/test/FrontendC/block-copy.c (original)
+++ llvm/trunk/test/FrontendC/block-copy.c Thu Nov 25 15:24:35 2010
@@ -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. */
Modified: llvm/trunk/test/FrontendC/cstring-align.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC/cstring-align.c?rev=120158&r1=120157&r2=120158&view=diff
==============================================================================
--- llvm/trunk/test/FrontendC/cstring-align.c (original)
+++ llvm/trunk/test/FrontendC/cstring-align.c Thu Nov 25 15:24:35 2010
@@ -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 *);
Modified: llvm/trunk/test/FrontendC/extern-weak.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC/extern-weak.c?rev=120158&r1=120157&r2=120158&view=diff
==============================================================================
--- llvm/trunk/test/FrontendC/extern-weak.c (original)
+++ llvm/trunk/test/FrontendC/extern-weak.c Thu Nov 25 15:24:35 2010
@@ -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__)
Modified: llvm/trunk/test/FrontendC/func-aligned.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC/func-aligned.c?rev=120158&r1=120157&r2=120158&view=diff
==============================================================================
--- llvm/trunk/test/FrontendC/func-aligned.c (original)
+++ llvm/trunk/test/FrontendC/func-aligned.c Thu Nov 25 15:24:35 2010
@@ -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)));
Modified: llvm/trunk/test/FrontendC/hidden-visibility.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC/hidden-visibility.c?rev=120158&r1=120157&r2=120158&view=diff
==============================================================================
--- llvm/trunk/test/FrontendC/hidden-visibility.c (original)
+++ llvm/trunk/test/FrontendC/hidden-visibility.c Thu Nov 25 15:24:35 2010
@@ -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;
Modified: llvm/trunk/test/FrontendC/implicit-arg.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC/implicit-arg.c?rev=120158&r1=120157&r2=120158&view=diff
==============================================================================
--- llvm/trunk/test/FrontendC/implicit-arg.c (original)
+++ llvm/trunk/test/FrontendC/implicit-arg.c Thu Nov 25 15:24:35 2010
@@ -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();
Modified: llvm/trunk/test/FrontendC/libcalls-d.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC/libcalls-d.c?rev=120158&r1=120157&r2=120158&view=diff
==============================================================================
--- llvm/trunk/test/FrontendC/libcalls-d.c (original)
+++ llvm/trunk/test/FrontendC/libcalls-d.c Thu Nov 25 15:24:35 2010
@@ -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);
Modified: llvm/trunk/test/FrontendC/libcalls-ld.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC/libcalls-ld.c?rev=120158&r1=120157&r2=120158&view=diff
==============================================================================
--- llvm/trunk/test/FrontendC/libcalls-ld.c (original)
+++ llvm/trunk/test/FrontendC/libcalls-ld.c Thu Nov 25 15:24:35 2010
@@ -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.
Modified: llvm/trunk/test/FrontendC/libcalls.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC/libcalls.c?rev=120158&r1=120157&r2=120158&view=diff
==============================================================================
--- llvm/trunk/test/FrontendC/libcalls.c (original)
+++ llvm/trunk/test/FrontendC/libcalls.c Thu Nov 25 15:24:35 2010
@@ -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);
Modified: llvm/trunk/test/FrontendC/pr3518.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC/pr3518.c?rev=120158&r1=120157&r2=120158&view=diff
==============================================================================
--- llvm/trunk/test/FrontendC/pr3518.c (original)
+++ llvm/trunk/test/FrontendC/pr3518.c Thu Nov 25 15:24:35 2010
@@ -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
Modified: llvm/trunk/test/FrontendC/pr4349.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC/pr4349.c?rev=120158&r1=120157&r2=120158&view=diff
==============================================================================
--- llvm/trunk/test/FrontendC/pr4349.c (original)
+++ llvm/trunk/test/FrontendC/pr4349.c Thu Nov 25 15:24:35 2010
@@ -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
Modified: llvm/trunk/test/FrontendC/pr5406.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC/pr5406.c?rev=120158&r1=120157&r2=120158&view=diff
==============================================================================
--- llvm/trunk/test/FrontendC/pr5406.c (original)
+++ llvm/trunk/test/FrontendC/pr5406.c Thu Nov 25 15:24:35 2010
@@ -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: *
Modified: llvm/trunk/test/FrontendC/ptr-rotate.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC/ptr-rotate.c?rev=120158&r1=120157&r2=120158&view=diff
==============================================================================
--- llvm/trunk/test/FrontendC/ptr-rotate.c (original)
+++ llvm/trunk/test/FrontendC/ptr-rotate.c Thu Nov 25 15:24:35 2010
@@ -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
Modified: llvm/trunk/test/FrontendC/sret.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC/sret.c?rev=120158&r1=120157&r2=120158&view=diff
==============================================================================
--- llvm/trunk/test/FrontendC/sret.c (original)
+++ llvm/trunk/test/FrontendC/sret.c Thu Nov 25 15:24:35 2010
@@ -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;
Modified: llvm/trunk/test/FrontendC/sret2.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC/sret2.c?rev=120158&r1=120157&r2=120158&view=diff
==============================================================================
--- llvm/trunk/test/FrontendC/sret2.c (original)
+++ llvm/trunk/test/FrontendC/sret2.c Thu Nov 25 15:24:35 2010
@@ -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;
Modified: llvm/trunk/test/FrontendC/unaligned-memcpy.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC/unaligned-memcpy.c?rev=120158&r1=120157&r2=120158&view=diff
==============================================================================
--- llvm/trunk/test/FrontendC/unaligned-memcpy.c (original)
+++ llvm/trunk/test/FrontendC/unaligned-memcpy.c Thu Nov 25 15:24:35 2010
@@ -1,4 +1,4 @@
-// RUN: %llvmgcc %s -S -emit-llvm -o - | llc
+// RUN: %llvmgcc %s -S -o - | llc
void bork() {
char Qux[33] = {0};
More information about the llvm-commits
mailing list