1 ; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | grep slwi &&
2 ; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | not grep addi &&
3 ; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | not grep rlwinm
6 %B = mul int %A, 8 ;; shift
7 %C = add int %B, 7 ;; dead, no demanded bits.
8 %D = and int %C, -8 ;; dead once add is gone.