blob: 3458714b8daec94a98224a893af2b7cb6422a067 [file] [log] [blame]
Chandler Carrutha5a29f92012-07-02 12:47:22 +00001; RUN: opt < %s -instcombine -S | grep "ret i1 false"
Dan Gohmancf0e3ac2008-05-06 00:51:48 +00002; PR2276
3
4define i1 @f(i32 %x) {
5 %A = or i32 %x, 1
6 %B = srem i32 %A, 1
7 %C = icmp ne i32 %B, 0
8 ret i1 %C
9}