Add AMD znver4 processor support
authorTejas Joshi <TejasSanjay.Joshi@amd.com>
Tue, 15 Nov 2022 16:26:37 +0000 (21:56 +0530)
committerH.J. Lu <hjl.tools@gmail.com>
Tue, 15 Nov 2022 18:07:02 +0000 (10:07 -0800)
commitb0e8fa7ff0dc9a32ff71df0e895aa7fb5089fcfa
tree6a0f801be0b037087fc7a45033a4bb927ab4aad1
parent7e21379963c8be351a03693ce64d0a597ea0dbd7
Add AMD znver4 processor support

2022-09-28  Tejas Joshi <TejasSanjay.Joshi@amd.com>

gas/

        * config/tc-i386.c (cpu_arch): Add znver4 ARCH and rmpquery SUBARCH.
        (md_assemble): Expand comment before swap_operands() with rmpquery.
        * doc/c-i386.texi: Add znver4.
        * testsuite/gas/i386/arch-14-1.d: New.
        * testsuite/gas/i386/arch-14-1.s: New.
        * testsuite/gas/i386/arch-14-znver4.d: New.
        * testsuite/gas/i386/i386.exp: Add new znver4 test cases.
        * testsuite/gas/i386/rmpquery.d: New.
        * testsuite/gas/i386/rmpquery.s: New.
        * testsuite/gas/i386/x86-64-arch-4-1.d: New.
        * testsuite/gas/i386/x86-64-arch-4-1.s: New.
        * testsuite/gas/i386/x86-64-arch-4-znver4.d: New.

opcodes/

        * i386-dis.c (x86_64_table): Add rmpquery.
        * i386-gen.c (cpu_flag_init): Add CPU_ZNVER4_FLAGS and
        CPU_RMPQUERY_FLAGS.
        (cpu_flags): Add CpuRMPQUERY.
        * i386-opc.h (enum): Add CpuRMPQUERY.
        (i386_cpu_flags): Add cpurmpquery.
        * i386-opc.tbl: Add rmpquery insn.
        * i386-init.h: Re-generated.
        * i386-tbl.h: Re-generated.
17 files changed:
gas/config/tc-i386.c
gas/doc/c-i386.texi
gas/testsuite/gas/i386/arch-14-1.d [new file with mode: 0644]
gas/testsuite/gas/i386/arch-14-1.s [new file with mode: 0644]
gas/testsuite/gas/i386/arch-14-znver4.d [new file with mode: 0644]
gas/testsuite/gas/i386/i386.exp
gas/testsuite/gas/i386/rmpquery.d [new file with mode: 0644]
gas/testsuite/gas/i386/rmpquery.s [new file with mode: 0644]
gas/testsuite/gas/i386/x86-64-arch-4-1.d [new file with mode: 0644]
gas/testsuite/gas/i386/x86-64-arch-4-1.s [new file with mode: 0644]
gas/testsuite/gas/i386/x86-64-arch-4-znver4.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