1; RUN: llc -march=hexagon < %s | FileCheck %s 2 3; CHECK: .LBB0_1: 4; CHECK: [[R1:r[0-9]+]] = memw_locked(r0) 5; CHECK-DAG: [[R2:r[0-9]+]] = and([[R1]], 6; CHECK-DAG: [[R3:r[0-9]+]] = add([[R1]], 7; CHECK: [[R2]] |= and([[R3]], 8; CHECK: memw_locked(r0,[[P0:p[0-3]]]) = [[R2]] 9; CHECK: if (![[P0]]) jump:nt .LBB0_1 10 11 12%struct.a = type { i8 } 13 14define void @b() #0 { 15 %d = alloca %struct.a 16 %c = getelementptr %struct.a, %struct.a* %d, i32 0, i32 0 17 atomicrmw add i8* %c, i8 2 monotonic 18 ret void 19} 20 21attributes #0 = { "target-cpu"="hexagonv66" } 22 23