blob: f3e5d77c0c806c1e0e8cca014f644fd7638d01db [file] [log] [blame]
Dan Gohman18800922009-09-11 18:01:28 +00001; RUN: opt < %s -instcombine
Chris Lattnercf5dd042004-08-09 21:03:35 +00002
3; This testcase should not send the instcombiner into an infinite loop!
4
Tanya Lattner5640bd12008-03-01 09:15:35 +00005define i32 @test(i32 %X) {
6 %Y = srem i32 %X, 0 ; <i32> [#uses=1]
7 ret i32 %Y
Chris Lattnercf5dd042004-08-09 21:03:35 +00008}
Tanya Lattner5640bd12008-03-01 09:15:35 +00009