[llvm-commits] CVS: llvm/test/Regression/CodeGen/ARM/mul.ll
Rafael Espindola
rafael.espindola at gmail.com
Tue Sep 19 08:49:43 PDT 2006
Changes in directory llvm/test/Regression/CodeGen/ARM:
mul.ll added (r1.1)
---
Log message:
Implement a MachineFunctionPass to fix the mul instruction
---
Diffs of the changes: (+15 -0)
mul.ll | 15 +++++++++++++++
1 files changed, 15 insertions(+)
Index: llvm/test/Regression/CodeGen/ARM/mul.ll
diff -c /dev/null llvm/test/Regression/CodeGen/ARM/mul.ll:1.1
*** /dev/null Tue Sep 19 10:49:35 2006
--- llvm/test/Regression/CodeGen/ARM/mul.ll Tue Sep 19 10:49:25 2006
***************
*** 0 ****
--- 1,15 ----
+ ; RUN: llvm-as < %s | llc -march=arm &&
+ ; RUN: llvm-as < %s | llc -march=arm | grep "mul r0, r12, r0" | wc -l | grep 1 &&
+ ; RUN: llvm-as < %s | llc -march=arm | grep "mul r0, r1, r0" | wc -l | grep 1
+
+ int %mul1(int %u) {
+ entry:
+ %tmp = mul int %u, %u;
+ ret int %tmp
+ }
+
+ int %mul2(int %u, int %v) {
+ entry:
+ %tmp = mul int %u, %v;
+ ret int %tmp
+ }
More information about the llvm-commits
mailing list