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, ...@@ -156,7 +156,7 @@ void LiftoffAssembler::LoadConstant(LiftoffRegister reg, WasmValue value,
case kF64: { case kF64: {
UseScratchRegisterScope temps(this); UseScratchRegisterScope temps(this);
Register scratch = temps.Acquire(); 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); MovInt64ToDouble(reg.fp(), scratch);
break; break;
} }
...@@ -322,6 +322,8 @@ void LiftoffAssembler::Load(LiftoffRegister dst, Register src_addr, ...@@ -322,6 +322,8 @@ void LiftoffAssembler::Load(LiftoffRegister dst, Register src_addr,
} }
break; break;
case LoadType::kS128Load: case LoadType::kS128Load:
bailout(kUnsupportedArchitecture, "SIMD");
break;
default: default:
UNREACHABLE(); 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