aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/Transforms/InstCombine/and.ll6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/and.ll b/test/Transforms/InstCombine/and.ll
index dce91d7038..ed6d26b9f7 100644
--- a/test/Transforms/InstCombine/and.ll
+++ b/test/Transforms/InstCombine/and.ll
@@ -220,3 +220,9 @@ uint %test33(uint %b) { ;; Code corresponding to one-bit bitfield ^1.
ret uint %tmp.13
}
+int %test34(int %A, int %B) {
+ %tmp.2 = or int %B, %A
+ %tmp.4 = and int %tmp.2, %B
+ ret int %tmp.4
+}
+