2003-05-12-DivideError.ll 315 B

123456789101112131415
  1. ; Make sure that the constant propagator doesn't cause a sigfpe
  2. ;
  3. ; RUN: opt < %s -constprop
  4. ;
  5. define i32 @test() {
  6. %R = sdiv i32 -2147483648, -1 ; <i32> [#uses=1]
  7. ret i32 %R
  8. }
  9. define i32 @test2() {
  10. %R = srem i32 -2147483648, -1 ; <i32> [#uses=1]
  11. ret i32 %R
  12. }