From 0fb79fa07834578adad15b6688dcd73ca21f4cd1 Mon Sep 17 00:00:00 2001 From: Andrew Lenharth Date: Mon, 3 Apr 2006 03:16:09 +0000 Subject: [PATCH] test some more mul by constant removal git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27366 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CodeGen/Alpha/mul5.ll | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) 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 }