[llvm-commits] CVS: llvm/test/Regression/ExecutionEngine/2004-12-04-LazyCompileFuncs.ll
Alkis Evlogimenos
alkis at cs.uiuc.edu
Sat Dec 4 17:44:57 PST 2004
Changes in directory llvm/test/Regression/ExecutionEngine:
2004-12-04-LazyCompileFuncs.ll added (r1.1)
---
Log message:
Add testcast for bug475: http://llvm.cs.uiuc.edu/PR475
---
Diffs of the changes: (+36 -0)
Index: llvm/test/Regression/ExecutionEngine/2004-12-04-LazyCompileFuncs.ll
diff -c /dev/null llvm/test/Regression/ExecutionEngine/2004-12-04-LazyCompileFuncs.ll:1.1
*** /dev/null Sat Dec 4 19:44:56 2004
--- llvm/test/Regression/ExecutionEngine/2004-12-04-LazyCompileFuncs.ll Sat Dec 4 19:44:46 2004
***************
*** 0 ****
--- 1,36 ----
+ ; RUN: llvm-as -f %s -o %t.bc
+ ; RUN: lli -debug-only=jit %t.bc 2>&1 | not grep 'G()'
+
+ target endian = little
+ target pointersize = 32
+ deplibs = [ "c", "crtend" ]
+ %.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]
+
+ implementation ; Functions:
+
+ declare int %printf(sbyte*, ...)
+
+ 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
+ }
+
+ 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
+ }
+
+ int %main(int %argc, sbyte** %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
+ }
+
More information about the llvm-commits
mailing list