xref: /llvm-project/llvm/test/Transforms/InstCombine/2004-08-09-RemInfLoop.ll (revision acdc419c897f8a9414c7a00c8908ac32312afee2)
1; RUN: opt < %s -passes=instcombine
2
3; This testcase should not send the instcombiner into an infinite loop!
4
5define i32 @test(i32 %X) {
6        %Y = srem i32 %X, 0             ; <i32> [#uses=1]
7        ret i32 %Y
8}
9
10