Fix a ValueTracking rule: RHS means operand 1, not 0. Add a simple
[oota-llvm.git] / test / Transforms / InstCombine / ashr-nop.ll
1 ; RUN: llvm-as < %s | opt -instcombine | llvm-dis | 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 }