brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.5 KiB · 9ef082d Raw
38 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py2;RUN: llc < %s -global-isel=0 -mtriple=amdgcn -mcpu=gfx1200 -amdgpu-enable-delay-alu=0 | FileCheck %s --check-prefix=GCN3;RUN: llc < %s -global-isel=1 -new-reg-bank-select -mtriple=amdgcn -mcpu=gfx1200 -amdgpu-enable-delay-alu=0 | FileCheck %s --check-prefix=GCN4 5define float @raw_buffer_load(<4 x i32> inreg) {6; GCN-LABEL: raw_buffer_load:7; GCN:       ; %bb.0: ; %main_body8; GCN-NEXT:    s_wait_loadcnt_dscnt 0x09; GCN-NEXT:    s_wait_expcnt 0x010; GCN-NEXT:    s_wait_samplecnt 0x011; GCN-NEXT:    s_wait_bvhcnt 0x012; GCN-NEXT:    s_wait_kmcnt 0x013; GCN-NEXT:    buffer_load_b32 v0, off, s[0:3], null th:TH_LOAD_LU14; GCN-NEXT:    s_wait_loadcnt 0x015; GCN-NEXT:    s_setpc_b64 s[30:31]16main_body:17  %data = call float @llvm.amdgcn.raw.buffer.load.f32(<4 x i32> %0, i32 0, i32 0, i32 3)18  ret float %data19}20 21define float @struct_buffer_load(<4 x i32> inreg) {22; GCN-LABEL: struct_buffer_load:23; GCN:       ; %bb.0: ; %main_body24; GCN-NEXT:    s_wait_loadcnt_dscnt 0x025; GCN-NEXT:    s_wait_expcnt 0x026; GCN-NEXT:    s_wait_samplecnt 0x027; GCN-NEXT:    s_wait_bvhcnt 0x028; GCN-NEXT:    s_wait_kmcnt 0x029; GCN-NEXT:    v_mov_b32_e32 v0, 030; GCN-NEXT:    buffer_load_b32 v0, v0, s[0:3], null idxen th:TH_LOAD_LU31; GCN-NEXT:    s_wait_loadcnt 0x032; GCN-NEXT:    s_setpc_b64 s[30:31]33main_body:34  %data = call float @llvm.amdgcn.struct.buffer.load.f32(<4 x i32> %0, i32 0, i32 0, i32 0, i32 3)35  ret float %data36}37 38