mirror of
https://github.com/FEX-Emu/FEX.git
synced 2025-01-08 22:52:51 +00:00
Adds cvtsi2ss unit test to ensure proper 64bit->float conversion
This commit is contained in:
parent
4907bda639
commit
05ee4e6d7a
23
unittests/ASM/REP/F3_2A_2.asm
Normal file
23
unittests/ASM/REP/F3_2A_2.asm
Normal file
@ -0,0 +1,23 @@
|
||||
%ifdef CONFIG
|
||||
{
|
||||
"RegData": {
|
||||
"XMM0": ["0x414243444F800000", "0x5152535455565758"]
|
||||
}
|
||||
}
|
||||
%endif
|
||||
|
||||
mov rdx, 0xe0000000
|
||||
|
||||
mov rax, 0x4142434445464748
|
||||
mov [rdx + 8 * 0], rax
|
||||
mov rax, 0x5152535455565758
|
||||
mov [rdx + 8 * 1], rax
|
||||
|
||||
movapd xmm0, [rdx + 8 * 0]
|
||||
|
||||
; Ensures that a large "negative" 32bit value converts correctly in cvtsi2ss when treated as a 64bit value
|
||||
; Upper bits being zero
|
||||
mov rax, 0xFFFFFFFF
|
||||
cvtsi2ss xmm0, rax
|
||||
|
||||
hlt
|
Loading…
Reference in New Issue
Block a user