From b1a0d105523f17449f8d41c44f8a714cb1b31902 Mon Sep 17 00:00:00 2001 From: Vladimir Marko Date: Thu, 17 Aug 2023 09:53:57 +0000 Subject: riscv64: Add support for Zba and Zbb extensions. Test: m test-art-host-gtest Test: Manually add calls to emit these instructions after UNIMP in JNI assembler's `DeliverPendingException()` and then `m dump-oat` and inspect the output. Bug: 283082089 Change-Id: I4807d0b214e7896544dd74349e0637a1e37fc1bf --- compiler/utils/assembler_test_base.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'compiler/utils/assembler_test_base.h') diff --git a/compiler/utils/assembler_test_base.h b/compiler/utils/assembler_test_base.h index 47ce8e65ae..6f836d3718 100644 --- a/compiler/utils/assembler_test_base.h +++ b/compiler/utils/assembler_test_base.h @@ -147,7 +147,7 @@ class AssemblerTestBase : public testing::Test { "--compile", "-target", "riscv64-linux-gnu", - "-march=rv64imafd", + "-march=rv64imafd_zba_zbb", // Force the assembler to fully emit branch instructions instead of leaving // offsets unresolved with relocation information for the linker. "-mno-relax"}; @@ -174,7 +174,8 @@ class AssemblerTestBase : public testing::Test { "--disassemble", "--no-print-imm-hex", "--no-show-raw-insn", - "--mattr=+F,+D,+A", // Disassemble "F", "D" and "A" Standard Extensions. + // Disassemble Standard Extensions supported by the assembler. + "--mattr=+F,+D,+A,+Zba,+Zbb", "-M", "no-aliases"}; default: -- cgit v1.2.3-59-g8ed1b