Add a test for the foldSelectICmpAndOr fix committed in r180779.
[oota-llvm.git] / test / Transforms / InstCombine / ashr-nop.ll
1 ; RUN: opt < %s -instcombine -S | not grep ashr
2
3 define i32 @foo(i32 %x) {
4   %o = and i32 %x, 1
5   %n = add i32 %o, -1
6   %t = ashr i32 %n, 17
7   ret i32 %t
8 }