diff --git a/src/frontend/A64/translate/impl/data_processing_addsub.cpp b/src/frontend/A64/translate/impl/data_processing_addsub.cpp index 947b61d8..34059040 100644 --- a/src/frontend/A64/translate/impl/data_processing_addsub.cpp +++ b/src/frontend/A64/translate/impl/data_processing_addsub.cpp @@ -224,11 +224,7 @@ bool TranslatorVisitor::ADDS_ext(bool sf, Reg Rm, Imm<3> option, Imm<3> imm3, Re ir.SetNZCV(ir.NZCVFrom(result)); - if (Rd == Reg::SP) { - SP(datasize, result); - } else { - X(datasize, Rd, result); - } + X(datasize, Rd, result); return true; } @@ -264,11 +260,7 @@ bool TranslatorVisitor::SUBS_ext(bool sf, Reg Rm, Imm<3> option, Imm<3> imm3, Re ir.SetNZCV(ir.NZCVFrom(result)); - if (Rd == Reg::SP) { - SP(datasize, result); - } else { - X(datasize, Rd, result); - } + X(datasize, Rd, result); return true; }