data_processing_conditional_select: Make variables const where applicable
Makes CSEL's function consistent with all of the others.
This commit is contained in:
parent
c82fa5ec5a
commit
ed797e6540
@ -9,15 +9,14 @@
|
|||||||
namespace Dynarmic::A64 {
|
namespace Dynarmic::A64 {
|
||||||
|
|
||||||
bool TranslatorVisitor::CSEL(bool sf, Reg Rm, Cond cond, Reg Rn, Reg Rd) {
|
bool TranslatorVisitor::CSEL(bool sf, Reg Rm, Cond cond, Reg Rn, Reg Rd) {
|
||||||
size_t datasize = sf ? 64 : 32;
|
const size_t datasize = sf ? 64 : 32;
|
||||||
|
|
||||||
IR::U32U64 operand1 = X(datasize, Rn);
|
const IR::U32U64 operand1 = X(datasize, Rn);
|
||||||
IR::U32U64 operand2 = X(datasize, Rm);
|
const IR::U32U64 operand2 = X(datasize, Rm);
|
||||||
|
|
||||||
IR::U32U64 result = ir.ConditionalSelect(cond, operand1, operand2);
|
const IR::U32U64 result = ir.ConditionalSelect(cond, operand1, operand2);
|
||||||
|
|
||||||
X(datasize, Rd, result);
|
X(datasize, Rd, result);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user