mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2025-06-10 17:57:58 -05:00
glasm: Fix moving U64 immediates to registers in GLASM
This commit is contained in:
@ -43,7 +43,8 @@ struct RegWrapper {
|
||||
RegWrapper(EmitContext& ctx, Value value)
|
||||
: reg_alloc{ctx.reg_alloc}, allocated{value.type != Type::Register} {
|
||||
if (allocated) {
|
||||
reg = value.type == Type::F64 ? reg_alloc.AllocLongReg() : reg_alloc.AllocReg();
|
||||
const bool is_long{value.type == Type::F64 || value.type == Type::U64};
|
||||
reg = is_long ? reg_alloc.AllocLongReg() : reg_alloc.AllocReg();
|
||||
} else {
|
||||
reg = Register{value};
|
||||
}
|
||||
|
Reference in New Issue
Block a user