diff options
author | 2023-06-19 17:12:35 +0800 | |
---|---|---|
committer | 2023-07-13 13:38:46 +0000 | |
commit | a474f7d209e8bcc51d70a17d22f34f7574e0150c (patch) | |
tree | 161efe32bdd39bff3daedd84f256b4e41fa2e006 /compiler | |
parent | b8533856dddbc639aedbccedbfa05688bfe5c992 (diff) |
RISCV: [Codegen] Add VisitBooleanNot
Test: m test-art-host-gtest
Bug: 283082089
Signed-off-by: Lifang Xia <lifang_xia@linux.alibaba.com>
Signed-off-by: Wendong Wang <wangwd@xcvmbyte.com>
Change-Id: If7bfe77fb0ca20d5b52d9b1333276c3aa0ab7432
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/optimizing/code_generator_riscv64.cc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/compiler/optimizing/code_generator_riscv64.cc b/compiler/optimizing/code_generator_riscv64.cc index 0bf639ce74..a58378b501 100644 --- a/compiler/optimizing/code_generator_riscv64.cc +++ b/compiler/optimizing/code_generator_riscv64.cc @@ -1117,13 +1117,14 @@ void InstructionCodeGeneratorRISCV64::VisitBelowOrEqual(HBelowOrEqual* instructi } void LocationsBuilderRISCV64::VisitBooleanNot(HBooleanNot* instruction) { - UNUSED(instruction); - LOG(FATAL) << "Unimplemented"; + LocationSummary* locations = new (GetGraph()->GetAllocator()) LocationSummary(instruction); + locations->SetInAt(0, Location::RequiresRegister()); + locations->SetOut(Location::RequiresRegister(), Location::kNoOutputOverlap); } void InstructionCodeGeneratorRISCV64::VisitBooleanNot(HBooleanNot* instruction) { - UNUSED(instruction); - LOG(FATAL) << "Unimplemented"; + LocationSummary* locations = instruction->GetLocations(); + __ Xori(locations->Out().AsRegister<XRegister>(), locations->InAt(0).AsRegister<XRegister>(), 1); } void LocationsBuilderRISCV64::VisitBoundsCheck(HBoundsCheck* instruction) { |