Support Intel WRMSRNS
authorHu, Lin1 <lin1.hu@intel.com>
Tue, 1 Nov 2022 02:50:14 +0000 (10:50 +0800)
committerCui,Lili <lili.cui@intel.com>
Wed, 2 Nov 2022 01:19:24 +0000 (09:19 +0800)
commit941f083324fe012bbb66015324f689afeac6f9be
treecb8452825f25f20413511331cb5e1956a168456e
parent75f8266aba00d410ad9a5f82ed46ecffafed1766
Support Intel WRMSRNS

gas/ChangeLog:

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

opcodes/ChangeLog:

* i386-dis.c (PREFIX_0F01_REG_0_MOD_3_RM_6): New.
(prefix_table): Add PREFIX_0F01_REG_0_MOD_3_RM_6.
(rm_table): New entry for wrmsrns.
* i386-gen.c (cpu_flag_init): Add CPU_WRMSRNS_FLAGS
and CPU_ANY_WRMSRNS_FLAGS.
(cpu_flags): Add CpuWRMSRNS.
        * i386-init.h: Regenerated.
        * i386-opc.h (CpuWRMSRNS): New.
(i386_cpu_flags): Add cpuwrmsrns.
        * i386-opc.tbl: Add WRMSRNS instructions.
        * i386-tbl.h: Regenerated.
15 files changed:
gas/NEWS
gas/config/tc-i386.c
gas/doc/c-i386.texi
gas/testsuite/gas/i386/i386.exp
gas/testsuite/gas/i386/wrmsrns-intel.d [new file with mode: 0644]
gas/testsuite/gas/i386/wrmsrns.d [new file with mode: 0644]
gas/testsuite/gas/i386/wrmsrns.s [new file with mode: 0644]
gas/testsuite/gas/i386/x86-64-wrmsrns-intel.d [new file with mode: 0644]
gas/testsuite/gas/i386/x86-64-wrmsrns.d [new file with mode: 0644]
opcodes/i386-dis.c
opcodes/i386-gen.c
opcodes/i386-init.h
opcodes/i386-opc.h
opcodes/i386-opc.tbl
opcodes/i386-tbl.h