mirror of
https://github.com/azahar-emu/dynarmic
synced 2025-11-07 07:29:59 +01:00
frontend: Fix MSVC narrowing conversion warning for VectorSignedSaturatedShiftLeftUnsigned argument
This commit is contained in:
parent
f4747aea10
commit
882490b372
@ -236,7 +236,7 @@ bool TranslatorVisitor::asimd_VQSHL(bool U, bool D, size_t imm6, size_t Vd, bool
|
|||||||
return ir.VectorUnsignedSaturatedShiftLeft(esize, reg_m, shift_vec);
|
return ir.VectorUnsignedSaturatedShiftLeft(esize, reg_m, shift_vec);
|
||||||
}
|
}
|
||||||
|
|
||||||
return ir.VectorSignedSaturatedShiftLeftUnsigned(esize, reg_m, shift_amount);
|
return ir.VectorSignedSaturatedShiftLeftUnsigned(esize, reg_m, static_cast<u8>(shift_amount));
|
||||||
}
|
}
|
||||||
if (op) {
|
if (op) {
|
||||||
return ir.VectorSignedSaturatedShiftLeft(esize, reg_m, shift_vec);
|
return ir.VectorSignedSaturatedShiftLeft(esize, reg_m, shift_vec);
|
||||||
|
|||||||
@ -56,7 +56,7 @@ bool SaturatingShiftLeft(TranslatorVisitor& v, Imm<4> immh, Imm<3> immb, Vec Vn,
|
|||||||
return v.ir.VectorUnsignedSaturatedShiftLeft(esize, operand, shift);
|
return v.ir.VectorUnsignedSaturatedShiftLeft(esize, operand, shift);
|
||||||
}
|
}
|
||||||
|
|
||||||
return v.ir.VectorSignedSaturatedShiftLeftUnsigned(esize, operand, shift_amount);
|
return v.ir.VectorSignedSaturatedShiftLeftUnsigned(esize, operand, static_cast<u8>(shift_amount));
|
||||||
}();
|
}();
|
||||||
|
|
||||||
v.ir.SetQ(Vd, result);
|
v.ir.SetQ(Vd, result);
|
||||||
|
|||||||
@ -182,7 +182,7 @@ bool SaturatingShiftLeft(TranslatorVisitor& v, bool Q, Imm<4> immh, Imm<3> immb,
|
|||||||
return v.ir.VectorUnsignedSaturatedShiftLeft(esize, operand, shift_vec);
|
return v.ir.VectorUnsignedSaturatedShiftLeft(esize, operand, shift_vec);
|
||||||
}
|
}
|
||||||
|
|
||||||
return v.ir.VectorSignedSaturatedShiftLeftUnsigned(esize, operand, shift);
|
return v.ir.VectorSignedSaturatedShiftLeftUnsigned(esize, operand, static_cast<u8>(shift));
|
||||||
}();
|
}();
|
||||||
|
|
||||||
v.V(datasize, Vd, result);
|
v.V(datasize, Vd, result);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user