forked from OSchip/llvm-project
[AMDGPU][NFC] Add autogenerated tests for vgpr-tuple-allocation.ll
Reviewed By: arsenm Differential Revision: https://reviews.llvm.org/D117692
This commit is contained in:
parent
058d212379
commit
c7b71acef2
|
@ -1,3 +1,4 @@
|
|||
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
|
||||
; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx900 -verify-machineinstrs < %s | FileCheck -check-prefixes=GFX9 %s
|
||||
; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx1010 -verify-machineinstrs < %s | FileCheck -check-prefixes=GFX10 %s
|
||||
|
||||
|
@ -6,74 +7,132 @@ declare void @extern_func() #2
|
|||
define <4 x float> @non_preserved_vgpr_tuple8(<8 x i32> %rsrc, <4 x i32> %samp, float %bias, float %zcompare, float %s, float %t, float %clamp) {
|
||||
; The vgpr tuple8 operand in image_gather4_c_b_cl instruction needs not be
|
||||
; preserved across the call and should get 8 scratch registers.
|
||||
|
||||
; GFX9-LABEL: non_preserved_vgpr_tuple8:
|
||||
; GFX9: buffer_store_dword v40, off, s[0:3], s32 offset:16 ; 4-byte Folded Spill
|
||||
|
||||
; GFX9: v_mov_b32_e32 v36, v16
|
||||
; GFX9: ; %bb.0: ; %main_body
|
||||
; GFX9-NEXT: s_waitcnt vmcnt(0) expcnt(0) lgkmcnt(0)
|
||||
; GFX9-NEXT: s_or_saveexec_b64 s[4:5], -1
|
||||
; GFX9-NEXT: buffer_store_dword v40, off, s[0:3], s32 offset:16 ; 4-byte Folded Spill
|
||||
; GFX9-NEXT: s_mov_b64 exec, s[4:5]
|
||||
; GFX9-NEXT: s_mov_b32 s4, 0
|
||||
; GFX9-NEXT: v_writelane_b32 v40, s33, 2
|
||||
; GFX9-NEXT: s_mov_b32 s33, s32
|
||||
; GFX9-NEXT: v_mov_b32_e32 v36, v16
|
||||
; GFX9-NEXT: v_mov_b32_e32 v35, v15
|
||||
; GFX9-NEXT: v_mov_b32_e32 v34, v14
|
||||
; GFX9-NEXT: v_mov_b32_e32 v33, v13
|
||||
; GFX9-NEXT: v_mov_b32_e32 v32, v12
|
||||
|
||||
; GFX9: buffer_store_dword v41, off, s[0:3], s33 offset:12 ; 4-byte Folded Spill
|
||||
; GFX9-NEXT: s_mov_b32 s5, s4
|
||||
; GFX9-NEXT: s_mov_b32 s6, s4
|
||||
; GFX9-NEXT: s_mov_b32 s7, s4
|
||||
; GFX9-NEXT: s_mov_b32 s8, s4
|
||||
; GFX9-NEXT: s_mov_b32 s9, s4
|
||||
; GFX9-NEXT: s_mov_b32 s10, s4
|
||||
; GFX9-NEXT: s_mov_b32 s11, s4
|
||||
; GFX9-NEXT: buffer_store_dword v41, off, s[0:3], s33 offset:12 ; 4-byte Folded Spill
|
||||
; GFX9-NEXT: buffer_store_dword v42, off, s[0:3], s33 offset:8 ; 4-byte Folded Spill
|
||||
; GFX9-NEXT: buffer_store_dword v43, off, s[0:3], s33 offset:4 ; 4-byte Folded Spill
|
||||
; GFX9-NEXT: buffer_store_dword v44, off, s[0:3], s33 ; 4-byte Folded Spill
|
||||
|
||||
; GFX9: ;;#ASMSTART
|
||||
; GFX9-NEXT: ;;#ASMSTART
|
||||
; GFX9-NEXT: ;;#ASMEND
|
||||
; GFX9: image_gather4_c_b_cl v[41:44], v[32:36], s[4:11], s[4:7] dmask:0x1
|
||||
; GFX9-NEXT: ;;#ASMSTART
|
||||
; GFX9-NEXT: ;;#ASMEND
|
||||
; GFX9-NEXT: ;;#ASMSTART
|
||||
; GFX9-NEXT: ;;#ASMEND
|
||||
; GFX9-NEXT: ;;#ASMSTART
|
||||
; GFX9-NEXT: ;;#ASMEND
|
||||
; GFX9-NEXT: image_gather4_c_b_cl v[41:44], v[32:36], s[4:11], s[4:7] dmask:0x1
|
||||
; GFX9-NEXT: s_addk_i32 s32, 0x800
|
||||
; GFX9-NEXT: s_getpc_b64 s[4:5]
|
||||
; GFX9-NEXT: s_add_u32 s4, s4, extern_func@gotpcrel32@lo+4
|
||||
; GFX9-NEXT: s_addc_u32 s5, s5, extern_func@gotpcrel32@hi+12
|
||||
; GFX9-NEXT: s_load_dwordx2 s[4:5], s[4:5], 0x0
|
||||
; GFX9-NEXT: v_writelane_b32 v40, s30, 0
|
||||
; GFX9: s_waitcnt lgkmcnt(0)
|
||||
; GFX9-NEXT: v_writelane_b32 v40, s31, 1
|
||||
; GFX9-NEXT: s_waitcnt lgkmcnt(0)
|
||||
; GFX9-NEXT: s_swappc_b64 s[30:31], s[4:5]
|
||||
|
||||
; GFX9: buffer_load_dword v44, off, s[0:3], s33 ; 4-byte Folded Reload
|
||||
; GFX9-NEXT: v_mov_b32_e32 v0, v41
|
||||
; GFX9-NEXT: v_mov_b32_e32 v1, v42
|
||||
; GFX9-NEXT: v_mov_b32_e32 v2, v43
|
||||
; GFX9-NEXT: v_mov_b32_e32 v3, v44
|
||||
; GFX9-NEXT: buffer_load_dword v44, off, s[0:3], s33 ; 4-byte Folded Reload
|
||||
; GFX9-NEXT: buffer_load_dword v43, off, s[0:3], s33 offset:4 ; 4-byte Folded Reload
|
||||
; GFX9-NEXT: buffer_load_dword v42, off, s[0:3], s33 offset:8 ; 4-byte Folded Reload
|
||||
; GFX9-NEXT: buffer_load_dword v41, off, s[0:3], s33 offset:12 ; 4-byte Folded Reload
|
||||
; GFX9: buffer_load_dword v40, off, s[0:3], s32 offset:16 ; 4-byte Folded Reload
|
||||
; GFX9: s_setpc_b64 s[4:5]
|
||||
; GFX9-NEXT: v_readlane_b32 s4, v40, 0
|
||||
; GFX9-NEXT: v_readlane_b32 s5, v40, 1
|
||||
; GFX9-NEXT: s_addk_i32 s32, 0xf800
|
||||
; GFX9-NEXT: v_readlane_b32 s33, v40, 2
|
||||
; GFX9-NEXT: s_or_saveexec_b64 s[6:7], -1
|
||||
; GFX9-NEXT: buffer_load_dword v40, off, s[0:3], s32 offset:16 ; 4-byte Folded Reload
|
||||
; GFX9-NEXT: s_mov_b64 exec, s[6:7]
|
||||
; GFX9-NEXT: s_waitcnt vmcnt(0)
|
||||
; GFX9-NEXT: s_setpc_b64 s[4:5]
|
||||
;
|
||||
; GFX10-LABEL: non_preserved_vgpr_tuple8:
|
||||
; GFX10: buffer_store_dword v40, off, s[0:3], s32 offset:16 ; 4-byte Folded Spill
|
||||
|
||||
; GFX10: v_mov_b32_e32 v36, v16
|
||||
; GFX10: ; %bb.0: ; %main_body
|
||||
; GFX10-NEXT: s_waitcnt vmcnt(0) expcnt(0) lgkmcnt(0)
|
||||
; GFX10-NEXT: s_waitcnt_vscnt null, 0x0
|
||||
; GFX10-NEXT: s_or_saveexec_b32 s4, -1
|
||||
; GFX10-NEXT: buffer_store_dword v40, off, s[0:3], s32 offset:16 ; 4-byte Folded Spill
|
||||
; GFX10-NEXT: s_waitcnt_depctr 0xffe3
|
||||
; GFX10-NEXT: s_mov_b32 exec_lo, s4
|
||||
; GFX10-NEXT: v_mov_b32_e32 v36, v16
|
||||
; GFX10-NEXT: v_mov_b32_e32 v35, v15
|
||||
; GFX10-NEXT: v_mov_b32_e32 v34, v14
|
||||
; GFX10-NEXT: v_mov_b32_e32 v33, v13
|
||||
; GFX10-NEXT: v_mov_b32_e32 v32, v12
|
||||
|
||||
; GFX10: buffer_store_dword v41, off, s[0:3], s33 offset:12 ; 4-byte Folded Spill
|
||||
; GFX10-NEXT: s_mov_b32 s4, 0
|
||||
; GFX10-NEXT: v_writelane_b32 v40, s33, 2
|
||||
; GFX10-NEXT: s_mov_b32 s33, s32
|
||||
; GFX10-NEXT: s_mov_b32 s5, s4
|
||||
; GFX10-NEXT: s_mov_b32 s6, s4
|
||||
; GFX10-NEXT: s_mov_b32 s7, s4
|
||||
; GFX10-NEXT: s_mov_b32 s8, s4
|
||||
; GFX10-NEXT: s_mov_b32 s9, s4
|
||||
; GFX10-NEXT: s_mov_b32 s10, s4
|
||||
; GFX10-NEXT: s_mov_b32 s11, s4
|
||||
; GFX10-NEXT: buffer_store_dword v41, off, s[0:3], s33 offset:12 ; 4-byte Folded Spill
|
||||
; GFX10-NEXT: buffer_store_dword v42, off, s[0:3], s33 offset:8 ; 4-byte Folded Spill
|
||||
; GFX10-NEXT: buffer_store_dword v43, off, s[0:3], s33 offset:4 ; 4-byte Folded Spill
|
||||
; GFX10-NEXT: buffer_store_dword v44, off, s[0:3], s33 ; 4-byte Folded Spill
|
||||
|
||||
; GFX10: ;;#ASMSTART
|
||||
; GFX10-NEXT: ;;#ASMSTART
|
||||
; GFX10-NEXT: ;;#ASMEND
|
||||
|
||||
; GFX10: image_gather4_c_b_cl v[41:44], v[32:36], s[4:11], s[4:7] dmask:0x1 dim:SQ_RSRC_IMG_2D
|
||||
; GFX10-NEXT: ;;#ASMSTART
|
||||
; GFX10-NEXT: ;;#ASMEND
|
||||
; GFX10-NEXT: ;;#ASMSTART
|
||||
; GFX10-NEXT: ;;#ASMEND
|
||||
; GFX10-NEXT: ;;#ASMSTART
|
||||
; GFX10-NEXT: ;;#ASMEND
|
||||
; GFX10-NEXT: image_gather4_c_b_cl v[41:44], v[32:36], s[4:11], s[4:7] dmask:0x1 dim:SQ_RSRC_IMG_2D
|
||||
; GFX10-NEXT: s_addk_i32 s32, 0x400
|
||||
; GFX10-NEXT: s_waitcnt_depctr 0xffe3
|
||||
; GFX10-NEXT: s_getpc_b64 s[4:5]
|
||||
; GFX10-NEXT: s_add_u32 s4, s4, extern_func@gotpcrel32@lo+4
|
||||
; GFX10-NEXT: s_addc_u32 s5, s5, extern_func@gotpcrel32@hi+12
|
||||
; GFX10: s_load_dwordx2 s[4:5], s[4:5], 0x0
|
||||
; GFX10: s_waitcnt lgkmcnt(0)
|
||||
; GFX10-NEXT: v_writelane_b32 v40, s30, 0
|
||||
; GFX10-NEXT: s_load_dwordx2 s[4:5], s[4:5], 0x0
|
||||
; GFX10-NEXT: v_writelane_b32 v40, s31, 1
|
||||
; GFX10-NEXT: s_waitcnt lgkmcnt(0)
|
||||
; GFX10-NEXT: s_swappc_b64 s[30:31], s[4:5]
|
||||
|
||||
; GFX10: buffer_load_dword v44, off, s[0:3], s33
|
||||
; GFX10-NEXT: v_mov_b32_e32 v0, v41
|
||||
; GFX10-NEXT: v_mov_b32_e32 v1, v42
|
||||
; GFX10-NEXT: v_mov_b32_e32 v2, v43
|
||||
; GFX10-NEXT: v_mov_b32_e32 v3, v44
|
||||
; GFX10-NEXT: s_clause 0x3
|
||||
; GFX10-NEXT: buffer_load_dword v44, off, s[0:3], s33
|
||||
; GFX10-NEXT: buffer_load_dword v43, off, s[0:3], s33 offset:4
|
||||
; GFX10-NEXT: buffer_load_dword v42, off, s[0:3], s33 offset:8
|
||||
; GFX10-NEXT: buffer_load_dword v41, off, s[0:3], s33 offset:12
|
||||
|
||||
; GFX10: buffer_load_dword v40, off, s[0:3], s32 offset:16 ; 4-byte Folded Reload
|
||||
; GFX10: s_setpc_b64 s[4:5]
|
||||
; GFX10-NEXT: v_readlane_b32 s4, v40, 0
|
||||
; GFX10-NEXT: v_readlane_b32 s5, v40, 1
|
||||
; GFX10-NEXT: s_addk_i32 s32, 0xfc00
|
||||
; GFX10-NEXT: v_readlane_b32 s33, v40, 2
|
||||
; GFX10-NEXT: s_or_saveexec_b32 s6, -1
|
||||
; GFX10-NEXT: buffer_load_dword v40, off, s[0:3], s32 offset:16 ; 4-byte Folded Reload
|
||||
; GFX10-NEXT: s_waitcnt_depctr 0xffe3
|
||||
; GFX10-NEXT: s_mov_b32 exec_lo, s6
|
||||
; GFX10-NEXT: s_waitcnt vmcnt(0)
|
||||
; GFX10-NEXT: s_setpc_b64 s[4:5]
|
||||
main_body:
|
||||
call void asm sideeffect "", "~{v0},~{v1},~{v2},~{v3},~{v4},~{v5},~{v6},~{v7}"() #0
|
||||
call void asm sideeffect "", "~{v8},~{v9},~{v10},~{v11},~{v12},~{v13},~{v14},~{v15}"() #0
|
||||
|
@ -89,52 +148,115 @@ define <4 x float> @call_preserved_vgpr_tuple8(<8 x i32> %rsrc, <4 x i32> %samp,
|
|||
; across the call and should get allcoated to 8 CSRs.
|
||||
; Only the lower 5 sub-registers of the tuple are preserved.
|
||||
; The upper 3 sub-registers are unused.
|
||||
|
||||
; GFX9-LABEL: call_preserved_vgpr_tuple8:
|
||||
; GFX9: buffer_store_dword v40, off, s[0:3], s32 offset:20 ; 4-byte Folded Spill
|
||||
; GFX9: buffer_store_dword v41, off, s[0:3], s33 offset:16 ; 4-byte Folded Spill
|
||||
; GFX9: ; %bb.0: ; %main_body
|
||||
; GFX9-NEXT: s_waitcnt vmcnt(0) expcnt(0) lgkmcnt(0)
|
||||
; GFX9-NEXT: s_or_saveexec_b64 s[4:5], -1
|
||||
; GFX9-NEXT: buffer_store_dword v40, off, s[0:3], s32 offset:20 ; 4-byte Folded Spill
|
||||
; GFX9-NEXT: s_mov_b64 exec, s[4:5]
|
||||
; GFX9-NEXT: v_writelane_b32 v40, s33, 10
|
||||
; GFX9-NEXT: v_writelane_b32 v40, s36, 0
|
||||
; GFX9-NEXT: v_writelane_b32 v40, s37, 1
|
||||
; GFX9-NEXT: v_writelane_b32 v40, s38, 2
|
||||
; GFX9-NEXT: v_writelane_b32 v40, s39, 3
|
||||
; GFX9-NEXT: v_writelane_b32 v40, s40, 4
|
||||
; GFX9-NEXT: v_writelane_b32 v40, s41, 5
|
||||
; GFX9-NEXT: s_mov_b32 s33, s32
|
||||
; GFX9-NEXT: v_writelane_b32 v40, s42, 6
|
||||
; GFX9-NEXT: s_mov_b32 s36, 0
|
||||
; GFX9-NEXT: buffer_store_dword v41, off, s[0:3], s33 offset:16 ; 4-byte Folded Spill
|
||||
; GFX9-NEXT: buffer_store_dword v42, off, s[0:3], s33 offset:12 ; 4-byte Folded Spill
|
||||
; GFX9-NEXT: buffer_store_dword v43, off, s[0:3], s33 offset:8 ; 4-byte Folded Spill
|
||||
; GFX9-NEXT: buffer_store_dword v44, off, s[0:3], s33 offset:4 ; 4-byte Folded Spill
|
||||
; GFX9-NEXT: buffer_store_dword v45, off, s[0:3], s33 ; 4-byte Folded Spill
|
||||
|
||||
; GFX9: v_mov_b32_e32 v45, v16
|
||||
; GFX9-NEXT: v_writelane_b32 v40, s43, 7
|
||||
; GFX9-NEXT: v_mov_b32_e32 v45, v16
|
||||
; GFX9-NEXT: v_mov_b32_e32 v44, v15
|
||||
; GFX9-NEXT: v_mov_b32_e32 v43, v14
|
||||
; GFX9-NEXT: v_mov_b32_e32 v42, v13
|
||||
; GFX9-NEXT: v_mov_b32_e32 v41, v12
|
||||
|
||||
; GFX9: image_gather4_c_b_cl v[0:3], v[41:45], s[36:43], s[4:7] dmask:0x1
|
||||
; GFX9-NEXT: s_mov_b32 s37, s36
|
||||
; GFX9-NEXT: s_mov_b32 s38, s36
|
||||
; GFX9-NEXT: s_mov_b32 s39, s36
|
||||
; GFX9-NEXT: s_mov_b32 s40, s36
|
||||
; GFX9-NEXT: s_mov_b32 s41, s36
|
||||
; GFX9-NEXT: s_mov_b32 s42, s36
|
||||
; GFX9-NEXT: s_mov_b32 s43, s36
|
||||
; GFX9-NEXT: image_gather4_c_b_cl v[0:3], v[41:45], s[36:43], s[4:7] dmask:0x1
|
||||
; GFX9-NEXT: s_addk_i32 s32, 0x800
|
||||
; GFX9-NEXT: s_getpc_b64 s[4:5]
|
||||
; GFX9-NEXT: s_add_u32 s4, s4, extern_func@gotpcrel32@lo+4
|
||||
; GFX9-NEXT: s_addc_u32 s5, s5, extern_func@gotpcrel32@hi+12
|
||||
; GFX9-NEXT: s_load_dwordx2 s[4:5], s[4:5], 0x0
|
||||
; GFX9: s_waitcnt vmcnt(0)
|
||||
; GFX9-NEXT: v_writelane_b32 v40, s30, 8
|
||||
; GFX9-NEXT: v_writelane_b32 v40, s31, 9
|
||||
; GFX9-NEXT: s_waitcnt vmcnt(0)
|
||||
; GFX9-NEXT: global_store_dwordx4 v[0:1], v[0:3], off
|
||||
; GFX9-NEXT: s_waitcnt lgkmcnt(0)
|
||||
; GFX9-NEXT: s_swappc_b64 s[30:31], s[4:5]
|
||||
; GFX9-NEXT: image_gather4_c_b_cl v[0:3], v[41:45], s[36:43], s[4:7] dmask:0x1
|
||||
|
||||
; GFX9: buffer_load_dword v45, off, s[0:3], s33 ; 4-byte Folded Reload
|
||||
; GFX9-NEXT: s_nop 0
|
||||
; GFX9-NEXT: buffer_load_dword v45, off, s[0:3], s33 ; 4-byte Folded Reload
|
||||
; GFX9-NEXT: buffer_load_dword v44, off, s[0:3], s33 offset:4 ; 4-byte Folded Reload
|
||||
; GFX9-NEXT: buffer_load_dword v43, off, s[0:3], s33 offset:8 ; 4-byte Folded Reload
|
||||
; GFX9-NEXT: buffer_load_dword v42, off, s[0:3], s33 offset:12 ; 4-byte Folded Reload
|
||||
; GFX9-NEXT: buffer_load_dword v41, off, s[0:3], s33 offset:16 ; 4-byte Folded Reload
|
||||
|
||||
; GFX9: buffer_load_dword v40, off, s[0:3], s32 offset:20 ; 4-byte Folded Reload
|
||||
; GFX9: s_setpc_b64 s[4:5]
|
||||
; GFX9-NEXT: v_readlane_b32 s4, v40, 8
|
||||
; GFX9-NEXT: v_readlane_b32 s5, v40, 9
|
||||
; GFX9-NEXT: v_readlane_b32 s43, v40, 7
|
||||
; GFX9-NEXT: v_readlane_b32 s42, v40, 6
|
||||
; GFX9-NEXT: v_readlane_b32 s41, v40, 5
|
||||
; GFX9-NEXT: v_readlane_b32 s40, v40, 4
|
||||
; GFX9-NEXT: v_readlane_b32 s39, v40, 3
|
||||
; GFX9-NEXT: v_readlane_b32 s38, v40, 2
|
||||
; GFX9-NEXT: v_readlane_b32 s37, v40, 1
|
||||
; GFX9-NEXT: v_readlane_b32 s36, v40, 0
|
||||
; GFX9-NEXT: s_addk_i32 s32, 0xf800
|
||||
; GFX9-NEXT: v_readlane_b32 s33, v40, 10
|
||||
; GFX9-NEXT: s_or_saveexec_b64 s[6:7], -1
|
||||
; GFX9-NEXT: buffer_load_dword v40, off, s[0:3], s32 offset:20 ; 4-byte Folded Reload
|
||||
; GFX9-NEXT: s_mov_b64 exec, s[6:7]
|
||||
; GFX9-NEXT: s_waitcnt vmcnt(0)
|
||||
; GFX9-NEXT: s_setpc_b64 s[4:5]
|
||||
;
|
||||
; GFX10-LABEL: call_preserved_vgpr_tuple8:
|
||||
; GFX10: buffer_store_dword v40, off, s[0:3], s32 offset:20 ; 4-byte Folded Spill
|
||||
; GFX10: buffer_store_dword v41, off, s[0:3], s33 offset:16 ; 4-byte Folded Spill
|
||||
; GFX10: ; %bb.0: ; %main_body
|
||||
; GFX10-NEXT: s_waitcnt vmcnt(0) expcnt(0) lgkmcnt(0)
|
||||
; GFX10-NEXT: s_waitcnt_vscnt null, 0x0
|
||||
; GFX10-NEXT: s_or_saveexec_b32 s4, -1
|
||||
; GFX10-NEXT: buffer_store_dword v40, off, s[0:3], s32 offset:20 ; 4-byte Folded Spill
|
||||
; GFX10-NEXT: s_waitcnt_depctr 0xffe3
|
||||
; GFX10-NEXT: s_mov_b32 exec_lo, s4
|
||||
; GFX10-NEXT: v_writelane_b32 v40, s33, 10
|
||||
; GFX10-NEXT: s_mov_b32 s33, s32
|
||||
; GFX10-NEXT: buffer_store_dword v41, off, s[0:3], s33 offset:16 ; 4-byte Folded Spill
|
||||
; GFX10-NEXT: buffer_store_dword v42, off, s[0:3], s33 offset:12 ; 4-byte Folded Spill
|
||||
; GFX10-NEXT: buffer_store_dword v43, off, s[0:3], s33 offset:8 ; 4-byte Folded Spill
|
||||
; GFX10-NEXT: buffer_store_dword v44, off, s[0:3], s33 offset:4 ; 4-byte Folded Spill
|
||||
; GFX10-NEXT: buffer_store_dword v45, off, s[0:3], s33 ; 4-byte Folded Spill
|
||||
|
||||
|
||||
; GFX10: image_gather4_c_b_cl v[0:3], v[12:16], s[36:43], s[4:7] dmask:0x1 dim:SQ_RSRC_IMG_2D
|
||||
; GFX10-NEXT: s_addk_i32 s32, 0x400
|
||||
; GFX10-NEXT: v_writelane_b32 v40, s36, 0
|
||||
; GFX10-NEXT: s_mov_b32 s36, 0
|
||||
; GFX10-NEXT: v_mov_b32_e32 v41, v16
|
||||
; GFX10-NEXT: v_mov_b32_e32 v42, v15
|
||||
; GFX10-NEXT: v_mov_b32_e32 v43, v14
|
||||
; GFX10-NEXT: v_writelane_b32 v40, s37, 1
|
||||
; GFX10-NEXT: s_mov_b32 s37, s36
|
||||
; GFX10-NEXT: v_mov_b32_e32 v44, v13
|
||||
; GFX10-NEXT: v_mov_b32_e32 v45, v12
|
||||
; GFX10-NEXT: v_writelane_b32 v40, s38, 2
|
||||
; GFX10-NEXT: s_mov_b32 s38, s36
|
||||
; GFX10-NEXT: v_writelane_b32 v40, s39, 3
|
||||
; GFX10-NEXT: s_mov_b32 s39, s36
|
||||
; GFX10-NEXT: v_writelane_b32 v40, s40, 4
|
||||
; GFX10-NEXT: s_mov_b32 s40, s36
|
||||
; GFX10-NEXT: v_writelane_b32 v40, s41, 5
|
||||
; GFX10-NEXT: s_mov_b32 s41, s36
|
||||
; GFX10-NEXT: v_writelane_b32 v40, s42, 6
|
||||
; GFX10-NEXT: s_mov_b32 s42, s36
|
||||
; GFX10-NEXT: v_writelane_b32 v40, s43, 7
|
||||
; GFX10-NEXT: s_mov_b32 s43, s36
|
||||
; GFX10-NEXT: image_gather4_c_b_cl v[0:3], v[12:16], s[36:43], s[4:7] dmask:0x1 dim:SQ_RSRC_IMG_2D
|
||||
; GFX10-NEXT: s_waitcnt_depctr 0xffe3
|
||||
; GFX10-NEXT: s_getpc_b64 s[4:5]
|
||||
; GFX10-NEXT: s_add_u32 s4, s4, extern_func@gotpcrel32@lo+4
|
||||
|
@ -147,14 +269,30 @@ define <4 x float> @call_preserved_vgpr_tuple8(<8 x i32> %rsrc, <4 x i32> %samp,
|
|||
; GFX10-NEXT: s_waitcnt lgkmcnt(0)
|
||||
; GFX10-NEXT: s_swappc_b64 s[30:31], s[4:5]
|
||||
; GFX10-NEXT: image_gather4_c_b_cl v[0:3], [v45, v44, v43, v42, v41], s[36:43], s[4:7] dmask:0x1 dim:SQ_RSRC_IMG_2D
|
||||
|
||||
; GFX10: buffer_load_dword v45, off, s[0:3], s33{{$}}
|
||||
; GFX10-NEXT: s_clause 0x4
|
||||
; GFX10-NEXT: buffer_load_dword v45, off, s[0:3], s33
|
||||
; GFX10-NEXT: buffer_load_dword v44, off, s[0:3], s33 offset:4
|
||||
; GFX10-NEXT: buffer_load_dword v43, off, s[0:3], s33 offset:8
|
||||
; GFX10-NEXT: buffer_load_dword v42, off, s[0:3], s33 offset:12
|
||||
; GFX10-NEXT: buffer_load_dword v41, off, s[0:3], s33 offset:16
|
||||
; GFX10: buffer_load_dword v40, off, s[0:3], s32 offset:20
|
||||
; GFX10: s_setpc_b64 s[4:5]
|
||||
; GFX10-NEXT: v_readlane_b32 s4, v40, 8
|
||||
; GFX10-NEXT: v_readlane_b32 s5, v40, 9
|
||||
; GFX10-NEXT: v_readlane_b32 s43, v40, 7
|
||||
; GFX10-NEXT: v_readlane_b32 s42, v40, 6
|
||||
; GFX10-NEXT: v_readlane_b32 s41, v40, 5
|
||||
; GFX10-NEXT: v_readlane_b32 s40, v40, 4
|
||||
; GFX10-NEXT: v_readlane_b32 s39, v40, 3
|
||||
; GFX10-NEXT: v_readlane_b32 s38, v40, 2
|
||||
; GFX10-NEXT: v_readlane_b32 s37, v40, 1
|
||||
; GFX10-NEXT: v_readlane_b32 s36, v40, 0
|
||||
; GFX10-NEXT: s_addk_i32 s32, 0xfc00
|
||||
; GFX10-NEXT: v_readlane_b32 s33, v40, 10
|
||||
; GFX10-NEXT: s_or_saveexec_b32 s6, -1
|
||||
; GFX10-NEXT: buffer_load_dword v40, off, s[0:3], s32 offset:20 ; 4-byte Folded Reload
|
||||
; GFX10-NEXT: s_waitcnt_depctr 0xffe3
|
||||
; GFX10-NEXT: s_mov_b32 exec_lo, s6
|
||||
; GFX10-NEXT: s_waitcnt vmcnt(0)
|
||||
; GFX10-NEXT: s_setpc_b64 s[4:5]
|
||||
main_body:
|
||||
%v = call <4 x float> @llvm.amdgcn.image.gather4.c.b.cl.2d.v4f32.f32.f32(i32 1, float %bias, float %zcompare, float %s, float %t, float %clamp, <8 x i32> undef, <4 x i32> undef, i1 false, i32 0, i32 0)
|
||||
store <4 x float> %v, <4 x float> addrspace(1)* undef
|
||||
|
|
Loading…
Reference in New Issue