aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-01-05 02:16:36 +0000
committerChris Lattner <sabre@nondot.org>2007-01-05 02:16:36 +0000
commit0a2c88dafc70ec58dba50e419d4f1e15bcc1f097 (patch)
treef1fbdd67edd27d788c896c8cb035eca8454398e8 /test
parent0d630d220414b02fed6873555bb46795a682174b (diff)
downloadexternal_llvm-0a2c88dafc70ec58dba50e419d4f1e15bcc1f097.zip
external_llvm-0a2c88dafc70ec58dba50e419d4f1e15bcc1f097.tar.gz
external_llvm-0a2c88dafc70ec58dba50e419d4f1e15bcc1f097.tar.bz2
new testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32889 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/Transforms/InstCombine/add.ll6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/add.ll b/test/Transforms/InstCombine/add.ll
index 55eba64..aaf8548 100644
--- a/test/Transforms/InstCombine/add.ll
+++ b/test/Transforms/InstCombine/add.ll
@@ -240,3 +240,9 @@ ubyte %test34(ubyte %A) {
ret ubyte %C
}
+define i32 %test34(i32 %a) { ;; -> -1
+ %tmpnot = xor i32 %a, -1
+ %tmp2 = add i32 %tmpnot, %a
+ ret i32 %tmp2
+}
+