Support Intel PBNDKB
authorHu, Lin1 <lin1.hu@intel.com>
Mon, 24 Jul 2023 03:10:03 +0000 (11:10 +0800)
committerHaochen Jiang <haochen.jiang@intel.com>
Thu, 27 Jul 2023 12:52:52 +0000 (20:52 +0800)
commitcd2908958ace351831cea7acc87e68a93f395bc6
tree2a7592e7a52f0e5c102ff173daa0791a424e20a5
parent2bced1684b3636d4c7607b7ec57e34d2d71b74cb
Support Intel PBNDKB

gas/ChangeLog:

* NEWS: Support Intel PBNDKB.
* config/tc-i386.c: Add pbndkb.
* doc/c-i386.texi: Document .pbndkb.
* testsuite/gas/i386/i386.exp: Add PBNDKB tests.
* testsuite/gas/i386/x86-64.exp: Ditto.
* testsuite/gas/i386/pbndkb-inval.l: New test.
* testsuite/gas/i386/pbndkb-inval.s: Ditto.
* testsuite/gas/i386/x86-64-pbndkb-intel.d: Ditto.
* testsuite/gas/i386/x86-64-pbndkb.d: Ditto.
* testsuite/gas/i386/x86-64-pbndkb.s: Ditto.

opcodes/ChangeLog:

* i386-dis.c (X86_64_0F01_REG_0_MOD_3_RM_7): New.
(X86_64_0F01_REG_0_MOD_3_RM_7_P_0): Ditto.
(prefix_table): Add PREFIX_0F01_REG_0_MOD_3_RM_7.
(x86_64_table): Add X86_64_0F01_REG_0_MOD_3_RM_7_P_0.
(rm_table): New entry for pbndkb.
* i386-gen.c (cpu_flag): Add PBNDKB.
* i386-init.h: Regenerated.
* i386-mnem.h: Ditto.
* i386-opc.h (CpuPBNDKB): New.
(i386_cpu_flags): Add cpupbndkb.
* i386-opc.tbl: Add PBNDKB instructions.
* i386-tbl.h: Regenerated.
17 files changed:
gas/NEWS
gas/config/tc-i386.c
gas/doc/c-i386.texi
gas/testsuite/gas/i386/i386.exp
gas/testsuite/gas/i386/pbndkb-inval.l [new file with mode: 0644]
gas/testsuite/gas/i386/pbndkb-inval.s [new file with mode: 0644]
gas/testsuite/gas/i386/x86-64-pbndkb-intel.d [new file with mode: 0644]
gas/testsuite/gas/i386/x86-64-pbndkb.d [new file with mode: 0644]
gas/testsuite/gas/i386/x86-64-pbndkb.s [new file with mode: 0644]
gas/testsuite/gas/i386/x86-64.exp
opcodes/i386-dis.c
opcodes/i386-gen.c
opcodes/i386-init.h
opcodes/i386-mnem.h
opcodes/i386-opc.h
opcodes/i386-opc.tbl
opcodes/i386-tbl.h