summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/ARM/arguments-nosplit-i64.ll
diff options
context:
space:
mode:
authorBob Wilson <bob.wilson@apple.com>2009-05-19 10:02:36 +0000
committerBob Wilson <bob.wilson@apple.com>2009-05-19 10:02:36 +0000
commite666cc5206366883d31825a0a9bb0fc3dfbdb9fe (patch)
tree3e2ca8974a810e069bfe954df6fb66d184fc110b /llvm/test/CodeGen/ARM/arguments-nosplit-i64.ll
parenta2c462bbe901c59c1aa49afef54ce29017c271fa (diff)
downloadbcm5719-llvm-e666cc5206366883d31825a0a9bb0fc3dfbdb9fe.tar.gz
bcm5719-llvm-e666cc5206366883d31825a0a9bb0fc3dfbdb9fe.zip
Fix pr4058 and pr4059. Do not split i64 or double arguments between r3 and
the stack. Patch by Sandeep Patel. llvm-svn: 72106
Diffstat (limited to 'llvm/test/CodeGen/ARM/arguments-nosplit-i64.ll')
-rw-r--r--llvm/test/CodeGen/ARM/arguments-nosplit-i64.ll9
1 files changed, 9 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/ARM/arguments-nosplit-i64.ll b/llvm/test/CodeGen/ARM/arguments-nosplit-i64.ll
new file mode 100644
index 00000000000..5464674dbca
--- /dev/null
+++ b/llvm/test/CodeGen/ARM/arguments-nosplit-i64.ll
@@ -0,0 +1,9 @@
+; RUN: llvm-as < %s | llc -mtriple=arm-linux-gnueabi | not grep r3
+; PR4058
+
+define i32 @f(i64 %z, i32 %a, i64 %b) {
+ %tmp = call i32 @g(i64 %b)
+ ret i32 %tmp
+}
+
+declare i32 @g(i64)
OpenPOWER on IntegriCloud