summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/InstCombine/apint-mul1.ll
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/Transforms/InstCombine/apint-mul1.ll')
-rw-r--r--llvm/test/Transforms/InstCombine/apint-mul1.ll12
1 files changed, 12 insertions, 0 deletions
diff --git a/llvm/test/Transforms/InstCombine/apint-mul1.ll b/llvm/test/Transforms/InstCombine/apint-mul1.ll
new file mode 100644
index 00000000000..58f3bc9f3f0
--- /dev/null
+++ b/llvm/test/Transforms/InstCombine/apint-mul1.ll
@@ -0,0 +1,12 @@
+; This test makes sure that mul instructions are properly eliminated.
+; This test is for Integer BitWidth < 64 && BitWidth % 2 != 0.
+;
+
+; RUN: llvm-as < %s | opt -instcombine | llvm-dis | not grep mul
+
+implementation
+
+define i17 @test1(i17 %X) {
+ %Y = mul i17 %X, 1024
+ ret i17 %Y
+}
OpenPOWER on IntegriCloud