1TESTS_PATH = $(SRC_PATH)/tests/tcg/tricore 2ASM_TESTS_PATH = $(TESTS_PATH)/asm 3C_TESTS_PATH = $(TESTS_PATH)/c 4 5LDFLAGS = -T$(TESTS_PATH)/link.ld --mcpu=tc162 6ASFLAGS = -mtc162 7CFLAGS = -mtc162 -c 8 9TESTS += test_abs.asm.tst 10TESTS += test_bmerge.asm.tst 11TESTS += test_clz.asm.tst 12TESTS += test_dextr.asm.tst 13TESTS += test_dvstep.asm.tst 14TESTS += test_fadd.asm.tst 15TESTS += test_fmul.asm.tst 16TESTS += test_ftoi.asm.tst 17TESTS += test_imask.asm.tst 18TESTS += test_insert.asm.tst 19TESTS += test_ld_bu.asm.tst 20TESTS += test_ld_h.asm.tst 21TESTS += test_madd.asm.tst 22TESTS += test_msub.asm.tst 23TESTS += test_muls.asm.tst 24 25TESTS += test_boot_to_main.c.tst 26 27QEMU_OPTS += -M tricore_testboard -cpu tc27x -nographic -kernel 28 29%.pS: $(ASM_TESTS_PATH)/%.S 30 $(HOST_CC) -E -o $@ $< 31 32%.o: %.pS 33 $(AS) $(ASFLAGS) -o $@ $< 34 35%.asm.tst: %.o 36 $(LD) $(LDFLAGS) $< -o $@ 37 38crt0-tc2x.o: $(C_TESTS_PATH)/crt0-tc2x.S 39 $(AS) $(ASFLAGS) -o $@ $< 40 41%.o: $(C_TESTS_PATH)/%.c 42 $(CC) $(CFLAGS) -o $@ $< 43 44%.c.tst: %.o crt0-tc2x.o 45 $(LD) $(LDFLAGS) -o $@ $^ 46 47# We don't currently support the multiarch system tests 48undefine MULTIARCH_TESTS 49