From 2c9fdbe6cb818e88ef4cd2428e4066708bd2671f Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 6 Jul 2004 07:00:11 +0000 Subject: [PATCH] New testcase llvm-svn: 14636 --- llvm/test/Regression/Transforms/InstCombine/sub.ll | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/llvm/test/Regression/Transforms/InstCombine/sub.ll b/llvm/test/Regression/Transforms/InstCombine/sub.ll index 801991212ae3..1a427eaae73c 100644 --- a/llvm/test/Regression/Transforms/InstCombine/sub.ll +++ b/llvm/test/Regression/Transforms/InstCombine/sub.ll @@ -94,3 +94,8 @@ int %test14(uint %A) { ret int %D } +int %test15(int %A, int %B) { + %C = sub int 0, %A + %D = rem int %B, %C ;; X % -Y === X % Y + ret int %D +}