diff options
author | Chris Lattner <sabre@nondot.org> | 2004-12-08 22:18:35 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-12-08 22:18:35 +0000 |
commit | d5e4e1756feb1b99155ac96db5a320dd58c1fa77 (patch) | |
tree | 6287dcc8c660293344fd2c97a6f6ca4a3aad4079 /test | |
parent | 833408d484acecc2c6ab71baef76f846d69f5388 (diff) | |
download | external_llvm-d5e4e1756feb1b99155ac96db5a320dd58c1fa77.zip external_llvm-d5e4e1756feb1b99155ac96db5a320dd58c1fa77.tar.gz external_llvm-d5e4e1756feb1b99155ac96db5a320dd58c1fa77.tar.bz2 |
This testcase causes the instruction combiner to go spiraling into
an infinite loop.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18669 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/Transforms/InstCombine/2004-12-08-RemInfiniteLoop.ll | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/2004-12-08-RemInfiniteLoop.ll b/test/Transforms/InstCombine/2004-12-08-RemInfiniteLoop.ll new file mode 100644 index 0000000..7f83fa8 --- /dev/null +++ b/test/Transforms/InstCombine/2004-12-08-RemInfiniteLoop.ll @@ -0,0 +1,6 @@ +; RUN: llvm-as < %s | opt -instcombine + +int %test(int %X) { + %Y = rem int %X, undef + ret int %Y +} |