OSDN Git Service

New testcase
authorChris Lattner <sabre@nondot.org>
Mon, 9 Aug 2004 21:03:35 +0000 (21:03 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 9 Aug 2004 21:03:35 +0000 (21:03 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15592 91177308-0d34-0410-b5e6-96231b3b80d8

test/Transforms/InstCombine/2004-08-09-RemInfLoop.llx [new file with mode: 0644]

diff --git a/test/Transforms/InstCombine/2004-08-09-RemInfLoop.llx b/test/Transforms/InstCombine/2004-08-09-RemInfLoop.llx
new file mode 100644 (file)
index 0000000..1ed6054
--- /dev/null
@@ -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
+}