New testcases
llvm-svn: 8603
diff --git a/llvm/test/Regression/Transforms/InstCombine/add.ll b/llvm/test/Regression/Transforms/InstCombine/add.ll
index afcef78..7dcb2ae 100644
--- a/llvm/test/Regression/Transforms/InstCombine/add.ll
+++ b/llvm/test/Regression/Transforms/InstCombine/add.ll
@@ -93,3 +93,15 @@
ret uint %tmp.8
}
+ubyte %test15(ubyte %A) {
+ %B = add ubyte %A, 192 ; Does not effect result
+ %C = and ubyte %B, 16 ; Only one bit set
+ ret ubyte %C
+}
+
+ubyte %test16(ubyte %A) {
+ %B = add ubyte %A, 16 ; Turn this into a XOR
+ %C = and ubyte %B, 16 ; Only one bit set
+ ret ubyte %C
+}
+