aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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
+}
+