new testcases
llvm-svn: 31585
diff --git a/llvm/test/Regression/Transforms/InstCombine/add.ll b/llvm/test/Regression/Transforms/InstCombine/add.ll
index 81ab29a..382596b 100644
--- a/llvm/test/Regression/Transforms/InstCombine/add.ll
+++ b/llvm/test/Regression/Transforms/InstCombine/add.ll
@@ -227,3 +227,16 @@
%D = sub int %C, 16
ret int %D
}
+
+ubyte %test33(ubyte %A) { ;; OR A, 1
+ %B = and ubyte %A, 254
+ %C = add ubyte %B, 1
+ ret ubyte %C
+}
+
+ubyte %test34(ubyte %A) {
+ %B = add ubyte %A, 64 ;; dead
+ %C = and ubyte %B, 12
+ ret ubyte %C
+}
+