aboutsummaryrefslogtreecommitdiffstats
path: root/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
commit04746eae49f1cc28e787b67256a37bf91481bb90 (patch)
treef17a8896aa64c9555bfbdcad3c8f842e898324ad /test/CodeGen/ARM/arguments-nosplit-i64.ll
parent224c244f56025c10e70e4204daceadfb3cdd2c06 (diff)
downloadexternal_llvm-04746eae49f1cc28e787b67256a37bf91481bb90.zip
external_llvm-04746eae49f1cc28e787b67256a37bf91481bb90.tar.gz
external_llvm-04746eae49f1cc28e787b67256a37bf91481bb90.tar.bz2
Fix pr4058 and pr4059. Do not split i64 or double arguments between r3 and
the stack. Patch by Sandeep Patel. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72106 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/ARM/arguments-nosplit-i64.ll')
-rw-r--r--test/CodeGen/ARM/arguments-nosplit-i64.ll9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/CodeGen/ARM/arguments-nosplit-i64.ll b/test/CodeGen/ARM/arguments-nosplit-i64.ll
new file mode 100644
index 0000000..5464674
--- /dev/null
+++ b/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)