summaryrefslogtreecommitdiffstats
path: root/test/ExecutionEngine
diff options
context:
space:
mode:
authorTanya Lattner <tonic@nondot.org>2007-11-28 04:57:00 +0000
committerTanya Lattner <tonic@nondot.org>2007-11-28 04:57:00 +0000
commit727842e9d76680a49616083fed0e812ae209aff8 (patch)
tree022ce83bac251c30f6439d30d8e2c2098e689943 /test/ExecutionEngine
parentcada245d06959831b90f8c29f92e77beda4b71cb (diff)
downloadexternal_llvm-727842e9d76680a49616083fed0e812ae209aff8.zip
external_llvm-727842e9d76680a49616083fed0e812ae209aff8.tar.gz
external_llvm-727842e9d76680a49616083fed0e812ae209aff8.tar.bz2
Fix bug in regression tests that ignored stderr output in RUN lines. Updated tests and fixed broken run lines.
XFAILed 3 arm regressions (will file bugs) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44389 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/ExecutionEngine')
-rw-r--r--test/ExecutionEngine/2004-12-04-LazyCompileFuncs.ll42
1 files changed, 19 insertions, 23 deletions
diff --git a/test/ExecutionEngine/2004-12-04-LazyCompileFuncs.ll b/test/ExecutionEngine/2004-12-04-LazyCompileFuncs.ll
index e266be9..4f20157 100644
--- a/test/ExecutionEngine/2004-12-04-LazyCompileFuncs.ll
+++ b/test/ExecutionEngine/2004-12-04-LazyCompileFuncs.ll
@@ -1,33 +1,29 @@
-; RUN: llvm-upgrade %s | llvm-as -f -o %t.bc
-; RUN: lli -debug-only=jit %t.bc |& not grep {Finished CodeGen of .*Function: F}
+; RUN: llvm-as < %s -f -o %t.bc
+; RUN: not lli -debug-only=jit %t.bc |& not grep {Finished CodeGen of .*Function: F}
+@.str_1 = internal constant [7 x i8] c"IN F!\0A\00" ; <[7 x i8]*> [#uses=1]
+@.str_2 = internal constant [7 x i8] c"IN G!\0A\00" ; <[7 x i8]*> [#uses=1]
+@Ptrs = internal constant [2 x void (...)*] [ void (...)* bitcast (void ()* @F to void (...)*), void (...)* bitcast (void ()* @G to void (...)*) ] ; <[2 x void (...)*]*> [#uses=1]
-%.str_1 = internal constant [7 x sbyte] c"IN F!\0A\00" ; <[7 x sbyte]*> [#uses=1]
-%.str_2 = internal constant [7 x sbyte] c"IN G!\0A\00" ; <[7 x sbyte]*> [#uses=1]
-%Ptrs = internal constant [2 x void (...)*] [ void (...)* cast (void ()* %F to void (...)*), void (...)* cast (void ()* %G to void (...)*) ] ; <[2 x void (...)*]*> [#uses=1]
+declare i32 @printf(i8*, ...)
-implementation ; Functions:
-
-declare int %printf(sbyte*, ...)
-
-internal void %F() {
+define internal void @F() {
entry:
- %tmp.0 = call int (sbyte*, ...)* %printf( sbyte* getelementptr ([7 x sbyte]* %.str_1, int 0, int 0) ) ; <int> [#uses=0]
- ret void
+ %tmp.0 = call i32 (i8*, ...)* @printf( i8* getelementptr ([7 x i8]* @.str_1, i32 0, i32 0) ) ; <i32> [#uses=0]
+ ret void
}
-internal void %G() {
+define internal void @G() {
entry:
- %tmp.0 = call int (sbyte*, ...)* %printf( sbyte* getelementptr ([7 x sbyte]* %.str_2, int 0, int 0) ) ; <int> [#uses=0]
- ret void
+ %tmp.0 = call i32 (i8*, ...)* @printf( i8* getelementptr ([7 x i8]* @.str_2, i32 0, i32 0) ) ; <i32> [#uses=0]
+ ret void
}
-int %main(int %argc, sbyte** %argv) {
+define i32 @main(i32 %argc, i8** %argv) {
entry:
- %tmp.3 = and int %argc, 1 ; <int> [#uses=1]
- %tmp.4 = getelementptr [2 x void (...)*]* %Ptrs, int 0, int %tmp.3 ; <void (...)**> [#uses=1]
- %tmp.5 = load void (...)** %tmp.4 ; <void (...)*> [#uses=1]
- %tmp.5_c = cast void (...)* %tmp.5 to void ()* ; <void ()*> [#uses=1]
- call void %tmp.5_c( )
- ret int undef
+ %tmp.3 = and i32 %argc, 1 ; <i32> [#uses=1]
+ %tmp.4 = getelementptr [2 x void (...)*]* @Ptrs, i32 0, i32 %tmp.3 ; <void (...)**> [#uses=1]
+ %tmp.5 = load void (...)** %tmp.4 ; <void (...)*> [#uses=1]
+ %tmp.5_c = bitcast void (...)* %tmp.5 to void ()* ; <void ()*> [#uses=1]
+ call void %tmp.5_c( )
+ ret i32 undef
}
-