[llvm-commits] CVS: llvm/test/Regression/CodeGen/Alpha/mul5.ll
Andrew Lenharth
alenhar2 at cs.uiuc.edu
Sun Apr 2 14:47:24 PDT 2006
Changes in directory llvm/test/Regression/CodeGen/Alpha:
mul5.ll added (r1.1)
---
Log message:
Make sure mul by constant 5 is turned into a s4addq
---
Diffs of the changes: (+16 -0)
mul5.ll | 16 ++++++++++++++++
1 files changed, 16 insertions(+)
Index: llvm/test/Regression/CodeGen/Alpha/mul5.ll
diff -c /dev/null llvm/test/Regression/CodeGen/Alpha/mul5.ll:1.1
*** /dev/null Sun Apr 2 16:47:17 2006
--- llvm/test/Regression/CodeGen/Alpha/mul5.ll Sun Apr 2 16:47:07 2006
***************
*** 0 ****
--- 1,16 ----
+ ; Make sure this testcase does not use mulq
+ ; RUN: llvm-as < %s | llc -march=alpha | grep -i 'mul' |wc -l |grep 0
+
+ implementation ; Functions:
+
+ ulong %foo(ulong %x) {
+ entry:
+ %tmp.1 = mul ulong %x, 5 ; <ulong> [#uses=1]
+ ret ulong %tmp.1
+ }
+
+ long %bar(long %x) {
+ entry:
+ %tmp.1 = mul long %x, 5 ; <long> [#uses=1]
+ ret long %tmp.1
+ }
More information about the llvm-commits
mailing list