18 lines · plain
1; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx900 < %s | FileCheck -check-prefix=GCN %s2 3; TII::areLoadsFromSameBasePtr failed because the offset for atomics4; is different from a normal load due to the data operand.5 6; GCN-LABEL: {{^}}are_loads_from_same_base_ptr_ds_atomic:7; GCN: global_load_dword8; GCN: ds_min_u329; GCN: ds_max_u3210define amdgpu_kernel void @are_loads_from_same_base_ptr_ds_atomic(ptr addrspace(1) %arg0, ptr addrspace(3) noalias %ptr0) #0 {11 %tmp1 = load volatile i32, ptr addrspace(1) %arg012 %tmp2 = atomicrmw umin ptr addrspace(3) %ptr0, i32 %tmp1 seq_cst13 %tmp3 = atomicrmw umax ptr addrspace(3) %ptr0, i32 %tmp1 seq_cst14 ret void15}16 17attributes #0 = { nounwind }18