brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.5 KiB · 91b0247 Raw
52 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 22; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx908 < %s | FileCheck -enable-var-scope --check-prefix=GCN %s3 4define void @shl_base_atomicrmw_global_ptr(ptr addrspace(1) %out, ptr addrspace(1) %extra.use, ptr addrspace(1) %ptr) #0 {5; GCN-LABEL: shl_base_atomicrmw_global_ptr:6; GCN:       ; %bb.0:7; GCN-NEXT:    s_waitcnt vmcnt(0) expcnt(0) lgkmcnt(0)8; GCN-NEXT:    v_lshlrev_b64 v[0:1], 2, v[4:5]9; GCN-NEXT:    v_mov_b32_e32 v6, 310; GCN-NEXT:    global_atomic_and v[0:1], v6, off offset:51211; GCN-NEXT:    s_waitcnt vmcnt(0)12; GCN-NEXT:    buffer_wbinvl1_vol13; GCN-NEXT:    v_add_co_u32_e32 v0, vcc, 0x80, v414; GCN-NEXT:    v_addc_co_u32_e32 v1, vcc, 0, v5, vcc15; GCN-NEXT:    global_store_dwordx2 v[2:3], v[0:1], off16; GCN-NEXT:    s_waitcnt vmcnt(0)17; GCN-NEXT:    s_setpc_b64 s[30:31]18  %arrayidx0 = getelementptr inbounds [512 x i32], ptr addrspace(1) %ptr, i64 0, i64 3219  %cast = ptrtoint ptr addrspace(1) %arrayidx0 to i6420  %shl = shl i64 %cast, 221  %castback = inttoptr i64 %shl to ptr addrspace(1)22  %val = atomicrmw and ptr addrspace(1) %castback, i32 3 syncscope("agent") seq_cst, !amdgpu.no.fine.grained.memory !023  store volatile i64 %cast, ptr addrspace(1) %extra.use, align 424  ret void25}26 27define void @shl_base_global_ptr_global_atomic_fadd(ptr addrspace(1) %out, ptr addrspace(1) %extra.use, ptr addrspace(1) %ptr) #0 {28; GCN-LABEL: shl_base_global_ptr_global_atomic_fadd:29; GCN:       ; %bb.0:30; GCN-NEXT:    s_waitcnt vmcnt(0) expcnt(0) lgkmcnt(0)31; GCN-NEXT:    v_lshlrev_b64 v[0:1], 2, v[4:5]32; GCN-NEXT:    v_mov_b32_e32 v6, 0x42c8000033; GCN-NEXT:    global_atomic_add_f32 v[0:1], v6, off offset:51234; GCN-NEXT:    v_add_co_u32_e32 v0, vcc, 0x80, v435; GCN-NEXT:    v_addc_co_u32_e32 v1, vcc, 0, v5, vcc36; GCN-NEXT:    global_store_dwordx2 v[2:3], v[0:1], off37; GCN-NEXT:    s_waitcnt vmcnt(0)38; GCN-NEXT:    s_setpc_b64 s[30:31]39  %arrayidx0 = getelementptr inbounds [512 x i32], ptr addrspace(1) %ptr, i64 0, i64 3240  %cast = ptrtoint ptr addrspace(1) %arrayidx0 to i6441  %shl = shl i64 %cast, 242  %castback = inttoptr i64 %shl to ptr addrspace(1)43  %unused = atomicrmw fadd ptr addrspace(1) %castback, float 100.0 syncscope("agent") monotonic, align 4, !amdgpu.no.fine.grained.memory !0, !amdgpu.ignore.denormal.mode !044  store volatile i64 %cast, ptr addrspace(1) %extra.use, align 445  ret void46}47 48attributes #0 = { nounwind }49attributes #1 = { argmemonly nounwind willreturn }50 51!0 = !{}52