From df477c46c230ebef9e3f4a5edc0301f40c66f437 Mon Sep 17 00:00:00 2001 From: MerryMage Date: Sat, 4 Jul 2020 09:18:34 +0100 Subject: [PATCH] asimd_load_store_structures: VST1 undef correction --- src/frontend/A32/translate/impl/asimd_load_store_structures.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontend/A32/translate/impl/asimd_load_store_structures.cpp b/src/frontend/A32/translate/impl/asimd_load_store_structures.cpp index 3c678162..87e01999 100644 --- a/src/frontend/A32/translate/impl/asimd_load_store_structures.cpp +++ b/src/frontend/A32/translate/impl/asimd_load_store_structures.cpp @@ -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) { return UndefinedInstruction(); } - if (nelem == 1 && (a != 0b00 && a != 0b11)) { + if (nelem == 1 && sz == 2 && (a != 0b00 && a != 0b11)) { return UndefinedInstruction(); } if (nelem == 2 && Common::Bit<1>(a)) {