diff options
author | Chris Lattner <sabre@nondot.org> | 2004-08-09 21:03:35 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-08-09 21:03:35 +0000 |
commit | efd0149de9be6bf52943c14374ebf9d2886cc94b (patch) | |
tree | f8475c80f866579d273ee1cf0b9ec742c96eb305 /test/Transforms | |
parent | 171b59d2d6233c6e239fff58b24214c001111c8c (diff) | |
download | external_llvm-efd0149de9be6bf52943c14374ebf9d2886cc94b.zip external_llvm-efd0149de9be6bf52943c14374ebf9d2886cc94b.tar.gz external_llvm-efd0149de9be6bf52943c14374ebf9d2886cc94b.tar.bz2 |
New testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15592 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms')
-rw-r--r-- | test/Transforms/InstCombine/2004-08-09-RemInfLoop.llx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/2004-08-09-RemInfLoop.llx b/test/Transforms/InstCombine/2004-08-09-RemInfLoop.llx new file mode 100644 index 0000000..1ed6054 --- /dev/null +++ b/test/Transforms/InstCombine/2004-08-09-RemInfLoop.llx @@ -0,0 +1,8 @@ +; RUN: llvm-as < %s | opt -instcombine + +; This testcase should not send the instcombiner into an infinite loop! + +int %test(int %X) { + %Y = rem int %X, 0 + ret int %Y +} |