Alex Bennée <alex.ben...@linaro.org> writes: > Emilio G. Cota <c...@braap.org> writes: > >> This will allow us to run correctness tests against our >> FP implementation. The test can be run in two modes (called >> "testers"): host and soft. With the former we check the results >> and FP flags on the host machine against the model. >> With the latter we check QEMU's fpu primitives against the >> model. Note that in soft mode we are not instantiating any >> particular CPU (hence the HW_POISON_H hack to avoid macro poisoning); >> for that we need to run the test in host mode under QEMU. > <snip> > > So with the attached patch and my proposed cross build we can now get: > <snip> > --- a/tests/tcg/Makefile > +++ b/tests/tcg/Makefile > @@ -24,6 +24,9 @@ > VPATH = $(SRC_PATH)/tests/tcg/multiarch > TEST_SRCS = $(wildcard $(SRC_PATH)/tests/tcg/multiarch/*.c) > > +VPATH += $(SRC_PATH)/tests/fp > +TEST_SRCS += $(wildcard $(SRC_PATH)/tests/fp/*.c) > + > VPATH += $(SRC_PATH)/tests/tcg/$(ARCH) > TEST_SRCS += $(wildcard $(SRC_PATH)/tests/tcg/$(ARCH)/*.c)
It also needs: fp-test: LDFLAGS+=-lm -- Alex Bennée