ppc: [liftoff] fix f32/f64 constant loading
Change-Id: I65a96957216856d334303968f954c035b355f547 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3097871 Reviewed-by: Milad Fa <mfarazma@redhat.com> Commit-Queue: Junliang Yan <junyan@redhat.com> Cr-Commit-Position: refs/heads/master@{#76315}
This commit is contained in:
parent
e607a9a59b
commit
22553aa4f8
@ -169,14 +169,14 @@ void LiftoffAssembler::LoadConstant(LiftoffRegister reg, WasmValue value,
|
||||
case kF32: {
|
||||
UseScratchRegisterScope temps(this);
|
||||
Register scratch = temps.Acquire();
|
||||
mov(scratch, Operand(value.to_f32_boxed().get_scalar()));
|
||||
mov(scratch, Operand(value.to_f32_boxed().get_bits()));
|
||||
MovIntToFloat(reg.fp(), scratch, ip);
|
||||
break;
|
||||
}
|
||||
case kF64: {
|
||||
UseScratchRegisterScope temps(this);
|
||||
Register scratch = temps.Acquire();
|
||||
mov(scratch, Operand(value.to_f64_boxed().get_scalar()));
|
||||
mov(scratch, Operand(value.to_f64_boxed().get_bits()));
|
||||
MovInt64ToDouble(reg.fp(), scratch);
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user