aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-08-09 21:03:35 +0000
committerChris Lattner <sabre@nondot.org>2004-08-09 21:03:35 +0000
commitefd0149de9be6bf52943c14374ebf9d2886cc94b (patch)
treef8475c80f866579d273ee1cf0b9ec742c96eb305 /test
parent171b59d2d6233c6e239fff58b24214c001111c8c (diff)
downloadexternal_llvm-efd0149de9be6bf52943c14374ebf9d2886cc94b.zip
external_llvm-efd0149de9be6bf52943c14374ebf9d2886cc94b.tar.gz
external_llvm-efd0149de9be6bf52943c14374ebf9d2886cc94b.tar.bz2
New testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15592 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/Transforms/InstCombine/2004-08-09-RemInfLoop.llx8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/2004-08-09-RemInfLoop.llx b/test/Transforms/InstCombine/2004-08-09-RemInfLoop.llx
new file mode 100644
index 0000000..1ed6054
--- /dev/null
+++ b/test/Transforms/InstCombine/2004-08-09-RemInfLoop.llx
@@ -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
+}