aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-05-06 01:51:05 +0000
committerChris Lattner <sabre@nondot.org>2005-05-06 01:51:05 +0000
commit564d20cb9b0697bc66bd301ddc36328fa7582d1f (patch)
tree70d232252741dcc46e2ed2ab5523001c7190d9be
parent828eeddb38594ec0756aaa1be992796883c4ac2a (diff)
new testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21710 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/Transforms/InstCombine/set.ll8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/set.ll b/test/Transforms/InstCombine/set.ll
index 6abf6461c1..56b995e905 100644
--- a/test/Transforms/InstCombine/set.ll
+++ b/test/Transforms/InstCombine/set.ll
@@ -113,3 +113,11 @@ uint %test20(uint %A) {
%D = cast bool %C to uint
ret uint %D
}
+
+int %test21(int %a) {
+ %tmp.6 = and int %a, 4
+ %not.tmp.7 = setne int %tmp.6, 0
+ %retval = cast bool %not.tmp.7 to int
+ ret int %retval
+}
+