This implements the second half of the fix for PR3290, handling
[oota-llvm.git] / test / Transforms / InstCombine / 2008-11-01-SRemDemandedBits.ll
1 ; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep {ret i1 true}
2 ; PR2993
3
4 define i1 @foo(i32 %x) {
5   %1 = srem i32 %x, -1
6   %2 = icmp eq i32 %1, 0
7   ret i1 %2
8 }