]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
x86: Support x86 Zhaoxin PadLock XMODX instructions
authorMayShao-oc <MayShao-oc@zhaoxin.com>
Fri, 7 Feb 2025 09:31:42 +0000 (10:31 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 7 Feb 2025 09:31:42 +0000 (10:31 +0100)
commita5626289a6292b851f949d64df5927234737bd71
tree9ca05791a36720812058bd58efb79a912d85af49
parentd958b412375693865bcc2365a687b1e3218c99b0
x86: Support x86 Zhaoxin PadLock XMODX instructions

The CPUID EDX bit[28] indicates its enablement, and it includes REP
XMODEXP and REP MONTMUL2. XMODX stands for modular exponentiation, it indicates
the support of modular exponentiation feature, both REP XMODEXP and
REP MONTMUL2 use it.

gas/ChangeLog:

* NEWS: Support Zhaoxin PadLock XMODX instructions.
* config/tc-i386.c (add_branch_prefix_frag_p): Don't add prefix to
PadLockXMODX instructions.
(output_insn): Handle PadLockXMODX instructions.
* doc/c-i386.texi: Document PadLockXMODX.
* testsuite/gas/i386/i386.exp: Add PadLockXMODX test.
* testsuite/gas/i386/padlockxmodx.d: Ditto.
* testsuite/gas/i386/padlockxmodx.s: Ditto.

opcodes/ChangeLog:

* i386-dis.c: Add PadLockXMODX.
* i386-gen.c: Ditto
* i386-opc.h (CpuPadLockXMODX): New.
* i386-opc.tbl: Add Zhaoxin PadLock XMODX instructions.
* i386-tbl.h: Regenerated.
* i386-mnem.h: Ditto.
* i386-init.h: Ditto.
13 files changed:
gas/NEWS
gas/config/tc-i386.c
gas/doc/c-i386.texi
gas/testsuite/gas/i386/i386.exp
gas/testsuite/gas/i386/padlockxmodx.d [new file with mode: 0644]
gas/testsuite/gas/i386/padlockxmodx.s [new file with mode: 0644]
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