| 1 | -include ../../config-host.mak |
| 2 | |
| 3 | CROSS = or1k-linux- |
| 4 | |
| 5 | SIM = qemu-or1k |
| 6 | |
| 7 | CC = $(CROSS)gcc |
| 8 | |
| 9 | TESTCASES = test_add.tst |
| 10 | TESTCASES += test_sub.tst |
| 11 | TESTCASES += test_addc.tst |
| 12 | TESTCASES += test_addi.tst |
| 13 | TESTCASES += test_addic.tst |
| 14 | TESTCASES += test_and_or.tst |
| 15 | TESTCASES += test_bf.tst |
| 16 | TESTCASES += test_bnf.tst |
| 17 | TESTCASES += test_div.tst |
| 18 | TESTCASES += test_divu.tst |
| 19 | TESTCASES += test_extx.tst |
| 20 | TESTCASES += test_fx.tst |
| 21 | TESTCASES += test_jal.tst |
| 22 | TESTCASES += test_j.tst |
| 23 | TESTCASES += test_lf_div.tst |
| 24 | TESTCASES += test_lf_eqs.tst |
| 25 | TESTCASES += test_lf_ges.tst |
| 26 | TESTCASES += test_lf_gts.tst |
| 27 | TESTCASES += test_lf_les.tst |
| 28 | TESTCASES += test_lf_lts.tst |
| 29 | TESTCASES += test_lf_mul.tst |
| 30 | TESTCASES += test_lf_nes.tst |
| 31 | TESTCASES += test_lf_rem.tst |
| 32 | TESTCASES += test_lf_sub.tst |
| 33 | TESTCASES += test_lf_add.tst |
| 34 | TESTCASES += test_logic.tst |
| 35 | TESTCASES += test_lx.tst |
| 36 | TESTCASES += test_movhi.tst |
| 37 | TESTCASES += test_mul.tst |
| 38 | TESTCASES += test_mulu.tst |
| 39 | TESTCASES += test_muli.tst |
| 40 | TESTCASES += test_sfeq.tst |
| 41 | TESTCASES += test_sfeqi.tst |
| 42 | TESTCASES += test_sfges.tst |
| 43 | TESTCASES += test_sfgesi.tst |
| 44 | TESTCASES += test_sfgeu.tst |
| 45 | TESTCASES += test_sfgeui.tst |
| 46 | TESTCASES += test_sfgts.tst |
| 47 | TESTCASES += test_sfgtsi.tst |
| 48 | TESTCASES += test_sfgtu.tst |
| 49 | TESTCASES += test_sfgtui.tst |
| 50 | TESTCASES += test_sfles.tst |
| 51 | TESTCASES += test_sflesi.tst |
| 52 | TESTCASES += test_sfleu.tst |
| 53 | TESTCASES += test_sfleui.tst |
| 54 | TESTCASES += test_sflts.tst |
| 55 | TESTCASES += test_sfltsi.tst |
| 56 | TESTCASES += test_sfltu.tst |
| 57 | TESTCASES += test_sfltui.tst |
| 58 | TESTCASES += test_sfne.tst |
| 59 | TESTCASES += test_sfnei.tst |
| 60 | |
| 61 | all: $(TESTCASES) |
| 62 | |
| 63 | %.tst: %.c |
| 64 | $(CC) -static $< -o $@ |
| 65 | |
| 66 | |
| 67 | check: $(TESTCASES) |
| 68 | @for case in $(TESTCASES); do $(SIM) $$case; echo $$case pass!; sleep 0.2; done |
| 69 | |
| 70 | clean: |
| 71 | $(RM) -rf $(TESTCASES) |