Commit ffb48c94 authored by Junliang Yan's avatar Junliang Yan Committed by Commit Bot

Fix mips build failures

Change-Id: I70ca729c7afea4d4fa6e24f833c3757d3b0b1a63
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2562681Reviewed-by: 's avatarZhao Jiazhong <zhaojiazhong-hf@loongson.cn>
Commit-Queue: Junliang Yan <junyan@redhat.com>
Cr-Commit-Position: refs/heads/master@{#71446}
parent 907693d5
......@@ -1498,7 +1498,7 @@ void LiftoffAssembler::emit_i64_eqz(Register dst, LiftoffRegister src) {
}
namespace liftoff {
inline Condition cond_make_unsigned(Condition cond) {
inline LiftoffCondition cond_make_unsigned(LiftoffCondition cond) {
switch (cond) {
case kSignedLessThan:
return kUnsignedLessThan;
......@@ -1523,7 +1523,8 @@ void LiftoffAssembler::emit_i64_set_cond(LiftoffCondition liftoff_cond,
// For signed i64 comparisons, we still need to use unsigned comparison for
// the low word (the only bit carrying signedness information is the MSB in
// the high word).
Condition unsigned_cond = liftoff::cond_make_unsigned(cond);
Condition unsigned_cond =
liftoff::ToCondition(liftoff::cond_make_unsigned(liftoff_cond));
Register tmp = dst;
if (liftoff::IsRegInRegPair(lhs, dst) || liftoff::IsRegInRegPair(rhs, dst)) {
......@@ -1552,7 +1553,7 @@ void LiftoffAssembler::emit_i64_set_cond(LiftoffCondition liftoff_cond,
namespace liftoff {
inline FPUCondition ConditionToConditionCmpFPU(Condition condition,
inline FPUCondition ConditionToConditionCmpFPU(LiftoffCondition condition,
bool* predicate) {
switch (condition) {
case kEqual:
......@@ -1601,7 +1602,8 @@ void LiftoffAssembler::emit_f32_set_cond(LiftoffCondition liftoff_cond,
TurboAssembler::li(dst, 1);
bool predicate;
FPUCondition fcond = liftoff::ConditionToConditionCmpFPU(cond, &predicate);
FPUCondition fcond =
liftoff::ConditionToConditionCmpFPU(liftoff_cond, &predicate);
TurboAssembler::CompareF32(fcond, lhs, rhs);
if (predicate) {
TurboAssembler::LoadZeroIfNotFPUCondition(dst);
......@@ -1631,7 +1633,8 @@ void LiftoffAssembler::emit_f64_set_cond(LiftoffCondition liftoff_cond,
TurboAssembler::li(dst, 1);
bool predicate;
FPUCondition fcond = liftoff::ConditionToConditionCmpFPU(cond, &predicate);
FPUCondition fcond =
liftoff::ConditionToConditionCmpFPU(liftoff_cond, &predicate);
TurboAssembler::CompareF64(fcond, lhs, rhs);
if (predicate) {
TurboAssembler::LoadZeroIfNotFPUCondition(dst);
......
......@@ -1393,7 +1393,7 @@ void LiftoffAssembler::emit_i64_set_cond(LiftoffCondition liftoff_cond,
namespace liftoff {
inline FPUCondition ConditionToConditionCmpFPU(Condition condition,
inline FPUCondition ConditionToConditionCmpFPU(LiftoffCondition condition,
bool* predicate) {
switch (condition) {
case kEqual:
......@@ -1462,7 +1462,8 @@ void LiftoffAssembler::emit_f32_set_cond(LiftoffCondition liftoff_cond,
TurboAssembler::li(dst, 1);
bool predicate;
FPUCondition fcond = liftoff::ConditionToConditionCmpFPU(cond, &predicate);
FPUCondition fcond =
liftoff::ConditionToConditionCmpFPU(liftoff_cond, &predicate);
TurboAssembler::CompareF32(fcond, lhs, rhs);
if (predicate) {
TurboAssembler::LoadZeroIfNotFPUCondition(dst);
......@@ -1492,7 +1493,8 @@ void LiftoffAssembler::emit_f64_set_cond(LiftoffCondition liftoff_cond,
TurboAssembler::li(dst, 1);
bool predicate;
FPUCondition fcond = liftoff::ConditionToConditionCmpFPU(cond, &predicate);
FPUCondition fcond =
liftoff::ConditionToConditionCmpFPU(liftoff_cond, &predicate);
TurboAssembler::CompareF64(fcond, lhs, rhs);
if (predicate) {
TurboAssembler::LoadZeroIfNotFPUCondition(dst);
......
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