aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/ARM/arguments.ll
diff options
context:
space:
mode:
authorLauro Ramos Venancio <lauro.venancio@gmail.com>2007-02-13 14:07:13 +0000
committerLauro Ramos Venancio <lauro.venancio@gmail.com>2007-02-13 14:07:13 +0000
commit876eaf1135b40869f59fb27c87a7d626459e9181 (patch)
tree8798ba5674b8f98d1bbb5a62d630db7ca52db447 /test/CodeGen/ARM/arguments.ll
parent7aa47b69ca5f4feb6b106a50959e37822bd25b4f (diff)
downloadexternal_llvm-876eaf1135b40869f59fb27c87a7d626459e9181.zip
external_llvm-876eaf1135b40869f59fb27c87a7d626459e9181.tar.gz
external_llvm-876eaf1135b40869f59fb27c87a7d626459e9181.tar.bz2
According to ARM EABI, 8-bytes function arguments must be 8-bytes aligned.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34241 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/ARM/arguments.ll')
-rw-r--r--test/CodeGen/ARM/arguments.ll10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/CodeGen/ARM/arguments.ll b/test/CodeGen/ARM/arguments.ll
new file mode 100644
index 0000000..77cadd6
--- /dev/null
+++ b/test/CodeGen/ARM/arguments.ll
@@ -0,0 +1,10 @@
+; RUN: llvm-as < %s | llc -march=arm &&
+; RUN: llvm-as < %s | llc -mtriple=arm-linux | grep "mov r0, r2" | wc -l | grep 1 &&
+; RUN: llvm-as < %s | llc -mtriple=arm-apple-darwin | grep "mov r0, r1" | wc -l | grep 1
+
+define i32 @f(i32 %a, i64 %b) {
+ %tmp = call i32 @g(i64 %b)
+ ret i32 %tmp
+}
+
+declare i32 @g(i64) \ No newline at end of file