2021-05-12 13:20:34 +03:00
|
|
|
TESTS_PATH = $(SRC_PATH)/tests/tcg/tricore
|
|
|
|
|
|
|
|
LDFLAGS = -T$(TESTS_PATH)/link.ld
|
|
|
|
ASFLAGS =
|
|
|
|
|
2021-05-12 13:20:36 +03:00
|
|
|
TESTS += test_abs.tst
|
2021-05-12 13:20:37 +03:00
|
|
|
TESTS += test_bmerge.tst
|
2021-05-12 13:20:38 +03:00
|
|
|
TESTS += test_clz.tst
|
2021-05-12 13:20:39 +03:00
|
|
|
TESTS += test_dvstep.tst
|
2021-05-12 13:20:40 +03:00
|
|
|
TESTS += test_fadd.tst
|
2021-05-12 13:20:41 +03:00
|
|
|
TESTS += test_fmul.tst
|
2021-05-12 13:20:42 +03:00
|
|
|
TESTS += test_ftoi.tst
|
2021-05-12 13:20:43 +03:00
|
|
|
TESTS += test_madd.tst
|
2021-05-12 13:20:36 +03:00
|
|
|
|
2021-05-12 13:20:34 +03:00
|
|
|
QEMU_OPTS += -M tricore_testboard -nographic -kernel
|
|
|
|
|
|
|
|
%.pS: $(TESTS_PATH)/%.S
|
|
|
|
$(HOST_CC) -E -o $@ $<
|
|
|
|
|
|
|
|
%.o: %.pS
|
|
|
|
$(AS) $(ASFLAGS) -o $@ $<
|
|
|
|
|
|
|
|
%.tst: %.o
|
|
|
|
$(LD) $(LDFLAGS) $< -o $@
|