2021-05-14 16:11:36 +03:00
..
***** ***** ***** ***** ***** ***** ***** ***** ***** *****
* *
* Automatically generated file, do not edit! *
* *
***** ***** ***** ***** ***** ***** ***** ***** ***** *****
.. _amdgpu_synid_gfx90a_imask:
imask
=====
This operand is a mask which controls indexing mode for operands of subsequent instructions.
Bits 0, 1 and 2 control indexing of *src0* , *src1* and *src2* , while bit 3 controls indexing of *dst* .
2022-12-13 14:18:20 +03:00
Value 1 enables indexing, and value 0 disables it.
2021-05-14 16:11:36 +03:00
===== ========================================
Bit Meaning
===== ========================================
0 Enables or disables *src0* indexing.
1 Enables or disables *src1* indexing.
2 Enables or disables *src2* indexing.
3 Enables or disables *dst* indexing.
===== ========================================
This operand may be specified as one of the following:
2022-12-13 14:18:20 +03:00
* An :ref: `integer_number<amdgpu_synid_integer_number>` or an :ref: `absolute_expression<amdgpu_synid_absolute_expression>` . The value must be in the range from 0 to 15.
* A *gpr_idx* value which is described below.
2021-05-14 16:11:36 +03:00
2022-12-13 14:18:20 +03:00
==================================== =============================================
2021-05-14 16:11:36 +03:00
Gpr_idx Value Syntax Description
2022-12-13 14:18:20 +03:00
==================================== =============================================
gpr_idx(*<operand list>* ) Enable indexing for the specified *operands*
2021-05-14 16:11:36 +03:00
and disable it for the rest.
2022-12-13 14:18:20 +03:00
*Operand list* is a comma-separated list of
2021-05-14 16:11:36 +03:00
values which may include:
2022-12-13 14:18:20 +03:00
* SRC0 - enable *src0* indexing.
2021-05-14 16:11:36 +03:00
2022-12-13 14:18:20 +03:00
* SRC1 - enable *src1* indexing.
2021-05-14 16:11:36 +03:00
2022-12-13 14:18:20 +03:00
* SRC2 - enable *src2* indexing.
2021-05-14 16:11:36 +03:00
2022-12-13 14:18:20 +03:00
* DST - enable *dst* indexing.
2021-05-14 16:11:36 +03:00
Each of these values may be specified only
once.
2022-12-13 14:18:20 +03:00
*Operand list* may be empty; this syntax
2021-05-14 16:11:36 +03:00
disables indexing for all operands.
2022-12-13 14:18:20 +03:00
==================================== =============================================
2021-05-14 16:11:36 +03:00
Examples:
.. parsed-literal ::
s_set_gpr_idx_mode 0
s_set_gpr_idx_mode gpr_idx() // the same as above
s_set_gpr_idx_mode 15
s_set_gpr_idx_mode gpr_idx(DST,SRC0,SRC1,SRC2) // the same as above
s_set_gpr_idx_mode gpr_idx(SRC0,SRC1,SRC2,DST) // the same as above
s_set_gpr_idx_mode gpr_idx(DST,SRC1)