diff options
author | Chris Lattner <sabre@nondot.org> | 2002-05-06 16:19:16 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-05-06 16:19:16 +0000 |
commit | c1bfd13c0a080c080bed8d9164925e0706bba239 (patch) | |
tree | c798fdb7bf56955a6a6634cc0e8e82d47b6e794d /test/Transforms | |
parent | 45d8b917bed115f904a33ca24cd0774d86f34fd8 (diff) | |
download | external_llvm-c1bfd13c0a080c080bed8d9164925e0706bba239.zip external_llvm-c1bfd13c0a080c080bed8d9164925e0706bba239.tar.gz external_llvm-c1bfd13c0a080c080bed8d9164925e0706bba239.tar.bz2 |
Add testcase for -(-A)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2488 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms')
-rw-r--r-- | test/Transforms/InstCombine/sub.ll | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/Transforms/InstCombine/sub.ll b/test/Transforms/InstCombine/sub.ll index 15903b6..fbec5e8 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 +} |