blob: c2293c25f3270991b9eb2c57b43792676f8caf95 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
; RUN: llvm-as < %s | llc -march=ppc32 | grep slwi &&
; RUN: llvm-as < %s | llc -march=ppc32 | not grep addi &&
; RUN: llvm-as < %s | llc -march=ppc32 | not grep rlwinm
int %test(int %A) {
%B = mul int %A, 8 ;; shift
%C = add int %B, 7 ;; dead, no demanded bits.
%D = and int %C, -8 ;; dead once add is gone.
ret int %D
}
|