From: Chris Lattner Date: Wed, 8 Dec 2004 22:18:35 +0000 (+0000) Subject: This testcase causes the instruction combiner to go spiraling into X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=d5e4e1756feb1b99155ac96db5a320dd58c1fa77;p=oota-llvm.git 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 --- 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 00000000000..7f83fa837de --- /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 +}