summaryrefslogtreecommitdiff
path: root/test/Transforms/InstCombine/add.ll
diff options
context:
space:
mode:
authorAndrew Lenharth <andrewl@lenharth.org>2005-11-02 18:34:05 +0000
committerAndrew Lenharth <andrewl@lenharth.org>2005-11-02 18:34:05 +0000
commite8148bc29113ca9f9266d35c450a82ee1be84e52 (patch)
treeaee8b057f1dc561a006f9d0c8acd643d2dda512b /test/Transforms/InstCombine/add.ll
parentbad13eb189743ca54999b984613aa1c56fdd08c3 (diff)
downloadllvm-e8148bc29113ca9f9266d35c450a82ee1be84e52.tar.gz
llvm-e8148bc29113ca9f9266d35c450a82ee1be84e52.tar.bz2
llvm-e8148bc29113ca9f9266d35c450a82ee1be84e52.tar.xz
This is missed by InstCombine, patch comming
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24157 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/InstCombine/add.ll')
-rw-r--r--test/Transforms/InstCombine/add.ll7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/add.ll b/test/Transforms/InstCombine/add.ll
index 8a84863c2e..3de3f33310 100644
--- a/test/Transforms/InstCombine/add.ll
+++ b/test/Transforms/InstCombine/add.ll
@@ -206,3 +206,10 @@ uint %test29(uint %X, uint %x) {
%tmp.10 = or uint %tmp.7, %tmp.9 ; <uint> [#uses=1]
ret uint %tmp.10
}
+
+long %test30(long %x) {
+ %tmp.2 = xor long %x, -9223372036854775808
+ ;; Add of sign bit -> xor of sign bit.
+ %tmp.4 = add long %tmp.2, -9223372036854775808
+ ret long %tmp.4
+}