asimd_load_store_structures: VST1 undef correction

This commit is contained in:
MerryMage 2020-07-04 09:18:34 +01:00
parent 4ba1f8b9e7
commit df477c46c2

View file

@ -252,7 +252,7 @@ bool ArmTranslatorVisitor::v8_VST_single(bool D, Reg n, size_t Vd, size_t sz, si
if (nelem == 1 && inc == 2) { if (nelem == 1 && inc == 2) {
return UndefinedInstruction(); return UndefinedInstruction();
} }
if (nelem == 1 && (a != 0b00 && a != 0b11)) { if (nelem == 1 && sz == 2 && (a != 0b00 && a != 0b11)) {
return UndefinedInstruction(); return UndefinedInstruction();
} }
if (nelem == 2 && Common::Bit<1>(a)) { if (nelem == 2 && Common::Bit<1>(a)) {