FEX/unittests/ASM/REP/F3_5F.asm
2020-03-06 09:08:50 +02:00

60 lines
1.4 KiB
NASM

%ifdef CONFIG
{
"RegData": {
"XMM0": ["0x5152535440800000", "0x5152535455565758"],
"XMM1": ["0x5152535440800000", "0x5152535455565758"],
"XMM2": ["0x5152535441800000", "0x5152535455565758"],
"XMM3": ["0x5152535441800000", "0x5152535455565758"],
"XMM4": ["0x5152535441c80000", "0x5152535455565758"],
"XMM5": ["0x5152535441c80000", "0x5152535455565758"]
},
"MemoryRegions": {
"0x100000000": "4096"
}
}
%endif
mov rdx, 0xe0000000
mov rax, 0x515253543f800000 ; 1.0
mov [rdx + 8 * 0], rax
mov rax, 0x5152535455565758
mov [rdx + 8 * 1], rax
mov rax, 0x5152535440800000 ; 4.0
mov [rdx + 8 * 2], rax
mov rax, 0x5152535455565758
mov [rdx + 8 * 3], rax
mov rax, 0x5152535441100000 ; 9.0
mov [rdx + 8 * 4], rax
mov rax, 0x5152535455565758
mov [rdx + 8 * 5], rax
mov rax, 0x5152535441800000 ; 16.0
mov [rdx + 8 * 6], rax
mov rax, 0x5152535455565758
mov [rdx + 8 * 7], rax
mov rax, 0x5152535441c80000 ; 25.0
mov [rdx + 8 * 8], rax
mov rax, 0x5152535455565758
mov [rdx + 8 * 9], rax
movapd xmm0, [rdx + 8 * 0]
movapd xmm1, [rdx + 8 * 2]
movapd xmm2, [rdx + 8 * 4]
movapd xmm3, [rdx + 8 * 6]
movapd xmm4, [rdx + 8 * 8]
movapd xmm5, [rdx + 8 * 8]
movapd xmm6, [rdx + 8 * 8]
movapd xmm7, [rdx + 8 * 8]
maxss xmm0, xmm1 ; 1.0 <op> 4.0
maxss xmm2, xmm3 ; 9.0 <op> 16.0
maxss xmm4, [rdx + 8 * 0] ; 25.0 <op> 1.0
maxss xmm5, [rdx + 8 * 2] ; 25.0 <op> 4.0
hlt