1*9880d681SAndroid Build Coastguard Worker; RUN: llc -mcpu=cyclone < %s | FileCheck %s 2*9880d681SAndroid Build Coastguard Workertarget datalayout = "e-i64:64-n32:64-S128" 3*9880d681SAndroid Build Coastguard Workertarget triple = "arm64-apple-ios" 4*9880d681SAndroid Build Coastguard Worker 5*9880d681SAndroid Build Coastguard Worker%"struct.SU" = type { i32, %"struct.SU"*, i32*, i32, i32, %"struct.BO", i32, [5 x i8] } 6*9880d681SAndroid Build Coastguard Worker%"struct.BO" = type { %"struct.RE" } 7*9880d681SAndroid Build Coastguard Worker 8*9880d681SAndroid Build Coastguard Worker%"struct.RE" = type { i32, i32, i32, i32 } 9*9880d681SAndroid Build Coastguard Worker 10*9880d681SAndroid Build Coastguard Worker; This is a read-modify-write of some bifields combined into an i48. It gets 11*9880d681SAndroid Build Coastguard Worker; legalized into i32 and i16 accesses. Only a single store of zero to the low 12*9880d681SAndroid Build Coastguard Worker; i32 part should be live. 13*9880d681SAndroid Build Coastguard Worker 14*9880d681SAndroid Build Coastguard Worker; CHECK-LABEL: test: 15*9880d681SAndroid Build Coastguard Worker; CHECK-NOT: ldr 16*9880d681SAndroid Build Coastguard Worker; CHECK: str wzr 17*9880d681SAndroid Build Coastguard Worker; CHECK-NOT: str 18*9880d681SAndroid Build Coastguard Workerdefine void @test(%"struct.SU"* nocapture %su) { 19*9880d681SAndroid Build Coastguard Workerentry: 20*9880d681SAndroid Build Coastguard Worker %r1 = getelementptr inbounds %"struct.SU", %"struct.SU"* %su, i64 1, i32 5 21*9880d681SAndroid Build Coastguard Worker %r2 = bitcast %"struct.BO"* %r1 to i48* 22*9880d681SAndroid Build Coastguard Worker %r3 = load i48, i48* %r2, align 8 23*9880d681SAndroid Build Coastguard Worker %r4 = and i48 %r3, -4294967296 24*9880d681SAndroid Build Coastguard Worker %r5 = or i48 0, %r4 25*9880d681SAndroid Build Coastguard Worker store i48 %r5, i48* %r2, align 8 26*9880d681SAndroid Build Coastguard Worker 27*9880d681SAndroid Build Coastguard Worker ret void 28*9880d681SAndroid Build Coastguard Worker} 29