New testcases
authorChris Lattner <sabre@nondot.org>
Mon, 27 Feb 2006 01:43:02 +0000 (01:43 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 27 Feb 2006 01:43:02 +0000 (01:43 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26393 91177308-0d34-0410-b5e6-96231b3b80d8

test/Transforms/InstCombine/sub.ll
test/Transforms/InstCombine/xor.ll

index 0b029aab959e42895bf5b780f3705b8076f9a9fa..7d728055fe6e20176b0271c70b6613ba913df7e6 100644 (file)
@@ -124,3 +124,16 @@ int %test19(int %X, int %Y) {
        %Q = add int %Z, %Y
        ret int %Q
 }
+
+bool %test20(int %g, int %h) {
+        %tmp.2 = sub int %g, %h
+        %tmp.4 = setne int %tmp.2, %g
+        ret bool %tmp.4
+}
+
+bool %test21(int %g, int %h) {
+        %tmp.2 = sub int %g, %h
+        %tmp.4 = setne int %tmp.2, %g
+        ret bool %tmp.4
+}
+
index 13199de8bd851fe4dd1348c624d95c9843ab9529..9baff65c8b04410c2857e8c24fc01b48fcb96dcd 100644 (file)
@@ -155,3 +155,14 @@ int %test22(bool %X) {
         ret int %Q
 }
 
+bool %test23(int %a, int %b) {
+        %tmp.2 = xor int %b, %a
+        %tmp.4 = seteq int %tmp.2, %a
+        ret bool %tmp.4
+}
+
+bool %test24(int %c, int %d) {
+        %tmp.2 = xor int %d, %c
+        %tmp.4 = setne int %tmp.2, %c
+        ret bool %tmp.4
+}