summaryrefslogtreecommitdiff
path: root/compiler/optimizing/optimizing_compiler.cc
diff options
context:
space:
mode:
author Vladimir Marko <vmarko@google.com> 2023-09-05 14:53:24 +0000
committer Vladimir Marko <vmarko@google.com> 2023-09-08 09:33:47 +0000
commit9c11f32485128f9eacfd5900bf660d4d29dcf605 (patch)
tree5daca231af8e22c183b9054a3a089af9b4e7c678 /compiler/optimizing/optimizing_compiler.cc
parent2e8e10325440393351e3b9e743967a95bfb7f4b6 (diff)
riscv64: Fix VisitMin/-Max for FP args.
Test: testrunner.py --target --64 --optimizing -t 082 -t 083 Bug: 283082089 Change-Id: I35276dc86f00e0e4ee8208498e1cdc21b0ae510d
Diffstat (limited to 'compiler/optimizing/optimizing_compiler.cc')
-rw-r--r--compiler/optimizing/optimizing_compiler.cc10
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;