Correct the value of LowBits in srem and urem handling in
[oota-llvm.git] / test / Transforms / InstCombine / srem-simplify-bug.ll
1 ; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep {ret i1 false}
2 ; PR2276
3
4 define 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 }