summaryrefslogtreecommitdiff
path: root/test/Transforms/InstCombine/xor.ll
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-04-02 05:35:08 +0000
committerChris Lattner <sabre@nondot.org>2007-04-02 05:35:08 +0000
commit7a32bc9b9b89f432d521c243cfb79d29f2168d24 (patch)
tree21af407ac2563d984a2382af4fd940acee3b2569 /test/Transforms/InstCombine/xor.ll
parent028856dc39670408d6310a077f7d186c9e877184 (diff)
downloadllvm-7a32bc9b9b89f432d521c243cfb79d29f2168d24.tar.gz
llvm-7a32bc9b9b89f432d521c243cfb79d29f2168d24.tar.bz2
llvm-7a32bc9b9b89f432d521c243cfb79d29f2168d24.tar.xz
creative way to add one.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35583 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/InstCombine/xor.ll')
-rw-r--r--test/Transforms/InstCombine/xor.ll6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/xor.ll b/test/Transforms/InstCombine/xor.ll
index b6c923d5b4..4d128c666d 100644
--- a/test/Transforms/InstCombine/xor.ll
+++ b/test/Transforms/InstCombine/xor.ll
@@ -190,3 +190,9 @@ int %test27(int %b, int %c, int %d) {
ret int %tmp6
}
+int %test28(int %indvar) {
+ %tmp7 = add int %indvar, -2147483647
+ %tmp214 = xor int %tmp7, -2147483648
+ ret int %tmp214
+}
+