Use the llvm-upgrade program to upgrade llvm assembly.
[oota-llvm.git] / test / CodeGen / PowerPC / and_add.ll
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
4
5 int %test(int %A) {
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.
9   ret int %D
10 }
11