summaryrefslogtreecommitdiffstats
path: root/llvm/test/Regression/Transforms/InstCombine/and.ll
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/Regression/Transforms/InstCombine/and.ll')
-rw-r--r--llvm/test/Regression/Transforms/InstCombine/and.ll5
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/test/Regression/Transforms/InstCombine/and.ll b/llvm/test/Regression/Transforms/InstCombine/and.ll
index b217c7e39c1..e8558f7d907 100644
--- a/llvm/test/Regression/Transforms/InstCombine/and.ll
+++ b/llvm/test/Regression/Transforms/InstCombine/and.ll
@@ -192,3 +192,8 @@ int %test29(ubyte %X) {
ret int %Z
}
+int %test30(bool %X) {
+ %Y = cast bool %X to int
+ %Z = and int %Y, 1
+ ret int %Z
+}
OpenPOWER on IntegriCloud