Commit c5faf5ba authored by Junliang Yan's avatar Junliang Yan Committed by V8 LUCI CQ

ppc: [liftoff] fix fp64 and simd handling

Change-Id: I3d75f2e5fdb9c43b4795dee80377725318ee271f
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3075122Reviewed-by: 's avatarMilad Fa <mfarazma@redhat.com>
Commit-Queue: Junliang Yan <junyan@redhat.com>
Cr-Commit-Position: refs/heads/master@{#76120}
parent e7d8e978
......@@ -156,7 +156,7 @@ void LiftoffAssembler::LoadConstant(LiftoffRegister reg, WasmValue value,
case kF64: {
UseScratchRegisterScope temps(this);
Register scratch = temps.Acquire();
mov(scratch, Operand(value.to_f32_boxed().get_scalar()));
mov(scratch, Operand(value.to_f64_boxed().get_scalar()));
MovInt64ToDouble(reg.fp(), scratch);
break;
}
......@@ -322,6 +322,8 @@ void LiftoffAssembler::Load(LiftoffRegister dst, Register src_addr,
}
break;
case LoadType::kS128Load:
bailout(kUnsupportedArchitecture, "SIMD");
break;
default:
UNREACHABLE();
}
......
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