aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/Transforms/InstCombine/or.ll6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/or.ll b/test/Transforms/InstCombine/or.ll
index 3358715d1f..5523f87c4e 100644
--- a/test/Transforms/InstCombine/or.ll
+++ b/test/Transforms/InstCombine/or.ll
@@ -69,3 +69,9 @@ int %test12(int %A) { ; A | ~A == -1
%B = or int %A, %NotA
ret int %B
}
+
+uint %test13(uint %A) { ; (A|B)^B == A & (~B)
+ %t1 = or uint %A, 123
+ %r = xor uint %t1, 123
+ ret uint %r
+}