Skip to content

Commit

Permalink
Merge pull request #260 from icedland/viapadlock
Browse files Browse the repository at this point in the history
Update VIA `PADLOCK` instructions, add missing `XSHA512`
  • Loading branch information
wtfsck authored Feb 3, 2022
2 parents bfadd2a + 9857e63 commit eae7e3a
Show file tree
Hide file tree
Showing 146 changed files with 4,048 additions and 802 deletions.
2 changes: 1 addition & 1 deletion build/build-dotnet
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ new_func() {
generator_check() {
new_func "Run generator, verify no diff"

dotnet run -c $configuration -p "$root_dir/src/csharp/Intel/Generator/Generator.csproj"
dotnet run -c $configuration --project "$root_dir/src/csharp/Intel/Generator/Generator.csproj"
git diff --exit-code
}

Expand Down
4 changes: 4 additions & 0 deletions src/UnitTests/Intel/Decoder/Code.32Only.txt
Original file line number Diff line number Diff line change
Expand Up @@ -235,3 +235,7 @@ Cyrix_DEDE
Frinear
Ccs_hash_16
Ccs_encrypt_16
Via_undoc_F30FA6F0_16
Via_undoc_F30FA6F8_16
Xsha512_16
Xstore2_16
4 changes: 4 additions & 0 deletions src/UnitTests/Intel/Decoder/Code.64Only.txt
Original file line number Diff line number Diff line change
Expand Up @@ -716,3 +716,7 @@ MVEX_Vcvtfxpntps2dq_zmm_k1_zmmmt_imm8
MVEX_Undoc_zmm_k1_zmmmt_imm8_512_66_0F3A_W0_D0
MVEX_Undoc_zmm_k1_zmmmt_imm8_512_66_0F3A_W0_D1
MVEX_Vcvtfxpntpd2dq_zmm_k1_zmmmt_imm8
Via_undoc_F30FA6F0_64
Via_undoc_F30FA6F8_64
Xsha512_64
Xstore2_64
296 changes: 292 additions & 4 deletions src/UnitTests/Intel/Decoder/DecoderTest16.txt

Large diffs are not rendered by default.

295 changes: 292 additions & 3 deletions src/UnitTests/Intel/Decoder/DecoderTest32.txt

Large diffs are not rendered by default.

325 changes: 317 additions & 8 deletions src/UnitTests/Intel/Decoder/DecoderTest64.txt

Large diffs are not rendered by default.

12 changes: 12 additions & 0 deletions src/UnitTests/Intel/Encoder/OpCodeInfos.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4821,3 +4821,15 @@ MVEX_Vcvtfxpntps2dq_zmm_k1_zmmmt_imm8, Vcvtfxpntps2dq, Unknown, Unknown, MVEX, 6
MVEX_Undoc_zmm_k1_zmmmt_imm8_512_66_0F3A_W0_D0, Undoc, Unknown, Unknown, MVEX, 66, 0F3A, D0, MVEX.512.66.0F3A.W0 D0 /r ib, UNDOC zmm1 {k1}| zmm2/mt| imm8, dec-opt=KNC 64 cpl0 cpl1 cpl2 cpl3 L512 W0 op=zmm_reg;zmm_or_mem;imm8 save-restore tt=N1 mvex=Float32;None;0xFF;0xFF er sae k intel64 amd64 lm outside-smm in-smm outside-sgx in-sgx1 in-sgx2 outside-vmx-op in-vmx-root-op in-vmx-non-root-op outside-seam in-seam eh
MVEX_Undoc_zmm_k1_zmmmt_imm8_512_66_0F3A_W0_D1, Undoc, Unknown, Unknown, MVEX, 66, 0F3A, D1, MVEX.512.66.0F3A.W0 D1 /r ib, UNDOC zmm1 {k1}| zmm2/mt| imm8, dec-opt=KNC 64 cpl0 cpl1 cpl2 cpl3 L512 W0 op=zmm_reg;zmm_or_mem;imm8 save-restore tt=N1 mvex=Float32;None;0xFF;0xFF er sae k intel64 amd64 lm outside-smm in-smm outside-sgx in-sgx1 in-sgx2 outside-vmx-op in-vmx-root-op in-vmx-non-root-op outside-seam in-seam eh
MVEX_Vcvtfxpntpd2dq_zmm_k1_zmmmt_imm8, Vcvtfxpntpd2dq, Unknown, Unknown, MVEX, F2, 0F3A, E6, MVEX.512.F2.0F3A.W1 E6 /r ib, VCVTFXPNTPD2DQ zmm1 {k1}| Sf64(zmm2/mt)| imm8, dec-opt=KNC 64 cpl0 cpl1 cpl2 cpl3 L512 W1 op=zmm_reg;zmm_or_mem;imm8 tt=N1 mvex=Float64;Sf64;0x7;0xFF er sae k intel64 amd64 lm outside-smm in-smm outside-sgx in-sgx1 in-sgx2 outside-vmx-op in-vmx-root-op in-vmx-non-root-op outside-seam in-seam eh er-imm
Via_undoc_F30FA6F0_16, Undoc, Unknown, Unknown, legacy, F3, 0F, A6F0, a16 F3 0F A6 F0, UNDOC, 16 32 cpl0 cpl1 cpl2 cpl3 a16 save-restore intel16 intel32 amd16 amd32 rm pm v86 cm outside-smm in-smm outside-sgx in-sgx1 in-sgx2 outside-vmx-op in-vmx-root-op in-vmx-non-root-op outside-seam in-seam
Via_undoc_F30FA6F0_32, Undoc, Unknown, Unknown, legacy, F3, 0F, A6F0, a32 F3 0F A6 F0, UNDOC, 16 32 64 cpl0 cpl1 cpl2 cpl3 a32 save-restore intel16 intel32 intel64 amd16 amd32 amd64 rm pm v86 cm lm outside-smm in-smm outside-sgx in-sgx1 in-sgx2 outside-vmx-op in-vmx-root-op in-vmx-non-root-op outside-seam in-seam
Via_undoc_F30FA6F0_64, Undoc, Unknown, Unknown, legacy, F3, 0F, A6F0, a64 F3 0F A6 F0, UNDOC, 64 cpl0 cpl1 cpl2 cpl3 a64 save-restore intel64 amd64 lm outside-smm in-smm outside-sgx in-sgx1 in-sgx2 outside-vmx-op in-vmx-root-op in-vmx-non-root-op outside-seam in-seam
Via_undoc_F30FA6F8_16, Undoc, Unknown, Unknown, legacy, F3, 0F, A6F8, a16 F3 0F A6 F8, UNDOC, 16 32 cpl0 cpl1 cpl2 cpl3 a16 save-restore intel16 intel32 amd16 amd32 rm pm v86 cm outside-smm in-smm outside-sgx in-sgx1 in-sgx2 outside-vmx-op in-vmx-root-op in-vmx-non-root-op outside-seam in-seam
Via_undoc_F30FA6F8_32, Undoc, Unknown, Unknown, legacy, F3, 0F, A6F8, a32 F3 0F A6 F8, UNDOC, 16 32 64 cpl0 cpl1 cpl2 cpl3 a32 save-restore intel16 intel32 intel64 amd16 amd32 amd64 rm pm v86 cm lm outside-smm in-smm outside-sgx in-sgx1 in-sgx2 outside-vmx-op in-vmx-root-op in-vmx-non-root-op outside-seam in-seam
Via_undoc_F30FA6F8_64, Undoc, Unknown, Unknown, legacy, F3, 0F, A6F8, a64 F3 0F A6 F8, UNDOC, 64 cpl0 cpl1 cpl2 cpl3 a64 save-restore intel64 amd64 lm outside-smm in-smm outside-sgx in-sgx1 in-sgx2 outside-vmx-op in-vmx-root-op in-vmx-non-root-op outside-seam in-seam
Xsha512_16, Xsha512, Unknown, Unknown, legacy, F3, 0F, A6E0, a16 F3 0F A6 E0, XSHA512, 16 32 cpl0 cpl1 cpl2 cpl3 a16 intel16 intel32 amd16 amd32 rm pm v86 cm outside-smm in-smm outside-sgx in-sgx1 in-sgx2 outside-vmx-op in-vmx-root-op in-vmx-non-root-op outside-seam in-seam
Xsha512_32, Xsha512, Unknown, Unknown, legacy, F3, 0F, A6E0, a32 F3 0F A6 E0, XSHA512, 16 32 64 cpl0 cpl1 cpl2 cpl3 a32 intel16 intel32 intel64 amd16 amd32 amd64 rm pm v86 cm lm outside-smm in-smm outside-sgx in-sgx1 in-sgx2 outside-vmx-op in-vmx-root-op in-vmx-non-root-op outside-seam in-seam
Xsha512_64, Xsha512, Unknown, Unknown, legacy, F3, 0F, A6E0, a64 F3 0F A6 E0, XSHA512, 64 cpl0 cpl1 cpl2 cpl3 a64 intel64 amd64 lm outside-smm in-smm outside-sgx in-sgx1 in-sgx2 outside-vmx-op in-vmx-root-op in-vmx-non-root-op outside-seam in-seam
Xstore2_16, Xstore2, Unknown, Unknown, legacy, F3, 0F, A7F8, a16 F3 0F A7 F8, XSTORE2, 16 32 cpl0 cpl1 cpl2 cpl3 a16 intel16 intel32 amd16 amd32 rm pm v86 cm outside-smm in-smm outside-sgx in-sgx1 in-sgx2 outside-vmx-op in-vmx-root-op in-vmx-non-root-op outside-seam in-seam
Xstore2_32, Xstore2, Unknown, Unknown, legacy, F3, 0F, A7F8, a32 F3 0F A7 F8, XSTORE2, 16 32 64 cpl0 cpl1 cpl2 cpl3 a32 intel16 intel32 intel64 amd16 amd32 amd64 rm pm v86 cm lm outside-smm in-smm outside-sgx in-sgx1 in-sgx2 outside-vmx-op in-vmx-root-op in-vmx-non-root-op outside-seam in-seam
Xstore2_64, Xstore2, Unknown, Unknown, legacy, F3, 0F, A7F8, a64 F3 0F A7 F8, XSTORE2, 64 cpl0 cpl1 cpl2 cpl3 a64 intel64 amd64 lm outside-smm in-smm outside-sgx in-sgx1 in-sgx2 outside-vmx-op in-vmx-root-op in-vmx-non-root-op outside-seam in-seam
8 changes: 8 additions & 0 deletions src/UnitTests/Intel/Formatter/Fast/Test16_Default.txt
Original file line number Diff line number Diff line change
Expand Up @@ -518,3 +518,11 @@ pvalidate
serialize
xsusldtrk
xresldtrk
rep undoc
rep undoc
rep undoc
rep undoc
rep xsha512
rep xsha512
rep xstore2
rep xstore2
8 changes: 8 additions & 0 deletions src/UnitTests/Intel/Formatter/Fast/Test16_Inverted.txt
Original file line number Diff line number Diff line change
Expand Up @@ -518,3 +518,11 @@ pvalidate
serialize
xsusldtrk
xresldtrk
rep undoc
rep undoc
rep undoc
rep undoc
rep xsha512
rep xsha512
rep xstore2
rep xstore2
8 changes: 8 additions & 0 deletions src/UnitTests/Intel/Formatter/Fast/Test32_Default.txt
Original file line number Diff line number Diff line change
Expand Up @@ -729,3 +729,11 @@ rep ccs_hash
rep ccs_hash
rep ccs_encrypt
rep ccs_encrypt
rep undoc
rep undoc
rep undoc
rep undoc
rep xsha512
rep xsha512
rep xstore2
rep xstore2
8 changes: 8 additions & 0 deletions src/UnitTests/Intel/Formatter/Fast/Test32_Inverted.txt
Original file line number Diff line number Diff line change
Expand Up @@ -729,3 +729,11 @@ rep ccs_hash
rep ccs_hash
rep ccs_encrypt
rep ccs_encrypt
rep undoc
rep undoc
rep undoc
rep undoc
rep xsha512
rep xsha512
rep xstore2
rep xstore2
8 changes: 8 additions & 0 deletions src/UnitTests/Intel/Formatter/Fast/Test64_Default.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13005,3 +13005,11 @@ vpsubrsetbd zmm2,k6,zmm19{bbbb}
vpsubrsetbd zmm2,k6,zmm27{cccc}
vpsubrsetbd zmm2,k6,zmm3{dddd}
vpsubrsetbd zmm2,k6,zmm3
rep undoc
rep undoc
rep undoc
rep undoc
rep xsha512
rep xsha512
rep xstore2
rep xstore2
8 changes: 8 additions & 0 deletions src/UnitTests/Intel/Formatter/Fast/Test64_Inverted.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13005,3 +13005,11 @@ vpsubrsetbd zmm2, k6, zmm19{bbbb}
vpsubrsetbd zmm2, k6, zmm27{cccc}
vpsubrsetbd zmm2, k6, zmm3{dddd}
vpsubrsetbd zmm2, k6, zmm3
rep undoc
rep undoc
rep undoc
rep undoc
rep xsha512
rep xsha512
rep xstore2
rep xstore2
48 changes: 48 additions & 0 deletions src/UnitTests/Intel/Formatter/Gas/OptionsResult.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2068,6 +2068,10 @@ rep xcryptcfb
rep xcryptofb
rep ccs_hash
rep ccs_encrypt
rep undoc
rep undoc
rep xsha512
rep xstore2

repne insb %dx,(%rdi)
repne insw %dx,(%rdi)
Expand Down Expand Up @@ -2128,6 +2132,10 @@ rep xcryptcfb
rep xcryptofb
rep ccs_hash
rep ccs_encrypt
rep undoc
rep undoc
rep xsha512
rep xstore2

repne insb %dx,(%edi)
repne insw %dx,(%edi)
Expand Down Expand Up @@ -2183,6 +2191,10 @@ rep xcryptcfb
rep xcryptofb
rep ccs_hash
rep ccs_encrypt
rep undoc
rep undoc
rep xsha512
rep xstore2

repne insb %dx,(%di)
repne insw %dx,(%di)
Expand Down Expand Up @@ -2243,6 +2255,10 @@ rep xcryptcfb
rep xcryptofb
rep ccs_hash
rep ccs_encrypt
rep undoc
rep undoc
rep xsha512
rep xstore2

repne insb %dx,(%rdi)
repne insw %dx,(%rdi)
Expand Down Expand Up @@ -2303,6 +2319,10 @@ rep xcryptcfb
rep xcryptofb
rep ccs_hash
rep ccs_encrypt
rep undoc
rep undoc
rep xsha512
rep xstore2

repne insb %dx,(%edi)
repne insw %dx,(%edi)
Expand Down Expand Up @@ -2358,6 +2378,10 @@ rep xcryptcfb
rep xcryptofb
rep ccs_hash
rep ccs_encrypt
rep undoc
rep undoc
rep xsha512
rep xstore2

repne insb %dx,(%di)
repne insw %dx,(%di)
Expand Down Expand Up @@ -2418,6 +2442,10 @@ rep xcryptcfb
rep xcryptofb
rep ccs_hash
rep ccs_encrypt
rep undoc
rep undoc
rep xsha512
rep xstore2

repne insb %dx,(%rdi)
repne insw %dx,(%rdi)
Expand Down Expand Up @@ -2478,6 +2506,10 @@ rep xcryptcfb
rep xcryptofb
rep ccs_hash
rep ccs_encrypt
rep undoc
rep undoc
rep xsha512
rep xstore2

repne insb %dx,(%edi)
repne insw %dx,(%edi)
Expand Down Expand Up @@ -2533,6 +2565,10 @@ rep xcryptcfb
rep xcryptofb
rep ccs_hash
rep ccs_encrypt
rep undoc
rep undoc
rep xsha512
rep xstore2

repne insb %dx,(%di)
repne insw %dx,(%di)
Expand Down Expand Up @@ -2593,6 +2629,10 @@ rep xcryptcfb
rep xcryptofb
rep ccs_hash
rep ccs_encrypt
rep undoc
rep undoc
rep xsha512
rep xstore2

repnz insb %dx,(%rdi)
repnz insw %dx,(%rdi)
Expand Down Expand Up @@ -2653,6 +2693,10 @@ rep xcryptcfb
rep xcryptofb
rep ccs_hash
rep ccs_encrypt
rep undoc
rep undoc
rep xsha512
rep xstore2

repnz insb %dx,(%edi)
repnz insw %dx,(%edi)
Expand Down Expand Up @@ -2708,6 +2752,10 @@ rep xcryptcfb
rep xcryptofb
rep ccs_hash
rep ccs_encrypt
rep undoc
rep undoc
rep xsha512
rep xstore2

repnz insb %dx,(%di)
repnz insw %dx,(%di)
Expand Down
8 changes: 8 additions & 0 deletions src/UnitTests/Intel/Formatter/Gas/Test16_ForceSuffix.txt
Original file line number Diff line number Diff line change
Expand Up @@ -518,3 +518,11 @@ addr32 pvalidate
serialize
xsusldtrk
xresldtrk
rep undoc
addr32 rep undoc
rep undoc
addr32 rep undoc
rep xsha512
addr32 rep xsha512
rep xstore2
addr32 rep xstore2
8 changes: 8 additions & 0 deletions src/UnitTests/Intel/Formatter/Gas/Test16_NoSuffix.txt
Original file line number Diff line number Diff line change
Expand Up @@ -518,3 +518,11 @@ addr32 pvalidate
serialize
xsusldtrk
xresldtrk
rep undoc
addr32 rep undoc
rep undoc
addr32 rep undoc
rep xsha512
addr32 rep xsha512
rep xstore2
addr32 rep xstore2
8 changes: 8 additions & 0 deletions src/UnitTests/Intel/Formatter/Gas/Test32_ForceSuffix.txt
Original file line number Diff line number Diff line change
Expand Up @@ -729,3 +729,11 @@ rep ccs_hash
addr16 rep ccs_hash
rep ccs_encrypt
addr16 rep ccs_encrypt
addr16 rep undoc
rep undoc
addr16 rep undoc
rep undoc
addr16 rep xsha512
rep xsha512
addr16 rep xstore2
rep xstore2
8 changes: 8 additions & 0 deletions src/UnitTests/Intel/Formatter/Gas/Test32_NoSuffix.txt
Original file line number Diff line number Diff line change
Expand Up @@ -729,3 +729,11 @@ rep ccs_hash
addr16 rep ccs_hash
rep ccs_encrypt
addr16 rep ccs_encrypt
addr16 rep undoc
rep undoc
addr16 rep undoc
rep undoc
addr16 rep xsha512
rep xsha512
addr16 rep xstore2
rep xstore2
8 changes: 8 additions & 0 deletions src/UnitTests/Intel/Formatter/Gas/Test64_ForceSuffix.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13005,3 +13005,11 @@ vpsubrsetbd zmm19{bbbb}, k6, zmm2
vpsubrsetbd zmm27{cccc}, k6, zmm2
vpsubrsetbd zmm3{dddd}, k6, zmm2
vpsubrsetbd zmm3, k6, zmm2
addr32 rep undoc
rep undoc
addr32 rep undoc
rep undoc
addr32 rep xsha512
rep xsha512
addr32 rep xstore2
rep xstore2
8 changes: 8 additions & 0 deletions src/UnitTests/Intel/Formatter/Gas/Test64_NoSuffix.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13005,3 +13005,11 @@ vpsubrsetbd %zmm19{bbbb},%k6,%zmm2
vpsubrsetbd %zmm27{cccc},%k6,%zmm2
vpsubrsetbd %zmm3{dddd},%k6,%zmm2
vpsubrsetbd %zmm3,%k6,%zmm2
addr32 rep undoc
rep undoc
addr32 rep undoc
rep undoc
addr32 rep xsha512
rep xsha512
addr32 rep xstore2
rep xstore2
8 changes: 8 additions & 0 deletions src/UnitTests/Intel/Formatter/InstructionInfos16.txt
Original file line number Diff line number Diff line change
Expand Up @@ -518,3 +518,11 @@ F2 0F 01 FF, Pvalidatew
0F 01 E8, Serialize
F2 0F 01 E8, Xsusldtrk
F2 0F 01 E9, Xresldtrk
F3 0FA6 F0, Via_undoc_F30FA6F0_16
67 F3 0FA6 F0, Via_undoc_F30FA6F0_32
F3 0FA6 F8, Via_undoc_F30FA6F8_16
67 F3 0FA6 F8, Via_undoc_F30FA6F8_32
F3 0FA6 E0, Xsha512_16
67 F3 0FA6 E0, Xsha512_32
F3 0FA7 F8, Xstore2_16
67 F3 0FA7 F8, Xstore2_32
10 changes: 9 additions & 1 deletion src/UnitTests/Intel/Formatter/InstructionInfos32.txt
Original file line number Diff line number Diff line change
Expand Up @@ -644,7 +644,7 @@ F2 0F38F8 18, Enqcmd_r32_m512
64 67 0F01 FC, Clzerow
64 67 F3 0FAE F5, Umonitor_r16
F3 0FA6 C0, Montmul_32
67 F3 0FA6 C0, Montmul_16
67 F3 0FA6 C0, Montmul_16, NoInvalidCheck
F3 0FA6 C8, Xsha1_32
67 F3 0FA6 C8, Xsha1_16
F3 0FA6 D0, Xsha256_32
Expand Down Expand Up @@ -729,3 +729,11 @@ F3 0FA6 E8, Ccs_hash_32
67 F3 0FA6 E8, Ccs_hash_16
F3 0FA7 F0, Ccs_encrypt_32
67 F3 0FA7 F0, Ccs_encrypt_16
67 F3 0FA6 F0, Via_undoc_F30FA6F0_16
F3 0FA6 F0, Via_undoc_F30FA6F0_32
67 F3 0FA6 F8, Via_undoc_F30FA6F8_16
F3 0FA6 F8, Via_undoc_F30FA6F8_32
67 F3 0FA6 E0, Xsha512_16
F3 0FA6 E0, Xsha512_32
67 F3 0FA7 F8, Xstore2_16
F3 0FA7 F8, Xstore2_32
10 changes: 9 additions & 1 deletion src/UnitTests/Intel/Formatter/InstructionInfos64.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8260,7 +8260,7 @@ C4E3CD CF 10 A5, VEX_Vgf2p8affineinvqb_ymm_ymm_ymmm256_imm8
64 0F01 FC, Clzeroq
64 67 F3 0FAE F5, Umonitor_r32
64 F3 0FAE F5, Umonitor_r64
F3 0FA6 C0, Montmul_64
F3 0FA6 C0, Montmul_64, NoInvalidCheck
67 F3 0FA6 C0, Montmul_32
F3 0FA6 C8, Xsha1_64
67 F3 0FA6 C8, Xsha1_32
Expand Down Expand Up @@ -13005,3 +13005,11 @@ C4E379 3E D3 A5, VEX_KNC_Kextract_kr_r64_imm8, KNC
62 924968 6F D3, MVEX_Vpsubrsetbd_zmm_k1_kr_zmmmt, KNC
62 F24978 6F D3, MVEX_Vpsubrsetbd_zmm_k1_kr_zmmmt, KNC
62 F24988 6F D3, MVEX_Vpsubrsetbd_zmm_k1_kr_zmmmt, KNC
67 F3 0FA6 F0, Via_undoc_F30FA6F0_32
F3 0FA6 F0, Via_undoc_F30FA6F0_64
67 F3 0FA6 F8, Via_undoc_F30FA6F8_32
F3 0FA6 F8, Via_undoc_F30FA6F8_64
67 F3 0FA6 E0, Xsha512_32
F3 0FA6 E0, Xsha512_64
67 F3 0FA7 F8, Xstore2_32
F3 0FA7 F8, Xstore2_64
Loading

0 comments on commit eae7e3a

Please sign in to comment.