summaryrefslogtreecommitdiff
path: root/test/CodeGen/PowerPC/hello.ll
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2007-05-09 19:20:37 +0000
committerEvan Cheng <evan.cheng@apple.com>2007-05-09 19:20:37 +0000
commit34ab6d68f57d8e12ced8a82af7377006a5aab281 (patch)
treed852b419584b7b8c2bde4bb8fa76348f86839556 /test/CodeGen/PowerPC/hello.ll
parent9fbc5b247c0169f43665f73489de29f39b48dabd (diff)
downloadllvm-34ab6d68f57d8e12ced8a82af7377006a5aab281.tar.gz
llvm-34ab6d68f57d8e12ced8a82af7377006a5aab281.tar.bz2
llvm-34ab6d68f57d8e12ced8a82af7377006a5aab281.tar.xz
PR1399 test case.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36957 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/PowerPC/hello.ll')
-rw-r--r--test/CodeGen/PowerPC/hello.ll12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/CodeGen/PowerPC/hello.ll b/test/CodeGen/PowerPC/hello.ll
new file mode 100644
index 0000000000..1d7275f238
--- /dev/null
+++ b/test/CodeGen/PowerPC/hello.ll
@@ -0,0 +1,12 @@
+; RUN: llvm-as < %s | llc -march=ppc32
+; RUN: llvm-as < %s | llc -march=ppc64
+; PR1399
+
+@.str = internal constant [13 x i8] c"Hello World!\00"
+
+define i32 @main() {
+ %tmp2 = tail call i32 @puts( i8* getelementptr ([13 x i8]* @.str, i32 0, i64 0) )
+ ret i32 0
+}
+
+declare i32 @puts(i8*)