1; RUN: opt < %s -instcombine
2
3define i32 @test(i32 %X) {
4        %Y = srem i32 %X, undef         ; <i32> [#uses=1]
5        ret i32 %Y
6}
7
8