diff options
author | Andrew Lenharth <andrewl@lenharth.org> | 2006-04-03 03:16:09 +0000 |
---|---|---|
committer | Andrew Lenharth <andrewl@lenharth.org> | 2006-04-03 03:16:09 +0000 |
commit | 0fb79fa07834578adad15b6688dcd73ca21f4cd1 (patch) | |
tree | 73a36bf7c65ee48e959772a476ae17b2f20403d9 | |
parent | f80d2f61afb4f0efe3766a522ae131ffc511d100 (diff) |
test some more mul by constant removal
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27366 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/CodeGen/Alpha/mul5.ll | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/test/CodeGen/Alpha/mul5.ll b/test/CodeGen/Alpha/mul5.ll index cb19550dc8..f967c09d42 100644 --- a/test/CodeGen/Alpha/mul5.ll +++ b/test/CodeGen/Alpha/mul5.ll @@ -3,9 +3,20 @@ implementation ; Functions: -ulong %foo(ulong %x) { +ulong %foo1(ulong %x) { entry: - %tmp.1 = mul ulong %x, 5 ; <ulong> [#uses=1] + %tmp.1 = mul ulong %x, 9 ; <ulong> [#uses=1] + ret ulong %tmp.1 +} +ulong %foo3(ulong %x) { +entry: + %tmp.1 = mul ulong %x, 259 + ret ulong %tmp.1 +} + +ulong %foo1n(ulong %x) { +entry: + %tmp.1 = mul ulong %x, 511 ret ulong %tmp.1 } |