From: Chris Lattner Date: Mon, 6 May 2002 16:19:16 +0000 (+0000) Subject: Add testcase for -(-A) X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=c1bfd13c0a080c080bed8d9164925e0706bba239;p=oota-llvm.git Add testcase for -(-A) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2488 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Transforms/InstCombine/sub.ll b/test/Transforms/InstCombine/sub.ll index 15903b678cb..fbec5e8a388 100644 --- a/test/Transforms/InstCombine/sub.ll +++ b/test/Transforms/InstCombine/sub.ll @@ -18,4 +18,8 @@ int "test2"(int %A) { ret int %B } - +int "test3"(int %A) { + %B = sub int 0, %A ; B = -A + %C = sub int 0, %B ; C = -B = A + ret int %C +}