Commit 21241465 authored by Liu Yu's avatar Liu Yu Committed by V8 LUCI CQ

[loong64][mips64] Fix LoadSpillAddress on big endian

Besides, fix a wrong instruction in mips64.

Port commit ac0cedf1

Change-Id: I3c8c73eacc2aa1b5f4a583a0187261455917ad7a
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3892526
Auto-Submit: Liu Yu <liuyu@loongson.cn>
Commit-Queue: Zhao Jiazhong <zhaojiazhong-hf@loongson.cn>
Reviewed-by: 's avatarZhao Jiazhong <zhaojiazhong-hf@loongson.cn>
Cr-Commit-Position: refs/heads/main@{#83176}
parent b0bc960a
......@@ -1012,7 +1012,8 @@ void LiftoffAssembler::FillStackSlotsWithZero(int start, int size) {
}
}
void LiftoffAssembler::LoadSpillAddress(Register dst, int offset) {
void LiftoffAssembler::LoadSpillAddress(Register dst, int offset,
ValueKind /* kind */) {
Sub_d(dst, fp, Operand(offset));
}
......
......@@ -1109,8 +1109,9 @@ void LiftoffAssembler::FillStackSlotsWithZero(int start, int size) {
}
}
void LiftoffAssembler::LoadSpillAddress(Register dst, int offset) {
Dsub(dst, fp, Operand(offset));
void LiftoffAssembler::LoadSpillAddress(Register dst, int offset,
ValueKind /* kind */) {
Dsubu(dst, fp, Operand(offset));
}
void LiftoffAssembler::emit_i64_clz(LiftoffRegister dst, LiftoffRegister src) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment