From fa78358a05285e597358e40bb01e489636ddf225 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 6 May 2002 16:44:53 +0000 Subject: More tests git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2489 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Transforms/InstCombine/add.ll | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'test/Transforms/InstCombine/add.ll') diff --git a/test/Transforms/InstCombine/add.ll b/test/Transforms/InstCombine/add.ll index a8793a78bb..f7461d2129 100644 --- a/test/Transforms/InstCombine/add.ll +++ b/test/Transforms/InstCombine/add.ll @@ -30,3 +30,15 @@ begin ret int %C end +int "test4"(int %A, int %B) { + %C = sub int 0, %A + %D = add int %B, %C ; D = B + -A = B - A + ret int %D +} + +int "test5"(int %A, int %B) { + %C = sub int 0, %A + %D = add int %C, %B ; D = -A + B = B - A + ret int %D +} + -- cgit v1.2.3