x86: SM4-NI VEX support

Add VEX-encoded SM4-NI instructions.

Signed-off-by: Tomasz Kantecki <tomasz.kantecki@intel.com>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
This commit is contained in:
Tomasz Kantecki 2023-01-13 16:21:41 +00:00 committed by H. Peter Anvin
parent 5cab6596bc
commit b0ab00b6a7
2 changed files with 7 additions and 0 deletions

View File

@ -114,6 +114,7 @@ if_("HRESET", "History reset");
if_("SMAP", "Supervisor Mode Access Prevention (SMAP)"); if_("SMAP", "Supervisor Mode Access Prevention (SMAP)");
if_("SHA512", "SHA512 instructions"); if_("SHA512", "SHA512 instructions");
if_("SM3", "SM3 instructions"); if_("SM3", "SM3 instructions");
if_("SM4", "SM4 instructions");
# Put these last to minimize their relevance # Put these last to minimize their relevance
if_("OBSOLETE", "Instruction removed from architecture"); if_("OBSOLETE", "Instruction removed from architecture");

View File

@ -3596,6 +3596,12 @@ VSM3MSG1 xmmreg,xmmreg,xmmreg [rvm: vex.nds.128.p0.0f38.w0
VSM3MSG2 xmmreg,xmmreg,xmmreg [rvm: vex.nds.128.66.0f38.w0 da /r] SM3,AVX,FUTURE VSM3MSG2 xmmreg,xmmreg,xmmreg [rvm: vex.nds.128.66.0f38.w0 da /r] SM3,AVX,FUTURE
VSM3RNDS2 xmmreg,xmmreg,xmmreg,imm8 [rvmi: vex.nds.128.66.0f3a.w0 de /r ib] SM3,AVX,FUTURE VSM3RNDS2 xmmreg,xmmreg,xmmreg,imm8 [rvmi: vex.nds.128.66.0f3a.w0 de /r ib] SM3,AVX,FUTURE
;# SM4
VSM4KEY4 xmmreg,xmmreg,xmmrm128 [rvm: vex.nds.128.f3.0f38.w0 da /r] SM4,AVX,FUTURE
VSM4KEY4 ymmreg,ymmreg,ymmrm128 [rvm: vex.nds.256.f3.0f38.w0 da /r] SM4,AVX,FUTURE
VSM4RNDS4 xmmreg,xmmreg,xmmrm128 [rvm: vex.nds.128.f2.0f38.w0 da /r] SM4,AVX,FUTURE
VSM4RNDS4 ymmreg,ymmreg,ymmrm128 [rvm: vex.nds.256.f2.0f38.w0 da /r] SM4,AVX,FUTURE
;# AVX no exception conversions ;# AVX no exception conversions
; Must precede AVX-512 versions ; Must precede AVX-512 versions
VBCSTNEBF16PS xmmreg,mem16 [rm: vex.128.f3.0f38.w0 b1 /r] AVXNECONVERT,FUTURE,LATEVEX,SW VBCSTNEBF16PS xmmreg,mem16 [rm: vex.128.f3.0f38.w0 b1 /r] AVXNECONVERT,FUTURE,LATEVEX,SW