summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/InstCombine/apint-cast-cast-to-and.ll
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/Transforms/InstCombine/apint-cast-cast-to-and.ll')
-rw-r--r--llvm/test/Transforms/InstCombine/apint-cast-cast-to-and.ll8
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/test/Transforms/InstCombine/apint-cast-cast-to-and.ll b/llvm/test/Transforms/InstCombine/apint-cast-cast-to-and.ll
new file mode 100644
index 00000000000..29a88694d5c
--- /dev/null
+++ b/llvm/test/Transforms/InstCombine/apint-cast-cast-to-and.ll
@@ -0,0 +1,8 @@
+; RUN: llvm-as < %s | opt -instcombine | llvm-dis | not grep i41
+
+define i61 @test1(i61 %X) {
+ %Y = trunc i61 %X to i41 ;; Turn i61o an AND
+ %Z = zext i41 %Y to i61
+ ret i61 %Z
+}
+
OpenPOWER on IntegriCloud