From 52783ab1d856093782c991c53a45d5b100b25730 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 6 Oct 2004 15:07:56 +0000 Subject: [PATCH] New testcase llvm-svn: 16768 --- llvm/test/Regression/Transforms/InstCombine/sub.ll | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/llvm/test/Regression/Transforms/InstCombine/sub.ll b/llvm/test/Regression/Transforms/InstCombine/sub.ll index 1a427eaae73c..21f61a08a714 100644 --- a/llvm/test/Regression/Transforms/InstCombine/sub.ll +++ b/llvm/test/Regression/Transforms/InstCombine/sub.ll @@ -99,3 +99,9 @@ int %test15(int %A, int %B) { %D = rem int %B, %C ;; X % -Y === X % Y ret int %D } + +int %test16(int %A) { + %X = div int %A, 1123 + %Y = sub int 0, %X + ret int %Y +}