2021-05-12 12:20:34 +02:00
|
|
|
TESTS_PATH = $(SRC_PATH)/tests/tcg/tricore
|
|
|
|
|
|
|
|
LDFLAGS = -T$(TESTS_PATH)/link.ld
|
|
|
|
ASFLAGS =
|
|
|
|
|
2021-05-12 12:20:36 +02:00
|
|
|
TESTS += test_abs.tst
|
2021-05-12 12:20:37 +02:00
|
|
|
TESTS += test_bmerge.tst
|
2021-05-12 12:20:38 +02:00
|
|
|
TESTS += test_clz.tst
|
2021-05-12 12:20:39 +02:00
|
|
|
TESTS += test_dvstep.tst
|
2021-05-12 12:20:40 +02:00
|
|
|
TESTS += test_fadd.tst
|
2021-05-12 12:20:41 +02:00
|
|
|
TESTS += test_fmul.tst
|
2021-05-12 12:20:42 +02:00
|
|
|
TESTS += test_ftoi.tst
|
2021-05-12 12:20:43 +02:00
|
|
|
TESTS += test_madd.tst
|
2021-05-12 12:20:44 +02:00
|
|
|
TESTS += test_msub.tst
|
2021-05-12 12:20:45 +02:00
|
|
|
TESTS += test_muls.tst
|
2021-05-12 12:20:36 +02:00
|
|
|
|
2021-05-12 12:20:34 +02: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 $@
|