aboutsummaryrefslogtreecommitdiff
path: root/opcodes/i386-gen.c
diff options
context:
space:
mode:
authorMayShao-oc <MayShao-oc@zhaoxin.com>2025-01-10 08:44:22 +0100
committerJan Beulich <jbeulich@suse.com>2025-01-10 08:44:22 +0100
commit69007bf141b0244368513e2de7d9fb74be23629c (patch)
tree54cd23540adcc5c02f4bc4836191d959d4058286 /opcodes/i386-gen.c
parent3f4bbf3c060e888299c4cc14eff52059921bed93 (diff)
downloadbinutils-69007bf141b0244368513e2de7d9fb74be23629c.zip
binutils-69007bf141b0244368513e2de7d9fb74be23629c.tar.gz
binutils-69007bf141b0244368513e2de7d9fb74be23629c.tar.bz2
x86: Support x86 Zhaoxin PadLockRNG2 instruction
This patch adds support for Zhaoxin PadLock RNG2 instruction, the CPUID EDX bit[23] indicates its enablement, it includes REP XRNG2 instruction. gas/ChangeLog: * NEWS: Support Zhaoxin PadLock RNG2 instruction. * config/tc-i386.c (add_branch_prefix_frag_p): Don't add prefix to PadLock RNG2 instruction. (output_insn): Handle PadLock RNG2 instruction. * doc/c-i386.texi: Document PadLock RNG2. * testsuite/gas/i386/i386.exp: Add PadLock RNG2 test. * testsuite/gas/i386/padlock_rng2.d: Ditto. * testsuite/gas/i386/padlock_rng2.s: Ditto. opcodes/ChangeLog: * i386-dis.c: Add PadLockRNG2. * i386-gen.c: Ditto * i386-opc.h (CpuPadLockRNG2): New. * i386-opc.tbl: Add Zhaoxin PadLock RNG2 instruction. * i386-tbl.h: Regenerated. * i386-mnem.h: Ditto. * i386-init.h: Ditto.
Diffstat (limited to 'opcodes/i386-gen.c')
-rw-r--r--opcodes/i386-gen.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/opcodes/i386-gen.c b/opcodes/i386-gen.c
index 8252a1b..60aa8dd 100644
--- a/opcodes/i386-gen.c
+++ b/opcodes/i386-gen.c
@@ -291,6 +291,8 @@ static const dependency isa_dependencies[] =
"64" },
{ "APX_F",
"XSAVE|64" },
+ { "PadLockRNG2",
+ "PadLock" },
};
/* This array is populated as process_i386_initializers() walks cpu_flags[]. */
@@ -345,6 +347,7 @@ static bitfield cpu_flags[] =
BITFIELD (3dnowA),
BITFIELD (PadLock),
BITFIELD (GMI),
+ BITFIELD (PadLockRNG2),
BITFIELD (SVME),
BITFIELD (VMX),
BITFIELD (SMX),