[CPU/X64] Preserve NaN bit during float->double, double->float conversion

Probably this should be moved to ppc_emit_memory level instead of being x86-64 specific

Was AI used in this change: Yes
This commit is contained in:
Gliniak
2026-06-17 12:35:26 +02:00
committed by Radosław Gliński
parent 9781a75a22
commit 9588ce244d
3 changed files with 42 additions and 2 deletions

View File

@@ -1113,6 +1113,8 @@ static const vec128_t xmm_consts[] = {
/* XMMInt127 */ vec128i(0x7Fu),
/* XMM2To32 */ vec128f(0x1.0p32f),
/* XMMFloatInf */ vec128i(0x7f800000),
/* XMMDoubleInf */
vec128i(0x00000000u, 0x7FF00000u, 0x00000000u, 0x7FF00000u),
/* XMMIntsToBytes*/
v128_setr_bytes(0, 4, 8, 12, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80,