diff options
46 files changed, 92 insertions, 0 deletions
diff --git a/test/CodeGen/CBackend/2002-05-16-NameCollide.ll b/test/CodeGen/CBackend/2002-05-16-NameCollide.ll index c08024b..e9206b5 100644 --- a/test/CodeGen/CBackend/2002-05-16-NameCollide.ll +++ b/test/CodeGen/CBackend/2002-05-16-NameCollide.ll @@ -1,3 +1,5 @@ +; RUN: llvm-as < %s | llc -march=c + ; Make sure that global variables do not collide if they have the same name, ; but different types. diff --git a/test/CodeGen/CBackend/2002-05-21-MissingReturn.ll b/test/CodeGen/CBackend/2002-05-21-MissingReturn.ll index 2fd3e27..a5045b5 100644 --- a/test/CodeGen/CBackend/2002-05-21-MissingReturn.ll +++ b/test/CodeGen/CBackend/2002-05-21-MissingReturn.ll @@ -1,3 +1,5 @@ +; RUN: llvm-as < %s | llc -march=c + ; This case was emitting code that looked like this: ; ... ; llvm_BB1: /* no statement here */ diff --git a/test/CodeGen/CBackend/2002-08-19-ConstPointerRef.ll b/test/CodeGen/CBackend/2002-08-19-ConstPointerRef.ll index 8654baa..4b776cd 100644 --- a/test/CodeGen/CBackend/2002-08-19-ConstPointerRef.ll +++ b/test/CodeGen/CBackend/2002-08-19-ConstPointerRef.ll @@ -1,3 +1,5 @@ +; RUN: llvm-as < %s | llc -march=c + ; Test const pointer refs & forward references %t3 = global int * %t1 ;; Forward reference diff --git a/test/CodeGen/CBackend/2002-08-19-ConstantExpr.ll b/test/CodeGen/CBackend/2002-08-19-ConstantExpr.ll index bbd34ec..813a347 100644 --- a/test/CodeGen/CBackend/2002-08-19-ConstantExpr.ll +++ b/test/CodeGen/CBackend/2002-08-19-ConstantExpr.ll @@ -1,3 +1,5 @@ +; RUN: llvm-as < %s | llc -march=c + global int* cast (float* %0 to int*) ;; Forward numeric reference global float* %0 ;; Duplicate forward numeric reference global float 0.0 diff --git a/test/CodeGen/CBackend/2002-08-19-DataPointer.ll b/test/CodeGen/CBackend/2002-08-19-DataPointer.ll index f7481ea..b76f1d2 100644 --- a/test/CodeGen/CBackend/2002-08-19-DataPointer.ll +++ b/test/CodeGen/CBackend/2002-08-19-DataPointer.ll @@ -1,3 +1,5 @@ +; RUN: llvm-as < %s | llc -march=c + %sptr1 = global [11x sbyte]* %somestr ;; Forward ref to a constant %somestr = constant [11x sbyte] c"hello world" diff --git a/test/CodeGen/CBackend/2002-08-19-FunctionPointer.ll b/test/CodeGen/CBackend/2002-08-19-FunctionPointer.ll index ac28d93..c06d72d 100644 --- a/test/CodeGen/CBackend/2002-08-19-FunctionPointer.ll +++ b/test/CodeGen/CBackend/2002-08-19-FunctionPointer.ll @@ -1,3 +1,5 @@ +; RUN: llvm-as < %s | llc -march=c + %fptr = global void() * %f ;; Forward ref method defn declare void "f"() ;; External method diff --git a/test/CodeGen/CBackend/2002-08-19-HardConstantExpr.ll b/test/CodeGen/CBackend/2002-08-19-HardConstantExpr.ll index b0dca8e..f4f0a12 100644 --- a/test/CodeGen/CBackend/2002-08-19-HardConstantExpr.ll +++ b/test/CodeGen/CBackend/2002-08-19-HardConstantExpr.ll @@ -1,3 +1,5 @@ +; RUN: llvm-as < %s | llc -march=c + %array = constant [2 x int] [ int 12, int 52 ] ; <[2 x int]*> [#uses=1] %arrayPtr = global int* getelementptr ([2 x int]* %array, long 0, long 0) ; <int**> [#uses=1] diff --git a/test/CodeGen/CBackend/2002-08-20-RecursiveTypes.ll b/test/CodeGen/CBackend/2002-08-20-RecursiveTypes.ll index cb20180..1ae02d0 100644 --- a/test/CodeGen/CBackend/2002-08-20-RecursiveTypes.ll +++ b/test/CodeGen/CBackend/2002-08-20-RecursiveTypes.ll @@ -1,2 +1,4 @@ +; RUN: llvm-as < %s | llc -march=c + %MyIntList = uninitialized global { \2 *, int } diff --git a/test/CodeGen/CBackend/2002-08-20-UnnamedArgument.ll b/test/CodeGen/CBackend/2002-08-20-UnnamedArgument.ll index 842c2d7..46ac9b6 100644 --- a/test/CodeGen/CBackend/2002-08-20-UnnamedArgument.ll +++ b/test/CodeGen/CBackend/2002-08-20-UnnamedArgument.ll @@ -1,3 +1,5 @@ +; RUN: llvm-as < %s | llc -march=c + ; The C Writer bombs on this testcase because it tries the print the prototype ; for the test function, which tries to print the argument name. The function ; has not been incorporated into the slot calculator, so after it does the name diff --git a/test/CodeGen/CBackend/2002-08-26-IndirectCallTest.ll b/test/CodeGen/CBackend/2002-08-26-IndirectCallTest.ll index c8eeb59..9a76cfb 100644 --- a/test/CodeGen/CBackend/2002-08-26-IndirectCallTest.ll +++ b/test/CodeGen/CBackend/2002-08-26-IndirectCallTest.ll @@ -1,3 +1,5 @@ +; RUN: llvm-as < %s | llc -march=c + ; Indirect function call test... found by Joel & Brian ; diff --git a/test/CodeGen/CBackend/2002-08-30-StructureOrderingTest.ll b/test/CodeGen/CBackend/2002-08-30-StructureOrderingTest.ll index 36b9f34..1419283 100644 --- a/test/CodeGen/CBackend/2002-08-30-StructureOrderingTest.ll +++ b/test/CodeGen/CBackend/2002-08-30-StructureOrderingTest.ll @@ -1,3 +1,5 @@ +; RUN: llvm-as < %s | llc -march=c + ; This testcase fails because the C backend does not arrange to output the ; contents of a structure type before it outputs the structure type itself. diff --git a/test/CodeGen/CBackend/2002-09-20-ArrayTypeFailure.ll b/test/CodeGen/CBackend/2002-09-20-ArrayTypeFailure.ll index 87eaadc..66514c6 100644 --- a/test/CodeGen/CBackend/2002-09-20-ArrayTypeFailure.ll +++ b/test/CodeGen/CBackend/2002-09-20-ArrayTypeFailure.ll @@ -1,3 +1,5 @@ +; RUN: llvm-as < %s | llc -march=c + implementation diff --git a/test/CodeGen/CBackend/2002-09-20-VarArgPrototypes.ll b/test/CodeGen/CBackend/2002-09-20-VarArgPrototypes.ll index 6f318fa..934bee4 100644 --- a/test/CodeGen/CBackend/2002-09-20-VarArgPrototypes.ll +++ b/test/CodeGen/CBackend/2002-09-20-VarArgPrototypes.ll @@ -1,3 +1,5 @@ +; RUN: llvm-as < %s | llc -march=c + declare void %foo(...) diff --git a/test/CodeGen/CBackend/2002-10-15-OpaqueTypeProblem.ll b/test/CodeGen/CBackend/2002-10-15-OpaqueTypeProblem.ll index 1cd65c2..4a82f27 100644 --- a/test/CodeGen/CBackend/2002-10-15-OpaqueTypeProblem.ll +++ b/test/CodeGen/CBackend/2002-10-15-OpaqueTypeProblem.ll @@ -1,3 +1,5 @@ +; RUN: llvm-as < %s | llc -march=c + %MPI_Comm = type %struct.Comm* %struct.Comm = type opaque %thing = global %MPI_Comm* null ; <%MPI_Comm**> [#uses=0] diff --git a/test/CodeGen/CBackend/2002-10-16-External.ll b/test/CodeGen/CBackend/2002-10-16-External.ll index 3ad9089..edfc397 100644 --- a/test/CodeGen/CBackend/2002-10-16-External.ll +++ b/test/CodeGen/CBackend/2002-10-16-External.ll @@ -1,2 +1,4 @@ +; RUN: llvm-as < %s | llc -march=c + %bob = external global int ; <int*> [#uses=2] diff --git a/test/CodeGen/CBackend/2002-10-30-FunctionPointerAlloca.ll b/test/CodeGen/CBackend/2002-10-30-FunctionPointerAlloca.ll index 2e21ee7..4e1ff83 100644 --- a/test/CodeGen/CBackend/2002-10-30-FunctionPointerAlloca.ll +++ b/test/CodeGen/CBackend/2002-10-30-FunctionPointerAlloca.ll @@ -1,3 +1,5 @@ +; RUN: llvm-as < %s | llc -march=c + %BitField = type int %tokenptr = type %BitField* diff --git a/test/CodeGen/CBackend/2002-11-06-PrintEscaped.ll b/test/CodeGen/CBackend/2002-11-06-PrintEscaped.ll index 9451212..3d26732 100644 --- a/test/CodeGen/CBackend/2002-11-06-PrintEscaped.ll +++ b/test/CodeGen/CBackend/2002-11-06-PrintEscaped.ll @@ -1,3 +1,5 @@ +; RUN: llvm-as < %s | llc -march=c + %testString = internal constant [18 x sbyte] c "Escaped newline\n\00" implementation diff --git a/test/CodeGen/CBackend/2003-05-12-IntegerSizeWarning.ll b/test/CodeGen/CBackend/2003-05-12-IntegerSizeWarning.ll index f709dfd..0f2fc1b 100644 --- a/test/CodeGen/CBackend/2003-05-12-IntegerSizeWarning.ll +++ b/test/CodeGen/CBackend/2003-05-12-IntegerSizeWarning.ll @@ -1,3 +1,5 @@ +; RUN: llvm-as < %s | llc -march=c + ; Apparently this constant was unsigned in ISO C 90, but not in C 99. int %foo() { diff --git a/test/CodeGen/CBackend/2003-05-13-VarArgFunction.ll b/test/CodeGen/CBackend/2003-05-13-VarArgFunction.ll index 1b2c2b8..45638a0 100644 --- a/test/CodeGen/CBackend/2003-05-13-VarArgFunction.ll +++ b/test/CodeGen/CBackend/2003-05-13-VarArgFunction.ll @@ -1,3 +1,5 @@ +; RUN: llvm-as < %s | llc -march=c + ; This testcase breaks the C backend, because gcc doesn't like (...) functions ; with no arguments at all. diff --git a/test/CodeGen/CBackend/2003-05-31-MissingStructName.ll b/test/CodeGen/CBackend/2003-05-31-MissingStructName.ll index 1eae406..6e86a2a 100644 --- a/test/CodeGen/CBackend/2003-05-31-MissingStructName.ll +++ b/test/CodeGen/CBackend/2003-05-31-MissingStructName.ll @@ -1,3 +1,5 @@ +; RUN: llvm-as < %s | llc -march=c + ; The C backend was dying when there was no typename for a struct type! declare int %test(int,{ [32 x int] }*) diff --git a/test/CodeGen/CBackend/2003-06-01-NullPointerType.ll b/test/CodeGen/CBackend/2003-06-01-NullPointerType.ll index 3121923..5cd1c4c 100644 --- a/test/CodeGen/CBackend/2003-06-01-NullPointerType.ll +++ b/test/CodeGen/CBackend/2003-06-01-NullPointerType.ll @@ -1,3 +1,5 @@ +; RUN: llvm-as < %s | llc -march=c + %X = type { int, float } diff --git a/test/CodeGen/CBackend/2003-06-11-HexConstant.ll b/test/CodeGen/CBackend/2003-06-11-HexConstant.ll index 31bbf88..4b5ddaa 100644 --- a/test/CodeGen/CBackend/2003-06-11-HexConstant.ll +++ b/test/CodeGen/CBackend/2003-06-11-HexConstant.ll @@ -1,3 +1,5 @@ +; RUN: llvm-as < %s | llc -march=c + ; Make sure hex constant does not continue into a valid hexadecimal letter/number %version = global [3 x sbyte] c"\001\00" diff --git a/test/CodeGen/CBackend/2003-06-11-LiteralStringProblem.ll b/test/CodeGen/CBackend/2003-06-11-LiteralStringProblem.ll index 80d8aea..bd89ec5 100644 --- a/test/CodeGen/CBackend/2003-06-11-LiteralStringProblem.ll +++ b/test/CodeGen/CBackend/2003-06-11-LiteralStringProblem.ll @@ -1,3 +1,5 @@ +; RUN: llvm-as < %s | llc -march=c + %version = global [3 x sbyte] c"1\00\00" diff --git a/test/CodeGen/CBackend/2003-06-28-InvokeSupport.ll b/test/CodeGen/CBackend/2003-06-28-InvokeSupport.ll index 65ccc5c..cc59035 100644 --- a/test/CodeGen/CBackend/2003-06-28-InvokeSupport.ll +++ b/test/CodeGen/CBackend/2003-06-28-InvokeSupport.ll @@ -1,3 +1,5 @@ +; RUN: llvm-as < %s | llc -march=c + declare int %callee(int, int) diff --git a/test/CodeGen/CBackend/2003-10-12-NANGlobalInits.ll b/test/CodeGen/CBackend/2003-10-12-NANGlobalInits.ll index 184ffb4..2adddda 100644 --- a/test/CodeGen/CBackend/2003-10-12-NANGlobalInits.ll +++ b/test/CodeGen/CBackend/2003-10-12-NANGlobalInits.ll @@ -1,3 +1,5 @@ +; RUN: llvm-as < %s | llc -march=c + ; This is a non-normal FP value: it's a nan. %NAN = global { float } { float 0x7FF8000000000000 } %NANs = global { float } { float 0x7FF4000000000000 } diff --git a/test/CodeGen/CBackend/2003-10-23-UnusedType.ll b/test/CodeGen/CBackend/2003-10-23-UnusedType.ll index 36d8073..bb9f4b7 100644 --- a/test/CodeGen/CBackend/2003-10-23-UnusedType.ll +++ b/test/CodeGen/CBackend/2003-10-23-UnusedType.ll @@ -1,3 +1,5 @@ +; RUN: llvm-as < %s | llc -march=c + %A = type { uint, sbyte*, { uint, uint, uint, uint, uint, uint, uint, uint }*, ushort } diff --git a/test/CodeGen/CBackend/2003-10-23-ZeroArgVarargs.ll b/test/CodeGen/CBackend/2003-10-23-ZeroArgVarargs.ll index 4ba9741..0f010a2 100644 --- a/test/CodeGen/CBackend/2003-10-23-ZeroArgVarargs.ll +++ b/test/CodeGen/CBackend/2003-10-23-ZeroArgVarargs.ll @@ -1,3 +1,5 @@ +; RUN: llvm-as < %s | llc -march=c + declare sbyte* %llvm.va_start() declare void %llvm.va_end(sbyte*) diff --git a/test/CodeGen/CBackend/2003-10-28-CastToPtrToStruct.ll b/test/CodeGen/CBackend/2003-10-28-CastToPtrToStruct.ll index f3a5775..ae0679e 100644 --- a/test/CodeGen/CBackend/2003-10-28-CastToPtrToStruct.ll +++ b/test/CodeGen/CBackend/2003-10-28-CastToPtrToStruct.ll @@ -1,3 +1,5 @@ +; RUN: llvm-as < %s | llc -march=c + ; reduced from DOOM. %union._XEvent = type { int } %.X_event_9 = global %union._XEvent zeroinitializer diff --git a/test/CodeGen/CBackend/2003-11-21-ConstantShiftExpr.ll b/test/CodeGen/CBackend/2003-11-21-ConstantShiftExpr.ll index 5bd088d..32358a4 100644 --- a/test/CodeGen/CBackend/2003-11-21-ConstantShiftExpr.ll +++ b/test/CodeGen/CBackend/2003-11-21-ConstantShiftExpr.ll @@ -1,3 +1,5 @@ +; RUN: llvm-as < %s | llc -march=c + %y = weak global sbyte 0 implementation uint %testcaseshr() { diff --git a/test/CodeGen/CBackend/2004-08-09-va-end-null.ll b/test/CodeGen/CBackend/2004-08-09-va-end-null.ll index 7828de3..f15fa86 100644 --- a/test/CodeGen/CBackend/2004-08-09-va-end-null.ll +++ b/test/CodeGen/CBackend/2004-08-09-va-end-null.ll @@ -1,3 +1,5 @@ +; RUN: llvm-as < %s | llc -march=c + declare void %llvm.va_end(sbyte*) void %test() { diff --git a/test/CodeGen/Generic/call-ret0.ll b/test/CodeGen/Generic/call-ret0.ll index 205b0be..79edc1e 100644 --- a/test/CodeGen/Generic/call-ret0.ll +++ b/test/CodeGen/Generic/call-ret0.ll @@ -1,3 +1,5 @@ +; RUN: llvm-as < %s | llc + int %foo(int %x) { ret int %x } diff --git a/test/CodeGen/Generic/call-ret42.ll b/test/CodeGen/Generic/call-ret42.ll index 3501288..2e8ed38 100644 --- a/test/CodeGen/Generic/call-ret42.ll +++ b/test/CodeGen/Generic/call-ret42.ll @@ -1,3 +1,5 @@ +; RUN: llvm-as < %s | llc + int %foo(int %x) { ret int 42 } diff --git a/test/CodeGen/Generic/call-void.ll b/test/CodeGen/Generic/call-void.ll index b23a8d9..1263b98 100644 --- a/test/CodeGen/Generic/call-void.ll +++ b/test/CodeGen/Generic/call-void.ll @@ -1,3 +1,5 @@ +; RUN: llvm-as < %s | llc + void %foo() { ret void } diff --git a/test/CodeGen/Generic/call2-ret0.ll b/test/CodeGen/Generic/call2-ret0.ll index 6159e40..a0bde8d 100644 --- a/test/CodeGen/Generic/call2-ret0.ll +++ b/test/CodeGen/Generic/call2-ret0.ll @@ -1,3 +1,5 @@ +; RUN: llvm-as < %s | llc + int %bar(int %x) { ret int 0 } diff --git a/test/CodeGen/Generic/cast-fp.ll b/test/CodeGen/Generic/cast-fp.ll index 9205fc9..1b80385 100644 --- a/test/CodeGen/Generic/cast-fp.ll +++ b/test/CodeGen/Generic/cast-fp.ll @@ -1,3 +1,5 @@ +; RUN: llvm-as < %s | llc + %a_fstr = internal constant [8 x sbyte] c"a = %f\0A\00" %a_lstr = internal constant [10 x sbyte] c"a = %lld\0A\00" %a_dstr = internal constant [8 x sbyte] c"a = %d\0A\00" diff --git a/test/CodeGen/Generic/global-ret0.ll b/test/CodeGen/Generic/global-ret0.ll index f013937..993049d 100644 --- a/test/CodeGen/Generic/global-ret0.ll +++ b/test/CodeGen/Generic/global-ret0.ll @@ -1,3 +1,5 @@ +; RUN: llvm-as < %s | llc + %g = global int 0 int %main() { diff --git a/test/CodeGen/Generic/hello.ll b/test/CodeGen/Generic/hello.ll index 3acde34..e68d588 100644 --- a/test/CodeGen/Generic/hello.ll +++ b/test/CodeGen/Generic/hello.ll @@ -1,3 +1,5 @@ +; RUN: llvm-as < %s | llc + %.str_1 = internal constant [7 x sbyte] c"hello\0A\00" declare int %printf(sbyte*, ...) diff --git a/test/CodeGen/Generic/print-add.ll b/test/CodeGen/Generic/print-add.ll index 0e998f4..6e5c3c4 100644 --- a/test/CodeGen/Generic/print-add.ll +++ b/test/CodeGen/Generic/print-add.ll @@ -1,3 +1,5 @@ +; RUN: llvm-as < %s | llc + %.str_1 = internal constant [4 x sbyte] c"%d\0A\00" declare int %printf(sbyte*, ...) diff --git a/test/CodeGen/Generic/print-arith-fp.ll b/test/CodeGen/Generic/print-arith-fp.ll index da3c558..446dbea 100644 --- a/test/CodeGen/Generic/print-arith-fp.ll +++ b/test/CodeGen/Generic/print-arith-fp.ll @@ -1,3 +1,5 @@ +; RUN: llvm-as < %s | llc + %a_str = internal constant [8 x sbyte] c"a = %f\0A\00" %b_str = internal constant [8 x sbyte] c"b = %f\0A\00" ;; binary ops: arith diff --git a/test/CodeGen/Generic/print-arith-int.ll b/test/CodeGen/Generic/print-arith-int.ll index d767190e..b678503 100644 --- a/test/CodeGen/Generic/print-arith-int.ll +++ b/test/CodeGen/Generic/print-arith-int.ll @@ -1,3 +1,5 @@ +; RUN: llvm-as < %s | llc + %a_str = internal constant [8 x sbyte] c"a = %d\0A\00" %b_str = internal constant [8 x sbyte] c"b = %d\0A\00" ;; binary ops: arith diff --git a/test/CodeGen/Generic/print-int.ll b/test/CodeGen/Generic/print-int.ll index ee7d3d1..cd3e2b2 100644 --- a/test/CodeGen/Generic/print-int.ll +++ b/test/CodeGen/Generic/print-int.ll @@ -1,3 +1,5 @@ +; RUN: llvm-as < %s | llc + %.str_1 = internal constant [4 x sbyte] c"%d\0A\00" declare int %printf(sbyte*, ...) diff --git a/test/CodeGen/Generic/print-mul-exp.ll b/test/CodeGen/Generic/print-mul-exp.ll index ea2882f..0a8fd78 100644 --- a/test/CodeGen/Generic/print-mul-exp.ll +++ b/test/CodeGen/Generic/print-mul-exp.ll @@ -1,3 +1,5 @@ +; RUN: llvm-as < %s | llc + %a_str = internal constant [8 x sbyte] c"a = %d\0A\00" %a_mul_str = internal constant [13 x sbyte] c"a * %d = %d\0A\00" %A = global int 2 diff --git a/test/CodeGen/Generic/print-mul.ll b/test/CodeGen/Generic/print-mul.ll index e406545..80d2d51 100644 --- a/test/CodeGen/Generic/print-mul.ll +++ b/test/CodeGen/Generic/print-mul.ll @@ -1,3 +1,5 @@ +; RUN: llvm-as < %s | llc + %a_str = internal constant [8 x sbyte] c"a = %d\0A\00" %b_str = internal constant [8 x sbyte] c"b = %d\0A\00" diff --git a/test/CodeGen/Generic/print-shift.ll b/test/CodeGen/Generic/print-shift.ll index 71bbbd1..8ce3bac 100644 --- a/test/CodeGen/Generic/print-shift.ll +++ b/test/CodeGen/Generic/print-shift.ll @@ -1,3 +1,5 @@ +; RUN: llvm-as < %s | llc + %a_str = internal constant [8 x sbyte] c"a = %d\0A\00" %b_str = internal constant [8 x sbyte] c"b = %d\0A\00" diff --git a/test/CodeGen/Generic/ret0.ll b/test/CodeGen/Generic/ret0.ll index fc70863..439a2f3 100644 --- a/test/CodeGen/Generic/ret0.ll +++ b/test/CodeGen/Generic/ret0.ll @@ -1,3 +1,5 @@ +; RUN: llvm-as < %s | llc + int %main() { ret int 0 } diff --git a/test/CodeGen/Generic/ret42.ll b/test/CodeGen/Generic/ret42.ll index 62890e4..ac14231 100644 --- a/test/CodeGen/Generic/ret42.ll +++ b/test/CodeGen/Generic/ret42.ll @@ -1,3 +1,5 @@ +; RUN: llvm-as < %s | llc + int %main() { ret int 42 } |