Skip to content

Commit

Permalink
opcodes: i386-reg.tbl: Add a comment to reflect dependency on ordering
Browse files Browse the repository at this point in the history
The ginsn representation keeps the DWARF register number of the
operands.  The API ginsn_dw2_regnum relies on the the relative ordering
of these register entries in the table.  Add a comment to make it clear.

opcodes/
	* i386-reg.tbl: Add a comment.
  • Loading branch information
ibhagatgnu committed Jan 15, 2024
1 parent 9dd9781 commit 9f00e4b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions opcodes/i386-reg.tbl
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
// Software Foundation, 51 Franklin Street - Fifth Floor, Boston, MA
// 02110-1301, USA.

// The code in gas backend for SCFI relies on the relative ordering
// of 8 bit / 16 bit / 32 bit / 64 bit regs

// 8 bit regs
al, Class=Reg|Instance=Accum|Byte, 0, 0, Dw2Inval, Dw2Inval
cl, Class=Reg|Instance=RegC|Byte, 0, 1, Dw2Inval, Dw2Inval
Expand Down

0 comments on commit 9f00e4b

Please sign in to comment.