frontend: Fix MSVC narrowing conversion warning for VectorSignedSaturatedShiftLeftUnsigned argument
This commit is contained in:
parent
f4747aea10
commit
882490b372
3 changed files with 3 additions and 3 deletions
|
@ -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.VectorSignedSaturatedShiftLeftUnsigned(esize, reg_m, shift_amount);
|
||||
return ir.VectorSignedSaturatedShiftLeftUnsigned(esize, reg_m, static_cast<u8>(shift_amount));
|
||||
}
|
||||
if (op) {
|
||||
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.VectorSignedSaturatedShiftLeftUnsigned(esize, operand, shift_amount);
|
||||
return v.ir.VectorSignedSaturatedShiftLeftUnsigned(esize, operand, static_cast<u8>(shift_amount));
|
||||
}();
|
||||
|
||||
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.VectorSignedSaturatedShiftLeftUnsigned(esize, operand, shift);
|
||||
return v.ir.VectorSignedSaturatedShiftLeftUnsigned(esize, operand, static_cast<u8>(shift));
|
||||
}();
|
||||
|
||||
v.V(datasize, Vd, result);
|
||||
|
|
Loading…
Reference in a new issue