Support APX pushp/popp
authorCui, Lili <lili.cui@intel.com>
Thu, 28 Dec 2023 01:06:41 +0000 (01:06 +0000)
committerCui, Lili <lili.cui@intel.com>
Thu, 28 Dec 2023 11:45:14 +0000 (11:45 +0000)
commitac32c879b26af580e29ecaa152e3d9d999f34caa
tree274bbb688eb74fc7a6ef96aed0a8df435dfa17db
parent08a98d4c1331cc726c8c76c14d9db34d6f0aadd6
Support APX pushp/popp

gas/ChangeLog:

* config/tc-i386.c (process_operands): Handle "PUSHP/POPP requires
rex2.w == 1."
* testsuite/gas/i386/x86-64.exp: Add new test for PUSHP/POPP.
* testsuite/gas/i386/x86-64-apx-pushp-popp-intel.d: New test.
* testsuite/gas/i386/x86-64-apx-pushp-popp-inval.l: Ditto.
* testsuite/gas/i386/x86-64-apx-pushp-popp-inval.s: Ditto.
* testsuite/gas/i386/x86-64-apx-pushp-popp.d: Ditto.
* testsuite/gas/i386/x86-64-apx-pushp-popp.s: Ditto.

opcodes/ChangeLog:

* i386-dis.c (putop): print pushp and popp.
* i386-opc.tbl: Added new insns.
* i386-init.h : Regenerated.
* i386-mnem.h : Regenerated.
* i386-tbl.h: Regenerated.
12 files changed:
gas/config/tc-i386.c
gas/testsuite/gas/i386/x86-64-apx-pushp-popp-intel.d [new file with mode: 0644]
gas/testsuite/gas/i386/x86-64-apx-pushp-popp-inval.l [new file with mode: 0644]
gas/testsuite/gas/i386/x86-64-apx-pushp-popp-inval.s [new file with mode: 0644]
gas/testsuite/gas/i386/x86-64-apx-pushp-popp.d [new file with mode: 0644]
gas/testsuite/gas/i386/x86-64-apx-pushp-popp.s [new file with mode: 0644]
gas/testsuite/gas/i386/x86-64.exp
opcodes/i386-dis.c
opcodes/i386-mnem.h
opcodes/i386-opc.h
opcodes/i386-opc.tbl
opcodes/i386-tbl.h