20 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py2; RUN: llc -global-isel -new-reg-bank-select -mtriple=amdgcn-amd-amdpal -mcpu=gfx1010 < %s | FileCheck -check-prefix=GFX10 %s3 4define void @value_finder_bug(ptr addrspace(5) %store_ptr, ptr addrspace(4) %ptr) {5; GFX10-LABEL: value_finder_bug:6; GFX10: ; %bb.0:7; GFX10-NEXT: s_waitcnt vmcnt(0) expcnt(0) lgkmcnt(0)8; GFX10-NEXT: global_load_dwordx4 v[1:4], v[1:2], off9; GFX10-NEXT: s_waitcnt vmcnt(0)10; GFX10-NEXT: buffer_store_dword v3, v0, s[0:3], 0 offen11; GFX10-NEXT: buffer_store_dword v4, v0, s[0:3], 0 offen offset:412; GFX10-NEXT: s_setpc_b64 s[30:31]13 %vec = load <4 x float>, ptr addrspace(4) %ptr, align 414 %vec.3 = extractelement <4 x float> %vec, i32 315 %shuffle = shufflevector <4 x float> %vec, <4 x float> poison, <2 x i32> <i32 2, i32 poison>16 %new_vec = insertelement <2 x float> %shuffle, float %vec.3, i32 117 store <2 x float> %new_vec, ptr addrspace(5) %store_ptr, align 818 ret void19}20