feat: add SET_GPR_ZE32 macro for zero-extending loads with unsigned semantics

This commit is contained in:
Ran-j
2026-09-02 17:41:14 -03:00
parent 6560a37b8b
commit 08dc217818
+11
View File
@@ -758,6 +758,17 @@ static inline void Ps2SetGprLow64(R5900Context *ctx, int reg, __m128i new_low)
} \
} while (0)
#define SET_GPR_ZE32(ctx_ptr, reg_idx, val) \
do \
{ \
if ((reg_idx) != 0) \
{ \
__m128i _newVal = _mm_cvtsi64_si128((int64_t)(uint32_t)(val)); \
Ps2SetGprLow64(ctx_ptr, reg_idx, _newVal); \
} \
} while (0)
#define SET_GPR_S32(ctx_ptr, reg_idx, val) \
do \
{ \