Reorganize tests because we no longer cannonicalize X != 0 -> cast X to bool
In fact, we plan to eliminate cast to bool entirely.
llvm-svn: 7805
diff --git a/llvm/test/Regression/Transforms/InstCombine/add.ll b/llvm/test/Regression/Transforms/InstCombine/add.ll
index 10040f9..d9788b9 100644
--- a/llvm/test/Regression/Transforms/InstCombine/add.ll
+++ b/llvm/test/Regression/Transforms/InstCombine/add.ll
@@ -60,3 +60,15 @@
%C = add int %B, %B ; === shl int %A, 5
ret int %C
}
+
+bool %test10(ubyte %A, ubyte %b) {
+ %B = add ubyte %A, %b
+ %c = setne ubyte %B, 0 ; === A != -b
+ ret bool %c
+}
+
+bool %test11(ubyte %A) {
+ %B = add ubyte %A, 255
+ %c = setne ubyte %B, 0 ; === A != 1
+ ret bool %c
+}