1 ; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- -o %t
3 ; RUN: not grep addi %t
4 ; RUN: not grep rlwinm %t
6 define i32 @test(i32 %A) {
8 %B = mul i32 %A, 8 ; <i32> [#uses=1]
9 ;; dead, no demanded bits.
10 %C = add i32 %B, 7 ; <i32> [#uses=1]
11 ;; dead once add is gone.
12 %D = and i32 %C, -8 ; <i32> [#uses=1]