1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 20:27:45 +00:00

LibJS/JIT: Expand Add fast path to double & i32 combinations

Co-authored-by: Stephan Vedder <vedder@mbits.info>
This commit is contained in:
Simon Wanner 2023-11-10 09:05:56 +01:00 committed by Andreas Kling
parent d91b376393
commit 5edab2679c
2 changed files with 26 additions and 28 deletions

View file

@ -878,6 +878,11 @@ struct X86_64Assembler {
emit8(0x81);
emit_modrm_slash(0, dst);
emit32(src.offset_or_immediate);
} else if (dst.type == Operand::Type::FReg && src.type == Operand::Type::FReg) {
emit8(0xf2);
emit8(0x0f);
emit8(0x58);
emit_modrm_rm(dst, src);
} else {
VERIFY_NOT_REACHED();
}