Update top level floating point test Makefile to build all vectors and testfloat binaries

This commit is contained in:
Jordan Carlin 2024-09-20 16:28:05 -07:00
parent 766678d076
commit d7edeef79a
No known key found for this signature in database

View File

@ -1,34 +1,29 @@
# Jordan Carlin, jcarlin@hmc.edu, August 2024 # Jordan Carlin, jcarlin@hmc.edu, August 2024
# Testfloat vector Makefile for CORE-V-Wally # Floating Point Tests Makefile for CORE-V-Wally
# SPDX-License-Identifier: Apache-2.0 WITH SHL-2.1 # SPDX-License-Identifier: Apache-2.0 WITH SHL-2.1
SOFTFLOAT_DIR := ${WALLY}/addins/berkeley-softfloat-3/build/Linux-x86_64-GCC TESTFLOATS := testfloat/ieee/testfloat_gen testfloat/riscv/testfloat_gen
TESTFLOAT_DIR := ${WALLY}/addins/berkeley-testfloat-3/build/Linux-x86_64-GCC
.PHONY: all softfloat testfloat vectors combined_IF_vectors clean .PHONY: all vectors combined_IF_vectors testfloat clean
all: vectors combined_IF_vectors all: vectors combined_IF_vectors
softfloat: ${SOFTFLOAT_DIR}/softfloat.a vectors: ${TESTFLOATS}
testfloat: ${TESTFLOAT_DIR}/testfloat
vectors: testfloat
$(MAKE) -C ${WALLY}/tests/fp/vectors $(MAKE) -C ${WALLY}/tests/fp/vectors
combined_IF_vectors: ${WALLY}/tests/riscof/work/riscv-arch-test/rv32i_m/M/src vectors combined_IF_vectors: ${WALLY}/tests/riscof/work/riscv-arch-test/rv32i_m/M/src vectors
cd ${WALLY}/tests/fp/combined_IF_vectors \ cd ${WALLY}/tests/fp/combined_IF_vectors \
&& ./create_IF_vectors.sh && ./create_IF_vectors.sh
${TESTFLOATS}: testfloat
testfloat:
$(MAKE) -C testfloat
clean: clean:
$(MAKE) -C ${WALLY}/tests/fp/vectors clean $(MAKE) -C vectors clean
$(MAKE) -C testfloat clean
rm -f ${WALLY}/tests/fp/combined_IF_vectors/IF_vectors/*.tv rm -f ${WALLY}/tests/fp/combined_IF_vectors/IF_vectors/*.tv
${SOFTFLOAT_DIR}/softfloat.a:
$(MAKE) -C ${SOFTFLOAT_DIR}
${TESTFLOAT_DIR}/testfloat: ${SOFTFLOAT_DIR}/softfloat.a
$(MAKE) -C ${TESTFLOAT_DIR}
${WALLY}/tests/riscof/work/riscv-arch-test/rv32i_m/M/src: ${WALLY}/tests/riscof/work/riscv-arch-test/rv32i_m/M/src:
@$(error "riscv-arch-tests must be generated first. Run make from $$WALLY") @$(error "riscv-arch-tests must be generated first. Run make from $$WALLY")