From 0a2c88dafc70ec58dba50e419d4f1e15bcc1f097 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 5 Jan 2007 02:16:36 +0000 Subject: [PATCH] new testcase git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32889 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Transforms/InstCombine/add.ll | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/Transforms/InstCombine/add.ll b/test/Transforms/InstCombine/add.ll index 55eba647f8a..aaf8548c084 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 +} + -- 2.34.1