Fixing bad vector compare.
This commit is contained in:
parent
6c7e392088
commit
58c0ea9ac7
|
@ -2098,7 +2098,7 @@ int Translate_DID_SATURATE(TranslationContext& ctx, Instr* i) {
|
||||||
const vec128_t& src2 = ics.rf[i->src2_reg].v128; \
|
const vec128_t& src2 = ics.rf[i->src2_reg].v128; \
|
||||||
vec128_t& dest = ics.rf[i->dest_reg].v128; \
|
vec128_t& dest = ics.rf[i->dest_reg].v128; \
|
||||||
for (int n = 0; n < count; n++) { \
|
for (int n = 0; n < count; n++) { \
|
||||||
dest.value[n] = (type)src1.value[n] op (type)src2.value[n]; \
|
dest.value[n] = ((type)src1.value[n] op (type)src2.value[n]) ? (type)0xFFFFFFFF : 0; \
|
||||||
} \
|
} \
|
||||||
return IA_NEXT;
|
return IA_NEXT;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue