diff options
Diffstat (limited to 'compiler/optimizing/optimizing_compiler.cc')
-rw-r--r-- | compiler/optimizing/optimizing_compiler.cc | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/compiler/optimizing/optimizing_compiler.cc b/compiler/optimizing/optimizing_compiler.cc index 911a429d0b..0829bc2912 100644 --- a/compiler/optimizing/optimizing_compiler.cc +++ b/compiler/optimizing/optimizing_compiler.cc @@ -777,6 +777,8 @@ static bool CanAssembleGraphForRiscv64(HGraph* graph) { case HInstruction::kMul: case HInstruction::kNeg: case HInstruction::kNot: + case HInstruction::kMin: + case HInstruction::kMax: case HInstruction::kInvokeVirtual: case HInstruction::kInvokeInterface: case HInstruction::kCurrentMethod: @@ -792,14 +794,6 @@ static bool CanAssembleGraphForRiscv64(HGraph* graph) { return false; } break; - case HInstruction::kMin: - case HInstruction::kMax: - if (DataType::IsFloatingPointType(it.Current()->GetType())) { - // FIXME(riscv64): If one of the operands is NaN and the other is not, riscv64 - // FMIN/FMAX yield the non-NaN operand but we want the result to be the NaN operand. - return false; - } - break; default: // Unimplemented instruction. return false; |