summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/InstCombine/2004-08-09-RemInfLoop.llx
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/Transforms/InstCombine/2004-08-09-RemInfLoop.llx')
-rw-r--r--llvm/test/Transforms/InstCombine/2004-08-09-RemInfLoop.llx8
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/test/Transforms/InstCombine/2004-08-09-RemInfLoop.llx b/llvm/test/Transforms/InstCombine/2004-08-09-RemInfLoop.llx
new file mode 100644
index 00000000000..98b35fe3cba
--- /dev/null
+++ b/llvm/test/Transforms/InstCombine/2004-08-09-RemInfLoop.llx
@@ -0,0 +1,8 @@
+; RUN: llvm-upgrade < %s | llvm-as | 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
+}
OpenPOWER on IntegriCloud