Merge tag 'pull-loongarch-20241016' of https://gitlab.com/gaosong/qemu into staging
[qemu/armbru.git] / tests / tcg / tricore / Makefile.softmmu-target
blob258aeb40ae84adab30891993f05a3fb33dfcee05
1 TESTS_PATH = $(SRC_PATH)/tests/tcg/tricore
2 ASM_TESTS_PATH = $(TESTS_PATH)/asm
3 C_TESTS_PATH = $(TESTS_PATH)/c
5 LDFLAGS = -T$(TESTS_PATH)/link.ld --mcpu=tc162
6 ASFLAGS = -mtc162
7 CFLAGS = -mtc162 -c -I$(TESTS_PATH)
9 TESTS += test_abs.asm.tst
10 TESTS += test_bmerge.asm.tst
11 TESTS += test_clz.asm.tst
12 TESTS += test_crcn.asm.tst
13 TESTS += test_dextr.asm.tst
14 TESTS += test_dvstep.asm.tst
15 TESTS += test_fadd.asm.tst
16 TESTS += test_fmul.asm.tst
17 TESTS += test_ftohp.asm.tst
18 TESTS += test_ftoi.asm.tst
19 TESTS += test_ftou.asm.tst
20 TESTS += test_hptof.asm.tst
21 TESTS += test_imask.asm.tst
22 TESTS += test_insert.asm.tst
23 TESTS += test_ld_bu.asm.tst
24 TESTS += test_ld_h.asm.tst
25 TESTS += test_madd.asm.tst
26 TESTS += test_msub.asm.tst
27 TESTS += test_muls.asm.tst
29 TESTS += test_boot_to_main.c.tst
30 TESTS += test_context_save_areas.c.tst
32 QEMU_OPTS += -M tricore_testboard -cpu tc37x -nographic -kernel
34 %.pS: $(ASM_TESTS_PATH)/%.S
35         $(CC) -E -o $@ $<
37 %.o: %.pS
38         $(AS) $(ASFLAGS) -o $@ $<
40 %.asm.tst: %.o
41         $(LD) $(LDFLAGS) $< -o $@
43 crt0-tc2x.o: $(C_TESTS_PATH)/crt0-tc2x.S
44         $(AS) $(ASFLAGS) -o $@ $<
46 %.o: $(C_TESTS_PATH)/%.c
47         $(CC) $(CFLAGS) -o $@ $<
49 %.c.tst: %.o crt0-tc2x.o
50         $(LD) $(LDFLAGS) -o $@ $^
52 # We don't currently support the multiarch system tests
53 undefine MULTIARCH_TESTS