[llvm-commits] CVS: llvm/test/CodeGen/PowerPC/2007-02-23-lr-saved-twice.ll
Jim Laskey
jlaskey at apple.com
Fri Feb 23 14:12:29 PST 2007
Changes in directory llvm/test/CodeGen/PowerPC:
2007-02-23-lr-saved-twice.ll added (r1.1)
---
Log message:
New test - practically wrote itself.
---
Diffs of the changes: (+15 -0)
2007-02-23-lr-saved-twice.ll | 15 +++++++++++++++
1 files changed, 15 insertions(+)
Index: llvm/test/CodeGen/PowerPC/2007-02-23-lr-saved-twice.ll
diff -c /dev/null llvm/test/CodeGen/PowerPC/2007-02-23-lr-saved-twice.ll:1.1
*** /dev/null Fri Feb 23 16:12:18 2007
--- llvm/test/CodeGen/PowerPC/2007-02-23-lr-saved-twice.ll Fri Feb 23 16:12:08 2007
***************
*** 0 ****
--- 1,15 ----
+ ; RUN: llvm-as < %s | llc | grep mflr | wc -l | grep 1
+
+ target datalayout = "e-p:32:32"
+ target triple = "powerpc-apple-darwin8"
+ @str = internal constant [18 x i8] c"hello world!, %d\0A\00" ; <[18 x i8]*> [#uses=1]
+
+ implementation ; Functions:
+
+ define i32 @main() {
+ entry:
+ %tmp = tail call i32 (i8*, ...)* @printf( i8* getelementptr ([18 x i8]* @str, i32 0, i32 0) ) ; <i32> [#uses=0]
+ ret i32 0
+ }
+
+ declare i32 @printf(i8*, ...)
More information about the llvm-commits
mailing list