File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed
Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -109,7 +109,11 @@ riscv_tests: $(CVA6_BINARIES) $(ARA_BINARIES)
109109define rvtest_compile_template
110110TESTS_$(1 ) := $(addprefix bin/, $($(addsuffix _ara_tests, $1) ) )
111111
112+ ifeq ($(nr_lanes ) , 1)
113+ bin/$(1 ) -ara-% : $(TESTS_DIR ) /$(1 ) /1_lane_tests/% .$(2 ) $(RUNTIME_GCC ) linker_script
114+ else
112115bin/$(1 ) -ara-% : $(TESTS_DIR ) /$(1 ) /% .$(2 ) $(RUNTIME_GCC ) linker_script
116+ endif
113117 mkdir -p bin/
114118 $$(RISCV_CC_GCC ) -Iinclude -I$$(TESTS_DIR ) /macros/scalar -I$$(TESTS_DIR ) /macros/vector $$(RISCV_CCFLAGS_GCC ) $$(RISCV_LDFLAGS_GCC ) -o $$@ $$< $(RUNTIME_GCC ) -T$$(CURDIR ) /common/link.ld
115119 $$(RISCV_OBJDUMP ) $$(RISCV_OBJDUMP_FLAGS ) -D $$@ > $$@ .dump
@@ -119,7 +123,11 @@ endef
119123define rvtest_compile_template_c
120124TESTS_$(1 ) := $(addprefix bin/, $($(addsuffix _ara_tests, $1) ) )
121125
126+ ifeq ($(nr_lanes ) , 1)
127+ bin/$(1 ) -ara-% : $(TESTS_DIR ) /$(1 ) /1_lane_tests/% .$(2 ) $(RUNTIME_LLVM ) linker_script
128+ else
122129bin/$(1 ) -ara-% : $(TESTS_DIR ) /$(1 ) /% .$(2 ) $(RUNTIME_LLVM ) linker_script
130+ endif
123131 mkdir -p bin/
124132 $$(RISCV_CC ) -Iinclude -I$$(TESTS_DIR ) /macros/scalar -I$$(TESTS_DIR ) /macros/vector $$(RISCV_CCFLAGS ) $$(RISCV_LDFLAGS ) -o $$@ $$< $(RUNTIME_LLVM ) -T$$(CURDIR ) /common/link.ld
125133 $$(RISCV_OBJDUMP ) $$(RISCV_OBJDUMP_FLAGS ) -D $$@ > $$@ .dump
Original file line number Diff line number Diff line change @@ -8,7 +8,11 @@ include $(TESTS_DIR)/rv64um/Makefrag
88include $(TESTS_DIR ) /rv64ua/Makefrag
99include $(TESTS_DIR ) /rv64uf/Makefrag
1010include $(TESTS_DIR ) /rv64ud/Makefrag
11- include $(TESTS_DIR ) /rv64uv/Makefrag
11+ ifeq ($(nr_lanes ) , 1)
12+ include $(TESTS_DIR)/rv64uv/1_lane_tests/Makefrag
13+ else
14+ include $(TESTS_DIR)/rv64uv/Makefrag
15+ endif
1216include $(TESTS_DIR ) /rv64si/Makefrag
1317
1418rv64ui_ara_tests := $(addprefix rv64ui-ara-, $(rv64ui_sc_tests ) )
You can’t perform that action at this time.
0 commit comments