[llvm-commits] CVS: llvm/test/CodeGen/ARM/arguments.ll
Lauro Ramos Venancio
lauro.venancio at gmail.com
Tue Feb 13 06:07:32 PST 2007
Changes in directory llvm/test/CodeGen/ARM:
arguments.ll added (r1.1)
---
Log message:
According to ARM EABI, 8-bytes function arguments must be 8-bytes aligned.
---
Diffs of the changes: (+10 -0)
arguments.ll | 10 ++++++++++
1 files changed, 10 insertions(+)
Index: llvm/test/CodeGen/ARM/arguments.ll
diff -c /dev/null llvm/test/CodeGen/ARM/arguments.ll:1.1
*** /dev/null Tue Feb 13 08:07:23 2007
--- llvm/test/CodeGen/ARM/arguments.ll Tue Feb 13 08:07:13 2007
***************
*** 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
More information about the llvm-commits
mailing list