summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-12-08 22:18:35 +0000
committerChris Lattner <sabre@nondot.org>2004-12-08 22:18:35 +0000
commitd5e4e1756feb1b99155ac96db5a320dd58c1fa77 (patch)
tree6287dcc8c660293344fd2c97a6f6ca4a3aad4079
parent833408d484acecc2c6ab71baef76f846d69f5388 (diff)
downloadllvm-d5e4e1756feb1b99155ac96db5a320dd58c1fa77.tar.gz
llvm-d5e4e1756feb1b99155ac96db5a320dd58c1fa77.tar.bz2
llvm-d5e4e1756feb1b99155ac96db5a320dd58c1fa77.tar.xz
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
-rw-r--r--test/Transforms/InstCombine/2004-12-08-RemInfiniteLoop.ll6
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 0000000000..7f83fa837d
--- /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
+}