aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/Transforms/InstCombine/add.ll6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/add.ll b/test/Transforms/InstCombine/add.ll
index 55eba647f8..aaf8548c08 100644
--- a/test/Transforms/InstCombine/add.ll
+++ b/test/Transforms/InstCombine/add.ll
@@ -240,3 +240,9 @@ ubyte %test34(ubyte %A) {
ret ubyte %C
}
+define i32 %test34(i32 %a) { ;; -> -1
+ %tmpnot = xor i32 %a, -1
+ %tmp2 = add i32 %tmpnot, %a
+ ret i32 %tmp2
+}
+