mirror of
https://github.com/openhwgroup/cvw
synced 2025-02-11 06:05:49 +00:00
Update top level floating point test Makefile to build all vectors and testfloat binaries
This commit is contained in:
parent
766678d076
commit
d7edeef79a
@ -1,34 +1,29 @@
|
||||
# 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
|
||||
|
||||
SOFTFLOAT_DIR := ${WALLY}/addins/berkeley-softfloat-3/build/Linux-x86_64-GCC
|
||||
TESTFLOAT_DIR := ${WALLY}/addins/berkeley-testfloat-3/build/Linux-x86_64-GCC
|
||||
TESTFLOATS := testfloat/ieee/testfloat_gen testfloat/riscv/testfloat_gen
|
||||
|
||||
.PHONY: all softfloat testfloat vectors combined_IF_vectors clean
|
||||
.PHONY: all vectors combined_IF_vectors testfloat clean
|
||||
|
||||
all: vectors combined_IF_vectors
|
||||
|
||||
softfloat: ${SOFTFLOAT_DIR}/softfloat.a
|
||||
|
||||
testfloat: ${TESTFLOAT_DIR}/testfloat
|
||||
|
||||
vectors: testfloat
|
||||
vectors: ${TESTFLOATS}
|
||||
$(MAKE) -C ${WALLY}/tests/fp/vectors
|
||||
|
||||
combined_IF_vectors: ${WALLY}/tests/riscof/work/riscv-arch-test/rv32i_m/M/src vectors
|
||||
cd ${WALLY}/tests/fp/combined_IF_vectors \
|
||||
&& ./create_IF_vectors.sh
|
||||
|
||||
${TESTFLOATS}: testfloat
|
||||
|
||||
testfloat:
|
||||
$(MAKE) -C testfloat
|
||||
|
||||
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
|
||||
|
||||
${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:
|
||||
@$(error "riscv-arch-tests must be generated first. Run make from $$WALLY")
|
||||
|
Loading…
Reference in New Issue
Block a user