Makefile (6608B)
1 -include ../../../../config-host.mak 2 3 CROSS=mips64el-unknown-linux-gnu- 4 5 SIM=qemu-mipsel 6 SIM_FLAGS=-cpu 74Kf 7 8 CC = $(CROSS)gcc 9 CFLAGS = -EL -mabi=32 -march=mips32r2 -mgp32 -mdsp -mdspr2 -static 10 11 TESTCASES = test_dsp_r1_absq_s_ph.tst 12 TESTCASES += test_dsp_r1_absq_s_w.tst 13 TESTCASES += test_dsp_r1_addq_ph.tst 14 TESTCASES += test_dsp_r1_addq_s_ph.tst 15 TESTCASES += test_dsp_r1_addq_s_w.tst 16 TESTCASES += test_dsp_r1_addsc.tst 17 TESTCASES += test_dsp_r1_addu_qb.tst 18 TESTCASES += test_dsp_r1_addu_s_qb.tst 19 TESTCASES += test_dsp_r1_addwc.tst 20 TESTCASES += test_dsp_r1_bitrev.tst 21 TESTCASES += test_dsp_r1_bposge32.tst 22 TESTCASES += test_dsp_r1_cmp_eq_ph.tst 23 TESTCASES += test_dsp_r1_cmpgu_eq_qb.tst 24 TESTCASES += test_dsp_r1_cmpgu_le_qb.tst 25 TESTCASES += test_dsp_r1_cmpgu_lt_qb.tst 26 TESTCASES += test_dsp_r1_cmp_le_ph.tst 27 TESTCASES += test_dsp_r1_cmp_lt_ph.tst 28 TESTCASES += test_dsp_r1_cmpu_eq_qb.tst 29 TESTCASES += test_dsp_r1_cmpu_le_qb.tst 30 TESTCASES += test_dsp_r1_cmpu_lt_qb.tst 31 TESTCASES += test_dsp_r1_dpaq_sa_l_w.tst 32 TESTCASES += test_dsp_r1_dpaq_s_w_ph.tst 33 TESTCASES += test_dsp_r1_dpau_h_qbl.tst 34 TESTCASES += test_dsp_r1_dpau_h_qbr.tst 35 TESTCASES += test_dsp_r1_dpsq_sa_l_w.tst 36 TESTCASES += test_dsp_r1_dpsq_s_w_ph.tst 37 TESTCASES += test_dsp_r1_dpsu_h_qbl.tst 38 TESTCASES += test_dsp_r1_dpsu_h_qbr.tst 39 TESTCASES += test_dsp_r1_extp.tst 40 TESTCASES += test_dsp_r1_extpdp.tst 41 TESTCASES += test_dsp_r1_extpdpv.tst 42 TESTCASES += test_dsp_r1_extpv.tst 43 TESTCASES += test_dsp_r1_extr_rs_w.tst 44 TESTCASES += test_dsp_r1_extr_r_w.tst 45 TESTCASES += test_dsp_r1_extr_s_h.tst 46 TESTCASES += test_dsp_r1_extrv_rs_w.tst 47 TESTCASES += test_dsp_r1_extrv_r_w.tst 48 TESTCASES += test_dsp_r1_extrv_s_h.tst 49 TESTCASES += test_dsp_r1_extrv_w.tst 50 TESTCASES += test_dsp_r1_extr_w.tst 51 TESTCASES += test_dsp_r1_insv.tst 52 TESTCASES += test_dsp_r1_lbux.tst 53 TESTCASES += test_dsp_r1_lhx.tst 54 TESTCASES += test_dsp_r1_lwx.tst 55 TESTCASES += test_dsp_r1_madd.tst 56 TESTCASES += test_dsp_r1_maddu.tst 57 TESTCASES += test_dsp_r1_maq_sa_w_phl.tst 58 TESTCASES += test_dsp_r1_maq_sa_w_phr.tst 59 TESTCASES += test_dsp_r1_maq_s_w_phl.tst 60 TESTCASES += test_dsp_r1_maq_s_w_phr.tst 61 TESTCASES += test_dsp_r1_mfhi.tst 62 TESTCASES += test_dsp_r1_mflo.tst 63 TESTCASES += test_dsp_r1_modsub.tst 64 TESTCASES += test_dsp_r1_msub.tst 65 TESTCASES += test_dsp_r1_msubu.tst 66 TESTCASES += test_dsp_r1_mthi.tst 67 TESTCASES += test_dsp_r1_mthlip.tst 68 TESTCASES += test_dsp_r1_mtlo.tst 69 TESTCASES += test_dsp_r1_muleq_s_w_phl.tst 70 TESTCASES += test_dsp_r1_muleq_s_w_phr.tst 71 TESTCASES += test_dsp_r1_muleu_s_ph_qbl.tst 72 TESTCASES += test_dsp_r1_muleu_s_ph_qbr.tst 73 TESTCASES += test_dsp_r1_mulq_rs_ph.tst 74 TESTCASES += test_dsp_r1_mult.tst 75 TESTCASES += test_dsp_r1_multu.tst 76 TESTCASES += test_dsp_r1_packrl_ph.tst 77 TESTCASES += test_dsp_r1_pick_ph.tst 78 TESTCASES += test_dsp_r1_pick_qb.tst 79 TESTCASES += test_dsp_r1_precequ_ph_qbla.tst 80 TESTCASES += test_dsp_r1_precequ_ph_qbl.tst 81 TESTCASES += test_dsp_r1_precequ_ph_qbra.tst 82 TESTCASES += test_dsp_r1_precequ_ph_qbr.tst 83 TESTCASES += test_dsp_r1_preceq_w_phl.tst 84 TESTCASES += test_dsp_r1_preceq_w_phr.tst 85 TESTCASES += test_dsp_r1_preceu_ph_qbla.tst 86 TESTCASES += test_dsp_r1_preceu_ph_qbl.tst 87 TESTCASES += test_dsp_r1_preceu_ph_qbra.tst 88 TESTCASES += test_dsp_r1_preceu_ph_qbr.tst 89 TESTCASES += test_dsp_r1_precrq_ph_w.tst 90 TESTCASES += test_dsp_r1_precrq_qb_ph.tst 91 TESTCASES += test_dsp_r1_precrq_rs_ph_w.tst 92 TESTCASES += test_dsp_r1_precrqu_s_qb_ph.tst 93 TESTCASES += test_dsp_r1_raddu_w_qb.tst 94 TESTCASES += test_dsp_r1_rddsp.tst 95 TESTCASES += test_dsp_r1_repl_ph.tst 96 TESTCASES += test_dsp_r1_repl_qb.tst 97 TESTCASES += test_dsp_r1_replv_ph.tst 98 TESTCASES += test_dsp_r1_replv_qb.tst 99 TESTCASES += test_dsp_r1_shilo.tst 100 TESTCASES += test_dsp_r1_shilov.tst 101 TESTCASES += test_dsp_r1_shll_ph.tst 102 TESTCASES += test_dsp_r1_shll_qb.tst 103 TESTCASES += test_dsp_r1_shll_s_ph.tst 104 TESTCASES += test_dsp_r1_shll_s_w.tst 105 TESTCASES += test_dsp_r1_shllv_ph.tst 106 TESTCASES += test_dsp_r1_shllv_qb.tst 107 TESTCASES += test_dsp_r1_shllv_s_ph.tst 108 TESTCASES += test_dsp_r1_shllv_s_w.tst 109 TESTCASES += test_dsp_r1_shra_ph.tst 110 TESTCASES += test_dsp_r1_shra_r_ph.tst 111 TESTCASES += test_dsp_r1_shra_r_w.tst 112 TESTCASES += test_dsp_r1_shrav_ph.tst 113 TESTCASES += test_dsp_r1_shrav_r_ph.tst 114 TESTCASES += test_dsp_r1_shrav_r_w.tst 115 TESTCASES += test_dsp_r1_shrl_qb.tst 116 TESTCASES += test_dsp_r1_shrlv_qb.tst 117 TESTCASES += test_dsp_r1_subq_ph.tst 118 TESTCASES += test_dsp_r1_subq_s_ph.tst 119 TESTCASES += test_dsp_r1_subq_s_w.tst 120 TESTCASES += test_dsp_r1_subu_qb.tst 121 TESTCASES += test_dsp_r1_subu_s_qb.tst 122 TESTCASES += test_dsp_r1_wrdsp.tst 123 TESTCASES += test_dsp_r2_absq_s_qb.tst 124 TESTCASES += test_dsp_r2_addqh_ph.tst 125 TESTCASES += test_dsp_r2_addqh_r_ph.tst 126 TESTCASES += test_dsp_r2_addqh_r_w.tst 127 TESTCASES += test_dsp_r2_addqh_w.tst 128 TESTCASES += test_dsp_r2_adduh_qb.tst 129 TESTCASES += test_dsp_r2_adduh_r_qb.tst 130 TESTCASES += test_dsp_r2_addu_ph.tst 131 TESTCASES += test_dsp_r2_addu_s_ph.tst 132 TESTCASES += test_dsp_r2_append.tst 133 TESTCASES += test_dsp_r2_balign.tst 134 TESTCASES += test_dsp_r2_cmpgdu_eq_qb.tst 135 TESTCASES += test_dsp_r2_cmpgdu_le_qb.tst 136 TESTCASES += test_dsp_r2_cmpgdu_lt_qb.tst 137 TESTCASES += test_dsp_r2_dpaqx_sa_w_ph.tst 138 TESTCASES += test_dsp_r2_dpa_w_ph.tst 139 TESTCASES += test_dsp_r2_dpax_w_ph.tst 140 TESTCASES += test_dsp_r2_dpaqx_s_w_ph.tst 141 TESTCASES += test_dsp_r2_dpsqx_sa_w_ph.tst 142 TESTCASES += test_dsp_r2_dpsqx_s_w_ph.tst 143 TESTCASES += test_dsp_r2_dps_w_ph.tst 144 TESTCASES += test_dsp_r2_dpsx_w_ph.tst 145 TESTCASES += test_dsp_r2_mul_ph.tst 146 TESTCASES += test_dsp_r2_mulq_rs_w.tst 147 TESTCASES += test_dsp_r2_mulq_s_ph.tst 148 TESTCASES += test_dsp_r2_mulq_s_w.tst 149 TESTCASES += test_dsp_r2_mulsaq_s_w_ph.tst 150 TESTCASES += test_dsp_r2_mulsa_w_ph.tst 151 TESTCASES += test_dsp_r2_mul_s_ph.tst 152 TESTCASES += test_dsp_r2_precr_qb_ph.tst 153 TESTCASES += test_dsp_r2_precr_sra_ph_w.tst 154 TESTCASES += test_dsp_r2_precr_sra_r_ph_w.tst 155 TESTCASES += test_dsp_r2_prepend.tst 156 TESTCASES += test_dsp_r2_shra_qb.tst 157 TESTCASES += test_dsp_r2_shra_r_qb.tst 158 TESTCASES += test_dsp_r2_shrav_qb.tst 159 TESTCASES += test_dsp_r2_shrav_r_qb.tst 160 TESTCASES += test_dsp_r2_shrl_ph.tst 161 TESTCASES += test_dsp_r2_shrlv_ph.tst 162 TESTCASES += test_dsp_r2_subqh_ph.tst 163 TESTCASES += test_dsp_r2_subqh_r_ph.tst 164 TESTCASES += test_dsp_r2_subqh_r_w.tst 165 TESTCASES += test_dsp_r2_subqh_w.tst 166 TESTCASES += test_dsp_r2_subuh_qb.tst 167 TESTCASES += test_dsp_r2_subuh_r_qb.tst 168 TESTCASES += test_dsp_r2_subu_ph.tst 169 TESTCASES += test_dsp_r2_subu_s_ph.tst 170 171 172 all: $(TESTCASES) 173 174 %.tst: %.c 175 $(CC) $(CFLAGS) $< -o $@ 176 177 check: $(TESTCASES) 178 @for case in $(TESTCASES); do \ 179 echo $(SIM) $(SIM_FLAGS) ./$$case;\ 180 $(SIM) $(SIM_FLAGS) ./$$case; \ 181 done 182 183 clean: 184 $(RM) -rf $(TESTCASES)