2004-08-09-RemInfLoop.ll 210 B

123456789
  1. ; RUN: opt < %s -instcombine
  2. ; This testcase should not send the instcombiner into an infinite loop!
  3. define i32 @test(i32 %X) {
  4. %Y = srem i32 %X, 0 ; <i32> [#uses=1]
  5. ret i32 %Y
  6. }