summaryrefslogtreecommitdiff
path: root/test/Transforms/InstCombine/sub.ll
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-10-06 15:07:56 +0000
committerChris Lattner <sabre@nondot.org>2004-10-06 15:07:56 +0000
commit24c0532f50bd08b71fb81b55407f739e3d070fad (patch)
tree00a611fdb4bb9b7890e33ef2c643bc501eab0646 /test/Transforms/InstCombine/sub.ll
parent09c750f73d885c8fb931ad375c69a975536a54c5 (diff)
downloadllvm-24c0532f50bd08b71fb81b55407f739e3d070fad.tar.gz
llvm-24c0532f50bd08b71fb81b55407f739e3d070fad.tar.bz2
llvm-24c0532f50bd08b71fb81b55407f739e3d070fad.tar.xz
New testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16768 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/InstCombine/sub.ll')
-rw-r--r--test/Transforms/InstCombine/sub.ll6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/sub.ll b/test/Transforms/InstCombine/sub.ll
index 1a427eaae7..21f61a08a7 100644
--- a/test/Transforms/InstCombine/sub.ll
+++ b/test/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
+}