1*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr7 2*9880d681SAndroid Build Coastguard Worker 3*9880d681SAndroid Build Coastguard Workerdefine void @test1(i1 %x, i8 %x2, i8* %x3, i64 %x4) { 4*9880d681SAndroid Build Coastguard Workerentry: 5*9880d681SAndroid Build Coastguard Worker %tmp3 = and i64 %x4, 16 6*9880d681SAndroid Build Coastguard Worker %bf.shl = trunc i64 %tmp3 to i8 7*9880d681SAndroid Build Coastguard Worker %bf.clear = and i8 %x2, -17 8*9880d681SAndroid Build Coastguard Worker %bf.set = or i8 %bf.shl, %bf.clear 9*9880d681SAndroid Build Coastguard Worker br i1 %x, label %if.then, label %if.end 10*9880d681SAndroid Build Coastguard Worker 11*9880d681SAndroid Build Coastguard Workerif.then: 12*9880d681SAndroid Build Coastguard Worker ret void 13*9880d681SAndroid Build Coastguard Worker 14*9880d681SAndroid Build Coastguard Workerif.end: 15*9880d681SAndroid Build Coastguard Worker store i8 %bf.set, i8* %x3, align 4 16*9880d681SAndroid Build Coastguard Worker ret void 17*9880d681SAndroid Build Coastguard Worker} 18