diff options
Diffstat (limited to 'test/Transforms/InstCombine/2004-08-09-RemInfLoop.ll')
-rw-r--r-- | test/Transforms/InstCombine/2004-08-09-RemInfLoop.ll | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/2004-08-09-RemInfLoop.ll b/test/Transforms/InstCombine/2004-08-09-RemInfLoop.ll new file mode 100644 index 0000000..9fc48de --- /dev/null +++ b/test/Transforms/InstCombine/2004-08-09-RemInfLoop.ll @@ -0,0 +1,9 @@ +; RUN: llvm-as < %s | opt -instcombine + +; This testcase should not send the instcombiner into an infinite loop! + +define i32 @test(i32 %X) { + %Y = srem i32 %X, 0 ; <i32> [#uses=1] + ret i32 %Y +} + |