diff options
author | Andrew Lenharth <andrewl@lenharth.org> | 2005-11-02 18:34:05 +0000 |
---|---|---|
committer | Andrew Lenharth <andrewl@lenharth.org> | 2005-11-02 18:34:05 +0000 |
commit | 8426ee14bef88de90bde8efeb399fedd6bc03b0d (patch) | |
tree | 0046e8f54309c2a915786293d2d8e13be82d382d | |
parent | 9b9a839605fd987c90d451892c8d5ff299ef8d94 (diff) | |
download | bcm5719-llvm-8426ee14bef88de90bde8efeb399fedd6bc03b0d.tar.gz bcm5719-llvm-8426ee14bef88de90bde8efeb399fedd6bc03b0d.zip |
This is missed by InstCombine, patch comming
llvm-svn: 24157
-rw-r--r-- | llvm/test/Regression/Transforms/InstCombine/add.ll | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/test/Regression/Transforms/InstCombine/add.ll b/llvm/test/Regression/Transforms/InstCombine/add.ll index 8a84863c2e1..3de3f333102 100644 --- a/llvm/test/Regression/Transforms/InstCombine/add.ll +++ b/llvm/test/Regression/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 +} |