Support Intel SM4
authorHaochen Jiang <haochen.jiang@intel.com>
Mon, 24 Jul 2023 03:09:57 +0000 (11:09 +0800)
committerHaochen Jiang <haochen.jiang@intel.com>
Thu, 27 Jul 2023 12:52:46 +0000 (20:52 +0800)
commit2bced1684b3636d4c7607b7ec57e34d2d71b74cb
tree6cf61ac248321b80cb1acb5b58402a2b9112569d
parentc55ba32b7a7a3cf2ba8a42310f1c3d0b090af3e2
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.
18 files changed:
gas/NEWS
gas/config/tc-i386.c
gas/doc/c-i386.texi
gas/testsuite/gas/i386/i386.exp
gas/testsuite/gas/i386/sm4-intel.d [new file with mode: 0644]
gas/testsuite/gas/i386/sm4.d [new file with mode: 0644]
gas/testsuite/gas/i386/sm4.s [new file with mode: 0644]
gas/testsuite/gas/i386/x86-64-sm4-intel.d [new file with mode: 0644]
gas/testsuite/gas/i386/x86-64-sm4.d [new file with mode: 0644]
gas/testsuite/gas/i386/x86-64-sm4.s [new file with mode: 0644]
gas/testsuite/gas/i386/x86-64.exp
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