This testcase causes the instruction combiner to go spiraling into
authorChris Lattner <sabre@nondot.org>
Wed, 8 Dec 2004 22:18:35 +0000 (22:18 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 8 Dec 2004 22:18:35 +0000 (22:18 +0000)
an infinite loop.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18669 91177308-0d34-0410-b5e6-96231b3b80d8

test/Transforms/InstCombine/2004-12-08-RemInfiniteLoop.ll [new file with mode: 0644]

diff --git a/test/Transforms/InstCombine/2004-12-08-RemInfiniteLoop.ll b/test/Transforms/InstCombine/2004-12-08-RemInfiniteLoop.ll
new file mode 100644 (file)
index 0000000..7f83fa8
--- /dev/null
@@ -0,0 +1,6 @@
+; RUN: llvm-as < %s | opt -instcombine
+
+int %test(int %X) {
+       %Y = rem int %X, undef
+       ret int %Y
+}