mirror of
https://git.suyu.dev/suyu/dynarmic.git
synced 2025-12-26 17:24:57 +01:00
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
1 changed files with 4 additions and 5 deletions
|
|
@ -9,15 +9,14 @@
|
|||
namespace Dynarmic::A64 {
|
||||
|
||||
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);
|
||||
IR::U32U64 operand2 = X(datasize, Rm);
|
||||
const IR::U32U64 operand1 = X(datasize, Rn);
|
||||
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);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue