mirror of
https://github.com/FEX-Emu/FEX.git
synced 2025-02-02 20:44:30 +00:00
edad24479b
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.
28 lines
657 B
NASM
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
|