aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/Transforms/InstCombine/2004-12-08-RemInfiniteLoop.ll6
1 files changed, 6 insertions, 0 deletions
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 0000000000..7f83fa837d
--- /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
+}