From c1bfd13c0a080c080bed8d9164925e0706bba239 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 6 May 2002 16:19:16 +0000 Subject: [PATCH] Add testcase for -(-A) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2488 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Transforms/InstCombine/sub.ll | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 +} -- 2.34.1