diff options
author | Andrew Lenharth <andrewl@lenharth.org> | 2006-04-02 21:47:07 +0000 |
---|---|---|
committer | Andrew Lenharth <andrewl@lenharth.org> | 2006-04-02 21:47:07 +0000 |
commit | f80d2f61afb4f0efe3766a522ae131ffc511d100 (patch) | |
tree | 72c97282481ceee6000d1d31612c7ea2d6db8654 /test/CodeGen/Alpha | |
parent | 50a0d426e85b4e27766a99279d2e61f622525f94 (diff) | |
download | external_llvm-f80d2f61afb4f0efe3766a522ae131ffc511d100.zip external_llvm-f80d2f61afb4f0efe3766a522ae131ffc511d100.tar.gz external_llvm-f80d2f61afb4f0efe3766a522ae131ffc511d100.tar.bz2 |
Make sure mul by constant 5 is turned into a s4addq
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27365 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/Alpha')
-rw-r--r-- | test/CodeGen/Alpha/mul5.ll | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/CodeGen/Alpha/mul5.ll b/test/CodeGen/Alpha/mul5.ll new file mode 100644 index 0000000..cb19550 --- /dev/null +++ b/test/CodeGen/Alpha/mul5.ll @@ -0,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 +} |