simd_scalar_shift_by_immediate: Change UnallocatedEncoding() path in SaturatingShiftLeft to ReservedValue()
Strictly speaking, immh being zero is defined as reserved in the ARMv8 reference manual. This was just an error on my part when introducing the SQSHL immediate scalar variant.
This commit is contained in:
parent
b1b4487e4d
commit
7bc7042104
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ enum class FloatConversionDirection {
|
||||||
|
|
||||||
bool SaturatingShiftLeft(TranslatorVisitor& v, Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd, Signedness sign) {
|
bool SaturatingShiftLeft(TranslatorVisitor& v, Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd, Signedness sign) {
|
||||||
if (immh == 0b0000) {
|
if (immh == 0b0000) {
|
||||||
return v.UnallocatedEncoding();
|
return v.ReservedValue();
|
||||||
}
|
}
|
||||||
|
|
||||||
const size_t esize = 8U << Common::HighestSetBit(immh.ZeroExtend());
|
const size_t esize = 8U << Common::HighestSetBit(immh.ZeroExtend());
|
||||||
|
|
Loading…
Reference in a new issue