New testcase
authorChris Lattner <sabre@nondot.org>
Sat, 10 Apr 2004 22:01:27 +0000 (22:01 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 10 Apr 2004 22:01:27 +0000 (22:01 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12818 91177308-0d34-0410-b5e6-96231b3b80d8

test/Transforms/InstCombine/add.ll

index e7548fb81b53eee1b2134d56128eae0547c6b18f..8c99eac39706cf4f544f559de304d1bb8ffdbeba 100644 (file)
@@ -123,4 +123,10 @@ int %test19(bool %C) {
         ret int %V
 }
 
+int %test20(int %x) {
+        %tmp.2 = xor int %x, -2147483648
+        ;; Add of sign bit -> xor of sign bit.
+        %tmp.4 = add int %tmp.2, -2147483648
+        ret int %tmp.4
+}