aboutsummaryrefslogtreecommitdiff
path: root/test/Transforms/InstCombine/apint-cast-cast-to-and.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Transforms/InstCombine/apint-cast-cast-to-and.ll')
-rw-r--r--test/Transforms/InstCombine/apint-cast-cast-to-and.ll8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/apint-cast-cast-to-and.ll b/test/Transforms/InstCombine/apint-cast-cast-to-and.ll
new file mode 100644
index 000000000000..29a88694d5c5
--- /dev/null
+++ b/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
+}
+