FEX/unittests/ASM/H0F38/sha1nexte.asm
Ryan Houdek edad24479b unittests: Support skipping unit tests based on host feature support
For these unit tests we no longer need to put them in the disabled tests
file. Instead it will be skipped if the host doesn't support the feature
required.
2022-08-14 20:04:26 -07:00

28 lines
657 B
NASM

%ifdef CONFIG
{
"RegData": {
"XMM1": ["0x6868C3F3AAED56E0", "0xD7DD078194E6E6DE"],
"XMM2": ["0x6868C3F3AAED56E0", "0xF0FCE9E294E6E6DE"]
},
"HostFeatures": ["SHA"]
}
%endif
lea rdx, [rel .data]
movaps xmm1, [rdx + 16 * 0]
movaps xmm2, [rdx + 16 * 1]
; XMM1 is expected to contain the same value as XMM2
; but with the top 32-bit word set to an equivalent
; of XMM2[127:96] + (XMM1[127:96] ROL 30)
sha1nexte xmm1, xmm2
hlt
align 16
.data:
db 0xe0, 0xfc, 0x2b, 0xa1, 0x06, 0x4f, 0x6c, 0xa7, 0x0f, 0x06, 0x6a, 0x1e, 0x7f, 0x76, 0x80, 0x9b
db 0xe0, 0x56, 0xed, 0xaa, 0xf3, 0xc3, 0x68, 0x68, 0xde, 0xe6, 0xe6, 0x94, 0xe2, 0xe9, 0xfc, 0xf0