From ce0f91ebd627717841e418d92cd00f2eb88fd3bb Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 5 Jan 2007 02:16:36 +0000 Subject: [PATCH] new testcase llvm-svn: 32889 --- llvm/test/Regression/Transforms/InstCombine/add.ll | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/llvm/test/Regression/Transforms/InstCombine/add.ll b/llvm/test/Regression/Transforms/InstCombine/add.ll index 55eba647f8aa..aaf8548c0840 100644 --- a/llvm/test/Regression/Transforms/InstCombine/add.ll +++ b/llvm/test/Regression/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 +} +