From efd0149de9be6bf52943c14374ebf9d2886cc94b Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 9 Aug 2004 21:03:35 +0000 Subject: New testcase 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 | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 test/Transforms/InstCombine/2004-08-09-RemInfLoop.llx (limited to 'test') 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 +} -- cgit v1.1