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

ppc: [liftoff] fix floating point set condition

Change-Id: I7826df99d08cd8732fa1db0b1540457971428efa
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3097873Reviewed-by: 's avatarMilad Fa <mfarazma@redhat.com>
Commit-Queue: Junliang Yan <junyan@redhat.com>
Cr-Commit-Position: refs/heads/master@{#76317}
parent 47bcce5b
...@@ -1166,10 +1166,10 @@ void LiftoffAssembler::emit_i64_set_cond(LiftoffCondition liftoff_cond, ...@@ -1166,10 +1166,10 @@ void LiftoffAssembler::emit_i64_set_cond(LiftoffCondition liftoff_cond,
void LiftoffAssembler::emit_f32_set_cond(LiftoffCondition liftoff_cond, void LiftoffAssembler::emit_f32_set_cond(LiftoffCondition liftoff_cond,
Register dst, DoubleRegister lhs, Register dst, DoubleRegister lhs,
DoubleRegister rhs) { DoubleRegister rhs) {
fcmpu(lhs, rhs); fcmpu(lhs, rhs, cr7);
Label done; Label done;
mov(dst, Operand(1)); mov(dst, Operand(1));
b(liftoff::ToCondition(liftoff_cond), &done); b(liftoff::ToCondition(liftoff_cond), &done, cr7);
mov(dst, Operand::Zero()); mov(dst, Operand::Zero());
bind(&done); bind(&done);
} }
......
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