diff options
| author | 2023-06-21 10:49:08 +0800 | |
|---|---|---|
| committer | 2023-07-04 14:29:41 +0000 | |
| commit | 2a1839f9cd08e3b30ebb41b7eac81a3a12efa966 (patch) | |
| tree | 9ca23e4ea8b8b3fa8efbca766e5ba54c760cf94d /compiler/optimizing | |
| parent | 552d19416ae22a9bc68eee5f057f3083d078397f (diff) | |
RISCV: [Codegen] Add VisitFloatConstant
Test: m test-art-host-gtest
Bug: 283082089
Change-Id: Idff29eced32d9387082560fa595bd3a2ed3f5abe
Diffstat (limited to 'compiler/optimizing')
| -rw-r--r-- | compiler/optimizing/code_generator_riscv64.cc | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/compiler/optimizing/code_generator_riscv64.cc b/compiler/optimizing/code_generator_riscv64.cc index 524abe63ba..7178561d7a 100644 --- a/compiler/optimizing/code_generator_riscv64.cc +++ b/compiler/optimizing/code_generator_riscv64.cc @@ -688,13 +688,14 @@ void InstructionCodeGeneratorRISCV64::VisitExit(HExit* instruction) { } void LocationsBuilderRISCV64::VisitFloatConstant(HFloatConstant* instruction) { - UNUSED(instruction); - LOG(FATAL) << "Unimplemented"; + LocationSummary* locations = + new (GetGraph()->GetAllocator()) LocationSummary(instruction, LocationSummary::kNoCall); + locations->SetOut(Location::ConstantLocation(instruction)); } -void InstructionCodeGeneratorRISCV64::VisitFloatConstant(HFloatConstant* instruction) { - UNUSED(instruction); - LOG(FATAL) << "Unimplemented"; +void InstructionCodeGeneratorRISCV64::VisitFloatConstant( + [[maybe_unused]] HFloatConstant* instruction) { + // Will be generated at use site. } void LocationsBuilderRISCV64::VisitGoto(HGoto* instruction) { |