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 | 04a8429572e93e6af0aaf2d8ab69132cf1156f2c (patch) | |
| tree | c0030c205087cc1b082d583fb806fe0dd82d936a | |
| parent | 015eaf5f33898b810848b6af4b496cb4ff578d1c (diff) | |
| download | bcm5719-llvm-04a8429572e93e6af0aaf2d8ab69132cf1156f2c.tar.gz bcm5719-llvm-04a8429572e93e6af0aaf2d8ab69132cf1156f2c.zip | |
Make sure mul by constant 5 is turned into a s4addq
llvm-svn: 27365
| -rw-r--r-- | llvm/test/Regression/CodeGen/Alpha/mul5.ll | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/llvm/test/Regression/CodeGen/Alpha/mul5.ll b/llvm/test/Regression/CodeGen/Alpha/mul5.ll new file mode 100644 index 00000000000..cb19550dc85 --- /dev/null +++ b/llvm/test/Regression/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 +} |

