diff options
author | Haochen Jiang <haochen.jiang@intel.com> | 2023-07-24 11:09:57 +0800 |
---|---|---|
committer | Haochen Jiang <haochen.jiang@intel.com> | 2023-07-27 20:52:46 +0800 |
commit | 2bced1684b3636d4c7607b7ec57e34d2d71b74cb (patch) | |
tree | 6cf61ac248321b80cb1acb5b58402a2b9112569d /opcodes/i386-opc.h | |
parent | c55ba32b7a7a3cf2ba8a42310f1c3d0b090af3e2 (diff) | |
download | binutils-2bced1684b3636d4c7607b7ec57e34d2d71b74cb.zip binutils-2bced1684b3636d4c7607b7ec57e34d2d71b74cb.tar.gz binutils-2bced1684b3636d4c7607b7ec57e34d2d71b74cb.tar.bz2 |
Support Intel SM4
gas/ChangeLog:
* NEWS: Support Intel SM4.
* config/tc-i386.c: Add sm4.
* doc/c-i386.texi: Document .sm4.
* testsuite/gas/i386/i386.exp: Run SM4 tests.
* testsuite/gas/i386/x86-64.exp: Ditto.
* testsuite/gas/i386/sm4-intel.d: Add SM4 tests.
* testsuite/gas/i386/sm4.d: Ditto.
* testsuite/gas/i386/sm4.s: Ditto.
* testsuite/gas/i386/x86-64-sm4-intel.d: Ditto.
* testsuite/gas/i386/x86-64-sm4.d: Ditto.
* testsuite/gas/i386/x86-64-sm4.s: Ditto.
opcodes/ChangeLog:
* i386-dis.c (prefix_table): Add SM4 instructions.
* i386-gen.c (isa_dependencies): Add SM4.
(cpu_flags): Ditto.
* i386-init.h: Regenerated.
* i386-mnem.h: Ditto.
* i386-opc.h (CpuSM4): New.
(i386_cpu_flags): Add cpusm4.
* i386-opc.tbl: Add SM4 instructions.
* i386-tbl.h: Regenerated.
Diffstat (limited to 'opcodes/i386-opc.h')
-rw-r--r-- | opcodes/i386-opc.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/opcodes/i386-opc.h b/opcodes/i386-opc.h index 256ed53..68cbfaa 100644 --- a/opcodes/i386-opc.h +++ b/opcodes/i386-opc.h @@ -179,6 +179,8 @@ enum CpuSHA512, /* SM3 instructions required. */ CpuSM3, + /* SM4 instructions required. */ + CpuSM4, /* CLFLUSHOPT instruction required */ CpuClflushOpt, /* XSAVES/XRSTORS instruction required */ @@ -409,6 +411,7 @@ typedef union i386_cpu_flags unsigned int cpusha:1; unsigned int cpusha512:1; unsigned int cpusm3:1; + unsigned int cpusm4:1; unsigned int cpuclflushopt:1; unsigned int cpuxsaves:1; unsigned int cpuxsavec:1; |