Commit 065fa73a authored by Zhao Jiazhong's avatar Zhao Jiazhong Committed by Commit Bot

[mips64][liftoff] Fix converting u32 to intptr

emit_u32_to_intptr should zero-extend the low 32 bits of the src.

Bug: v8:10925
Change-Id: I48135da054d5f30d7aa4d67918c839debc7cdb2f
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2418031Reviewed-by: 's avatarClemens Backes <clemensb@chromium.org>
Commit-Queue: Zhao Jiazhong <zhaojiazhong-hf@loongson.cn>
Cr-Commit-Position: refs/heads/master@{#70024}
parent b24d8de1
......@@ -919,7 +919,7 @@ I64_SHIFTOP_I(shr, dsrl)
#undef I64_SHIFTOP_I
void LiftoffAssembler::emit_u32_to_intptr(Register dst, Register src) {
addu(dst, src, zero_reg);
Dext(dst, src, 0, 32);
}
void LiftoffAssembler::emit_f32_neg(DoubleRegister dst, DoubleRegister 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