diff options
author | 2023-08-17 09:53:57 +0000 | |
---|---|---|
committer | 2023-08-21 06:52:16 +0000 | |
commit | b1a0d105523f17449f8d41c44f8a714cb1b31902 (patch) | |
tree | c25fa599187f3bef559e48c0750081a9d3f5464b /compiler/utils/assembler_test_base.h | |
parent | 5655ec289c3ffd389a02108e2e601b16a9dedbd4 (diff) |
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
Diffstat (limited to 'compiler/utils/assembler_test_base.h')
-rw-r--r-- | compiler/utils/assembler_test_base.h | 5 |
1 files changed, 3 insertions, 2 deletions
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: |