diff options
author | Bob Wilson <bob.wilson@apple.com> | 2009-05-19 10:02:36 +0000 |
---|---|---|
committer | Bob Wilson <bob.wilson@apple.com> | 2009-05-19 10:02:36 +0000 |
commit | e666cc5206366883d31825a0a9bb0fc3dfbdb9fe (patch) | |
tree | 3e2ca8974a810e069bfe954df6fb66d184fc110b /llvm/test/CodeGen/ARM | |
parent | a2c462bbe901c59c1aa49afef54ce29017c271fa (diff) | |
download | bcm5719-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')
-rw-r--r-- | llvm/test/CodeGen/ARM/arguments-nosplit-double.ll | 9 | ||||
-rw-r--r-- | llvm/test/CodeGen/ARM/arguments-nosplit-i64.ll | 9 |
2 files changed, 18 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/ARM/arguments-nosplit-double.ll b/llvm/test/CodeGen/ARM/arguments-nosplit-double.ll new file mode 100644 index 00000000000..57ff95c0cb6 --- /dev/null +++ b/llvm/test/CodeGen/ARM/arguments-nosplit-double.ll @@ -0,0 +1,9 @@ +; RUN: llvm-as < %s | llc -mtriple=arm-linux-gnueabi | not grep r3 +; PR4059 + +define i32 @f(i64 %z, i32 %a, double %b) { + %tmp = call i32 @g(double %b) + ret i32 %tmp +} + +declare i32 @g(double) 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) |