1*9880d681SAndroid Build Coastguard Worker; RUN: opt < %s -instcombine 2*9880d681SAndroid Build Coastguard Worker 3*9880d681SAndroid Build Coastguard Worker; This testcase should not send the instcombiner into an infinite loop! 4*9880d681SAndroid Build Coastguard Worker 5*9880d681SAndroid Build Coastguard Workerdefine i32 @test(i32 %X) { 6*9880d681SAndroid Build Coastguard Worker %Y = srem i32 %X, 0 ; <i32> [#uses=1] 7*9880d681SAndroid Build Coastguard Worker ret i32 %Y 8*9880d681SAndroid Build Coastguard Worker} 9*9880d681SAndroid Build Coastguard Worker 10