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 -I$(TESTS_PATH) 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 26TESTS += test_context_save_areas.c.tst 27 28QEMU_OPTS += -M tricore_testboard -cpu tc27x -nographic -kernel 29 30%.pS: $(ASM_TESTS_PATH)/%.S 31 $(HOST_CC) -E -o $@ $< 32 33%.o: %.pS 34 $(AS) $(ASFLAGS) -o $@ $< 35 36%.asm.tst: %.o 37 $(LD) $(LDFLAGS) $< -o $@ 38 39crt0-tc2x.o: $(C_TESTS_PATH)/crt0-tc2x.S 40 $(AS) $(ASFLAGS) -o $@ $< 41 42%.o: $(C_TESTS_PATH)/%.c 43 $(CC) $(CFLAGS) -o $@ $< 44 45%.c.tst: %.o crt0-tc2x.o 46 $(LD) $(LDFLAGS) -o $@ $^ 47 48# We don't currently support the multiarch system tests 49undefine MULTIARCH_TESTS 50