summaryrefslogtreecommitdiff
path: root/test/Transforms/InstSimplify/mul.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Transforms/InstSimplify/mul.ll')
-rw-r--r--test/Transforms/InstSimplify/mul.ll11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/Transforms/InstSimplify/mul.ll b/test/Transforms/InstSimplify/mul.ll
new file mode 100644
index 0000000000000..0bf8f699a6860
--- /dev/null
+++ b/test/Transforms/InstSimplify/mul.ll
@@ -0,0 +1,11 @@
+; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
+; RUN: opt < %s -instsimplify -S | FileCheck %s
+
+define <2 x i1> @test1(<2 x i1> %a) {
+; CHECK-LABEL: @test1(
+; CHECK-NEXT: ret <2 x i1> zeroinitializer
+;
+ %b = and <2 x i1> %a, <i1 true, i1 false>
+ %res = mul <2 x i1> %b, <i1 false, i1 true>
+ ret <2 x i1> %res
+}