From b9e18d2ed06e2868a9e36374a18affa1e46bada5 Mon Sep 17 00:00:00 2001 From: Vladimir Marko Date: Wed, 21 Feb 2024 16:52:49 +0000 Subject: riscv64: Make "C" extension default for assembler tests. Move responsibility for restricting the instruction set to individual tests. Test: m test-art-host-gtest Bug: 283082089 Change-Id: I4a4f96df2d3b8fd1feae4b56cf13053b542ee732 --- compiler/utils/assembler_test_base.h | 4 ++-- 1 file changed, 2 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 c147217b3d..c5345130b3 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=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"}; @@ -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: -- cgit v1.2.3-59-g8ed1b