|
|
1.1 root 1: -include ../../config-host.mak
2:
3: CROSS=lm32-elf-
4:
5: SIM = qemu-system-lm32
6: SIMFLAGS = -M lm32-evr -nographic -device lm32-sys -net none -kernel
7:
8: CC = $(CROSS)gcc
9: AS = $(CROSS)as
10: AS = $(CC) -x assembler
11: SIZE = $(CROSS)size
12: LD = $(CC)
13: OBJCOPY = $(CROSS)objcopy
14:
15: LDFLAGS = -Tlinker.ld
16:
17: CRT = crt.o
18: TESTCASES += test_add.tst
19: TESTCASES += test_addi.tst
20: TESTCASES += test_and.tst
21: TESTCASES += test_andhi.tst
22: TESTCASES += test_andi.tst
23: TESTCASES += test_b.tst
24: TESTCASES += test_be.tst
25: TESTCASES += test_bg.tst
26: TESTCASES += test_bge.tst
27: TESTCASES += test_bgeu.tst
28: TESTCASES += test_bgu.tst
29: TESTCASES += test_bi.tst
30: TESTCASES += test_bne.tst
31: TESTCASES += test_break.tst
32: TESTCASES += test_bret.tst
33: TESTCASES += test_call.tst
34: TESTCASES += test_calli.tst
35: TESTCASES += test_cmpe.tst
36: TESTCASES += test_cmpei.tst
37: TESTCASES += test_cmpg.tst
38: TESTCASES += test_cmpgi.tst
39: TESTCASES += test_cmpge.tst
40: TESTCASES += test_cmpgei.tst
41: TESTCASES += test_cmpgeu.tst
42: TESTCASES += test_cmpgeui.tst
43: TESTCASES += test_cmpgu.tst
44: TESTCASES += test_cmpgui.tst
45: TESTCASES += test_cmpne.tst
46: TESTCASES += test_cmpnei.tst
47: TESTCASES += test_divu.tst
48: TESTCASES += test_eret.tst
49: TESTCASES += test_lb.tst
50: TESTCASES += test_lbu.tst
51: TESTCASES += test_lh.tst
52: TESTCASES += test_lhu.tst
53: TESTCASES += test_lw.tst
54: TESTCASES += test_modu.tst
55: TESTCASES += test_mul.tst
56: TESTCASES += test_muli.tst
57: TESTCASES += test_nor.tst
58: TESTCASES += test_nori.tst
59: TESTCASES += test_or.tst
60: TESTCASES += test_ori.tst
61: TESTCASES += test_orhi.tst
62: #TESTCASES += test_rcsr.tst
63: TESTCASES += test_ret.tst
64: TESTCASES += test_sb.tst
65: TESTCASES += test_scall.tst
66: TESTCASES += test_sextb.tst
67: TESTCASES += test_sexth.tst
68: TESTCASES += test_sh.tst
69: TESTCASES += test_sl.tst
70: TESTCASES += test_sli.tst
71: TESTCASES += test_sr.tst
72: TESTCASES += test_sri.tst
73: TESTCASES += test_sru.tst
74: TESTCASES += test_srui.tst
75: TESTCASES += test_sub.tst
76: TESTCASES += test_sw.tst
77: #TESTCASES += test_wcsr.tst
78: TESTCASES += test_xnor.tst
79: TESTCASES += test_xnori.tst
80: TESTCASES += test_xor.tst
81: TESTCASES += test_xori.tst
82:
83: all: build
84:
85: %.o: $(SRC_PATH)/tests/lm32/%.c
86: $(CC) $(CFLAGS) -c $< -o $@
87:
88: %.o: $(SRC_PATH)/tests/lm32/%.S
89: $(AS) $(ASFLAGS) -c $< -o $@
90:
91: %.tst: %.o macros.inc $(CRT)
92: $(LD) $(LDFLAGS) $(NOSTDFLAGS) $(CRT) $< -o $@
93:
94: build: $(CRT) $(TESTCASES)
95:
96: check: $(CRT) $(SYS) $(TESTCASES)
97: @for case in $(TESTCASES); do \
98: $(SIM) $(SIMFLAGS) ./$$case; \
99: done
100:
101: clean:
102: $(RM) -fr $(TESTCASES) $(CRT)
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.