Skip to content

Commit

Permalink
riscv64: Make "C" extension default for assembler tests.
Browse files Browse the repository at this point in the history
Move responsibility for restricting the instruction set to
individual tests.

Test: m test-art-host-gtest
Bug: 283082089
Change-Id: I4a4f96df2d3b8fd1feae4b56cf13053b542ee732
  • Loading branch information
vmarko committed Feb 24, 2024
1 parent 501a89c commit b9e18d2
Show file tree
Hide file tree
Showing 4 changed files with 167 additions and 91 deletions.
4 changes: 2 additions & 2 deletions compiler/utils/assembler_test_base.h
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ class AssemblerTestBase : public testing::Test {
"--compile",
"-target",
"riscv64-linux-gnu",
"-march=rv64imafdv_zba_zbb",
"-march=rv64imafdcv_zba_zbb_zca_zcd_zcb",
// Force the assembler to fully emit branch instructions instead of leaving
// offsets unresolved with relocation information for the linker.
"-mno-relax"};
Expand Down Expand Up @@ -175,7 +175,7 @@ class AssemblerTestBase : public testing::Test {
"--no-print-imm-hex",
"--no-show-raw-insn",
// Disassemble Standard Extensions supported by the assembler.
"--mattr=+F,+D,+A,+V,+Zba,+Zbb",
"--mattr=+F,+D,+A,+C,+V,+Zba,+Zbb,+Zca,+Zcd,+Zcb",
"-M",
"no-aliases"};
default:
Expand Down
Loading

0 comments on commit b9e18d2

Please sign in to comment.