summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-05-06 01:52:52 +0000
committerChris Lattner <sabre@nondot.org>2005-05-06 01:52:52 +0000
commit8169e162684d26c0cde7f16897287a30100f3cc8 (patch)
tree7eaa0be86e2e1aef5f130d86d05fd19511fb9f54
parent838dae09910bdde1b8395388ce24ffbe7bb0a3e0 (diff)
downloadbcm5719-llvm-8169e162684d26c0cde7f16897287a30100f3cc8.tar.gz
bcm5719-llvm-8169e162684d26c0cde7f16897287a30100f3cc8.zip
new testcase for unneeded and
llvm-svn: 21711
-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