From: Andrew Lenharth Date: Mon, 3 Apr 2006 03:16:09 +0000 (+0000) Subject: test some more mul by constant removal X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=0fb79fa07834578adad15b6688dcd73ca21f4cd1;p=oota-llvm.git test some more mul by constant removal git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27366 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/CodeGen/Alpha/mul5.ll b/test/CodeGen/Alpha/mul5.ll index cb19550dc85..f967c09d42e 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 ; [#uses=1] + %tmp.1 = mul ulong %x, 9 ; [#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 }