mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-06 10:00:16 +02:00
unittests/ASM: Test pf2iw with values falling outside of 16-bit range
This commit is contained in:
1 parent
0814780c2f
commit
cac8785aca
1 file changed
+19
@@ -0,0 +1,19 @@
|
||||
%ifdef CONFIG
|
||||
{
|
||||
"RegData": {
|
||||
"MM0": "0xFFFF800000007FFF"
|
||||
},
|
||||
"HostFeatures": ["3DNOW"]
|
||||
}
|
||||
%endif
|
||||
|
||||
; +100000.0f > INT16_MAX -> saturate to 0x00007FFF
|
||||
; -100000.0f < INT16_MIN -> saturate to 0xFFFF8000
|
||||
pf2iw mm0, [rel data1]
|
||||
|
||||
hlt
|
||||
|
||||
align 8
|
||||
data1:
|
||||
dd 0x47C35000 ; +100000.0f
|
||||
dd 0xC7C35000 ; -100000.0f
|
||||
Reference in new issue
Block a user