emit_arm64_data_processing: Fix MostSignificantWord

This commit is contained in:
Merry 2022-07-25 22:49:44 +01:00 committed by merry
parent 9b09acee47
commit 2dce8ea5a8

View file

@ -137,7 +137,7 @@ void EmitIR<IR::Opcode::MostSignificantWord>(oaknut::CodeGenerator& code, EmitCo
auto Xoperand = ctx.reg_alloc.ReadX(args[0]);
RegAlloc::Realize(Wresult, Xoperand);
code.LSL(Wresult->toX(), Xoperand, 32);
code.LSR(Wresult->toX(), Xoperand, 32);
}
template<>