diff options
author | Ron Lieberman <ronlieb.g@gmail.com> | 2018-12-03 13:04:54 +0000 |
---|---|---|
committer | Ron Lieberman <ronlieb.g@gmail.com> | 2018-12-03 13:04:54 +0000 |
commit | 16de4fd2ebac7621c50a621cd6e693cc2bbcef2b (patch) | |
tree | 16bbc03bd81aabe71a1fcee39e7b18c08eb55974 /lldb/packages/Python/lldbsuite/test/functionalities/step_scripted/TestStepScripted.py | |
parent | 0b639da54e6a1d324be97fdf1f87f284824ebb52 (diff) | |
download | bcm5719-llvm-16de4fd2ebac7621c50a621cd6e693cc2bbcef2b.tar.gz bcm5719-llvm-16de4fd2ebac7621c50a621cd6e693cc2bbcef2b.zip |
[AMDGPU] Add sdwa support for ADD|SUB U64 decomposed Pseudos
The introduction of S_{ADD|SUB}_U64_PSEUDO instructions which are decomposed
into VOP3 instruction pairs for S_ADD_U64_PSEUDO:
V_ADD_I32_e64
V_ADDC_U32_e64
and for S_SUB_U64_PSEUDO
V_SUB_I32_e64
V_SUBB_U32_e64
preclude the use of SDWA to encode a constant.
SDWA: Sub-Dword addressing is supported on VOP1 and VOP2 instructions,
but not on VOP3 instructions.
We desire to fold the bit-and operand into the instruction encoding
for the V_ADD_I32 instruction. This requires that we transform the
VOP3 into a VOP2 form of the instruction (_e32).
%19:vgpr_32 = V_AND_B32_e32 255,
killed %16:vgpr_32, implicit $exec
%47:vgpr_32, %49:sreg_64_xexec = V_ADD_I32_e64
%26.sub0:vreg_64, %19:vgpr_32, implicit $exec
%48:vgpr_32, dead %50:sreg_64_xexec = V_ADDC_U32_e64
%26.sub1:vreg_64, %54:vgpr_32, killed %49:sreg_64_xexec, implicit $exec
which then allows the SDWA encoding and becomes
%47:vgpr_32 = V_ADD_I32_sdwa
0, %26.sub0:vreg_64, 0, killed %16:vgpr_32, 0, 6, 0, 6, 0,
implicit-def $vcc, implicit $exec
%48:vgpr_32 = V_ADDC_U32_e32
0, %26.sub1:vreg_64, implicit-def $vcc, implicit $vcc, implicit $exec
Differential Revision: https://reviews.llvm.org/D54882
llvm-svn: 348132
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/functionalities/step_scripted/TestStepScripted.py')
0 files changed, 0 insertions, 0 deletions