sradx, vcfsx, vcfux.
This commit is contained in:
@@ -1071,6 +1071,15 @@ uint32_t IntCode_VECTOR_CONVERT_I2F(IntCodeState& ics, const IntCode* i) {
|
||||
dest.f4[3] = (float)(int32_t)src1.i4[3];
|
||||
return IA_NEXT;
|
||||
}
|
||||
uint32_t IntCode_VECTOR_CONVERT_I2F_U(IntCodeState& ics, const IntCode* i) {
|
||||
const vec128_t& src1 = ics.rf[i->src1_reg].v128;
|
||||
vec128_t& dest = ics.rf[i->dest_reg].v128;
|
||||
dest.f4[0] = (float)(uint32_t)src1.i4[0];
|
||||
dest.f4[1] = (float)(uint32_t)src1.i4[1];
|
||||
dest.f4[2] = (float)(uint32_t)src1.i4[2];
|
||||
dest.f4[3] = (float)(uint32_t)src1.i4[3];
|
||||
return IA_NEXT;
|
||||
}
|
||||
int Translate_VECTOR_CONVERT_I2F(TranslationContext& ctx, Instr* i) {
|
||||
return DispatchToC(ctx, i, IntCode_VECTOR_CONVERT_I2F);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user