aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/Transforms/InstCombine/or.ll8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/or.ll b/test/Transforms/InstCombine/or.ll
index 5ac274e330..95f4ed1eb3 100644
--- a/test/Transforms/InstCombine/or.ll
+++ b/test/Transforms/InstCombine/or.ll
@@ -133,3 +133,11 @@ int %test20(int %x) {
%z = or int %y, %x
ret int %z
}
+
+uint %test21(uint %tmp.1) {
+ %tmp.1.mask1 = add uint %tmp.1, 2
+ %tmp.3 = and uint %tmp.1.mask1, 4294967294
+ %tmp.5 = and uint %tmp.1, 1
+ %tmp.6 = or uint %tmp.5, %tmp.3 ;; add tmp.1, 2
+ ret uint %tmp.6
+}