]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
x86: Add CpuGMISM2 and CpuGMICCS
authorMayShao-oc <MayShao-oc@zhaoxin.com>
Fri, 17 Jan 2025 14:33:59 +0000 (15:33 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 17 Jan 2025 14:33:59 +0000 (15:33 +0100)
commit7965f0a0031c360ef9ce8c4ff01f422dd43b99b1
treec3d719e839fdece2e7c1ebf3a4b9e795c6b0c726
parent48984d3da79f340b814e43b6576993ea1a927f5a
x86: Add CpuGMISM2 and CpuGMICCS

There are separate CPUID feature bits for SM2 and CCS instructions.
CCS is the acronym of Chinese Cipher System, it includes SM3 and SM4
instructions. This patch adds CpuGMISM2 and CpuGMICCS to replace CpuGMI on
corresponding instructions.

gas/ChangeLog:

* config/tc-i386.c: Add gmism2 and gmiccs to replace gmi.
* doc/c-i386.texi: Ditto.

opcodes/ChangeLog:

* i386-gen.c: Add GMISM2 and GMICCS to replace GMI.
* i386-opc.h (enum i386_cpu): Add  CpuGMISM2 and CpuGMICCS to
  replace CpuGMI.
* i386-opc.tbl: Replace GMI with GMISM2 on sm2 instruction. Replace GMI
  with GMICCS on sm3 and sm4 instructions.
* i386-tbl.h: Regenerated.
* i386-mnem.h: Ditto.
* i386-init.h: Ditto.
gas/config/tc-i386.c
gas/doc/c-i386.texi
opcodes/i386-gen.c
opcodes/i386-init.h
opcodes/i386-opc.h
opcodes/i386-opc.tbl
opcodes/i386-tbl.h