diff options
author | Jim Laskey <jlaskey@mac.com> | 2007-02-23 22:12:08 +0000 |
---|---|---|
committer | Jim Laskey <jlaskey@mac.com> | 2007-02-23 22:12:08 +0000 |
commit | 4938bb72682eb23e3445dabc2e2f8fc71cd9a5a2 (patch) | |
tree | 0e53cc65bbfd8b3241e739c0b3b55fe54dfe41b8 /llvm/test/CodeGen/PowerPC/2007-02-23-lr-saved-twice.ll | |
parent | 0eb70ebbe5c6563eabfda467836cc63b5bec1636 (diff) | |
download | bcm5719-llvm-4938bb72682eb23e3445dabc2e2f8fc71cd9a5a2.tar.gz bcm5719-llvm-4938bb72682eb23e3445dabc2e2f8fc71cd9a5a2.zip |
New test - practically wrote itself.
llvm-svn: 34538
Diffstat (limited to 'llvm/test/CodeGen/PowerPC/2007-02-23-lr-saved-twice.ll')
-rw-r--r-- | llvm/test/CodeGen/PowerPC/2007-02-23-lr-saved-twice.ll | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/PowerPC/2007-02-23-lr-saved-twice.ll b/llvm/test/CodeGen/PowerPC/2007-02-23-lr-saved-twice.ll new file mode 100644 index 00000000000..2e67f8f0d25 --- /dev/null +++ b/llvm/test/CodeGen/PowerPC/2007-02-23-lr-saved-twice.ll @@ -0,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*, ...) |