unittests/ASM: Test pf2iw with values falling outside of 16-bit range

This commit is contained in:
Simon Scherer committed 2026-08-27 09:29:40 +02:00
1 parent 0814780c2f
commit cac8785aca
1 file changed
+19
+19
View File
@@ -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