QEMU MIPS ASE DSP support
Re: [Qemu-devel] [PATCH v7 09/14] target-mips-ase-dsp: Add bit/manipulation instructions
In reply to Jia LiuQuoted 44 lines · Jia Liu
Add MIPS ASE DSP Bit/Manipulation instructions.
Signed-off-by Jia Liu <[email protected]>--- target-mips/dsp_helper.c | 79 ++++++++++++++ target-mips/helper.h | 7 ++ target-mips/translate.c | 268 +++++++++++++++++++++++++++++++++++++++++++++- 3 files changed, 353 insertions(+), 1 deletion(-)target-mips/dsp_helper.c +27
-0@@ -6211,6 +6211,85 @@ void helper_dmsubu(CPUMIPSState *env, }#endif +/** DSP Bit/Manipulation Sub-class insns **/ +target_ulong helper_bitrev (target_ulong rt) +{ +int32_t temp; +uint32_t rd; +int i, last; + + temp = rt &MIPSDSP_LO ; + rd =0 ; +for (i =0 ; i <16 ; i++) { + last = temp %2 ; + temp = temp >>1 ; + rd = rd | (last << (15 - i)); + } + +return (target_ulong )rd; +} + +target_ulong helper_insv (CPUMIPSState *env,target_ulong rs,target_ulong rt) +{ +uint32_t pos, size, msb, lsb, rs_f, rt_f; +uint32_t temp, temprs, temprt; +uint32_t rs_notword, rt_notword; +target_ulong dspc; + + dspc = env->active_tc.DSPControl; + pos = dspc &0x1F ;
target-mips/dsp_helper.c void helper_dmsubu(CPUMIPSState *env, · line 6250
Quoted 10 lines
target-mips/dsp_helper.c +10
-0+ size = (dspc >>7 ) &0x1F ; + msb = pos + size -1 ; + lsb = pos; + + rs_notword =not_word_value (rs); + rt_notword =not_word_value (rt); + +if ((lsb > msb) || (rs_notword ==1 ) || (rt_notword ==1 )) { +return rt; + }
The manual says that in case the values are not sign extended, the result is unpredictable. It doesn't mean you have to catch this case, it means that as long as QEMU doesn't crash whatever result it returns is fine. The lsb > msb test should be kept though, as otherwise negative shift values might cause problem.
target-mips/dsp_helper.c void helper_dmsubu(CPUMIPSState *env, · line 6257
Quoted 6 lines
target-mips/dsp_helper.c +6
-0+ rs_f = (((int32_t )0x01 << (msb - lsb +1 +1 )) -1 ) << lsb; + rt_f = rs_f ^0xFFFFFFFF ; + temprs = rs & rs_f; + temprt = rt & rt_f; + temp = temprs | temprt; +
I don't think this is correct, though I haven't checked in details.
Quoted 148 lines
target-mips/dsp_helper.c +35
-0+return (target_long )(int32_t )temp; +} + +#if defined(TARGET_MIPS64 ) +target_ulong helper_dinsv (CPUMIPSState *env,target_ulong rs,target_ulong rt) +{ +target_ulong dspctrl; +target_ulong filter; +uint8_t pos, size; +uint8_t msb, lsb; +uint64_t temp; + + temp = rt; + dspctrl = env->active_tc.DSPControl; + pos = dspctrl &0x7F ; + size = (dspctrl >>7 ) &0x3F ; + + msb = pos + size -1 ; + lsb = pos; + +if ((lsb > msb) || (msb >63 )) { +return temp; + } + + temp =0 ; + filter = ((target_ulong )0x01 << size) -1 ; + filter = filter << pos; + + temp |= rs & filter; + temp |= rt & (~filter); + +return temp; +} +#endif +#undef MIPSDSP_LHI#undef MIPSDSP_LLO#undef MIPSDSP_HItarget-mips/helper.h +7
-0@@ -582,4 +582,11 @@ DEF_HELPER_FLAGS_4(dmsub, 0, void, env, tl, tl, i32) DEF_HELPER_FLAGS_4(dmsubu, 0, void, env, tl, tl, i32)#endif +/* DSP Bit/Manipulation Sub-class insns */ +DEF_HELPER_FLAGS_1(bitrev, TCG_CALL_CONST | TCG_CALL_PURE, tl, tl) +DEF_HELPER_FLAGS_3(insv, 0, tl, env, tl, tl) +#if defined(TARGET_MIPS64 ) +DEF_HELPER_FLAGS_3 (dinsv,0 , tl, env, tl, tl); +#endif +#include "def-helper.h" target-mips/translate.c +51
-0@@ -343,6 +343,11 @@ enum {#if defined(TARGET_MIPS64 ) OPC_DPAQ_W_QH_DSP = 0x34 | OPC_SPECIAL3, #endif + /* DSP Bit/Manipulation Sub-class */ + OPC_INSV_DSP = 0x0C | OPC_SPECIAL3, +#if defined(TARGET_MIPS64) + OPC_DINSV_DSP = 0x0D | OPC_SPECIAL3, +#endif };/* BSHFL opcodes */ @@ -450,6 +455,12 @@ enum {OPC_PRECEU_PH_QBR = (0x1D <<6 ) |OPC_ABSQ_S_PH_DSP ,OPC_PRECEU_PH_QBLA = (0x1E <<6 ) |OPC_ABSQ_S_PH_DSP ,OPC_PRECEU_PH_QBRA = (0x1F <<6 ) |OPC_ABSQ_S_PH_DSP , +/* DSP Bit/Manipulation Sub-class */ +OPC_BITREV = (0x1B <<6 ) |OPC_ABSQ_S_PH_DSP , +OPC_REPL_QB = (0x02 <<6 ) |OPC_ABSQ_S_PH_DSP , +OPC_REPLV_QB = (0x03 <<6 ) |OPC_ABSQ_S_PH_DSP , +OPC_REPL_PH = (0x0A <<6 ) |OPC_ABSQ_S_PH_DSP , + OPC_REPLV_PH = (0x0B << 6) | OPC_ABSQ_S_PH_DSP, };#define MASK_CMPU_EQ_QB (op) (MASK_SPECIAL3(op) | (op & (0x1F << 6)))@@ -518,6 +529,12 @@ enum { OPC_MULSA_W_PH = (0x02 << 6) | OPC_DPA_W_PH_DSP, }; +#define MASK_INSV (op) (MASK_SPECIAL3(op) | (op & (0x1F << 6))) +enum { +/* DSP Bit/Manipulation Sub-class */ +OPC_INSV = (0x00 <<6 ) |OPC_INSV_DSP , +}; +#if defined(TARGET_MIPS64 )#define MASK_ABSQ_S_QH (op) (MASK_SPECIAL3(op) | (op & (0x1F << 6))) enum {@@ -539,6 +556,13 @@ enum {OPC_ABSQ_S_OB = (0x01 <<6 ) |OPC_ABSQ_S_QH_DSP ,OPC_ABSQ_S_PW = (0x11 <<6 ) |OPC_ABSQ_S_QH_DSP ,OPC_ABSQ_S_QH = (0x09 <<6 ) |OPC_ABSQ_S_QH_DSP , +/* DSP Bit/Manipulation Sub-class */ +OPC_REPL_OB = (0x02 <<6 ) |OPC_ABSQ_S_QH_DSP , +OPC_REPL_PW = (0x12 <<6 ) |OPC_ABSQ_S_QH_DSP , +OPC_REPL_QH = (0x0A <<6 ) |OPC_ABSQ_S_QH_DSP , +OPC_REPLV_OB = (0x03 <<6 ) |OPC_ABSQ_S_QH_DSP , +OPC_REPLV_PW = (0x13 <<6 ) |OPC_ABSQ_S_QH_DSP , + OPC_REPLV_QH = (0x0B << 6) | OPC_ABSQ_S_QH_DSP, };#endif @@ -592,6 +616,14 @@ enum {#endif #if defined(TARGET_MIPS64 ) +#define MASK_DINSV (op) (MASK_SPECIAL3(op) | (op & (0x1F << 6))) +enum { +/* DSP Bit/Manipulation Sub-class */ +OPC_DINSV = (0x00 <<6 ) |OPC_DINSV_DSP , +}; +#endif + +#if defined(TARGET_MIPS64 )#define MASK_DPAQ_W_QH (op) (MASK_SPECIAL3(op) | (op & (0x1F << 6)))enum { /* MIPS DSP Multiply Sub-class insns */@@ -12674,6 +12706,95 @@ static void decode_opc (CPUMIPSState *env, DisasContext *ctx, int *is_branch)check_dsp (ctx);gen_helper_preceu_ph_qbra (cpu_gpr[rd], cpu_gpr[rt]);break ; +case OPC_BITREV : +check_dsp (ctx); +gen_helper_bitrev (cpu_gpr[rd], cpu_gpr[rt]); +break ; +case OPC_REPL_QB : +check_dsp (ctx); + { +TCGv t, temp_rd; + + t =tcg_temp_new (); + temp_rd =tcg_temp_new (); + + imm = (ctx->opcode >>16 ) &0xFF ; + t =tcg_const_tl (imm); +tcg_gen_mov_tl (temp_rd, t); +tcg_gen_shli_tl (t, temp_rd,8 ); +tcg_gen_or_tl (temp_rd, temp_rd, t); +tcg_gen_shli_tl (t, temp_rd,16 ); +tcg_gen_or_tl (temp_rd, temp_rd, t);
target-mips/translate.c static void decode_opc (CPUMIPSState *env, DisasContext *ctx, int *is_branch) · line 12737
Quoted 10 lines
target-mips/translate.c +10
-0+tcg_gen_shli_tl (t, temp_rd,24 ); +tcg_gen_or_tl (temp_rd, temp_rd, t); +#if defined(TARGET_MIPS64 ) +tcg_gen_ext32s_i64 (temp_rd, temp_rd); +#endif +tcg_gen_mov_tl (cpu_gpr[rd], temp_rd); +tcg_temp_free (t); +tcg_temp_free (temp_rd); +break ; + }
The value to load from registers can be computed directly from imm. You don't need TCG for that. The only TCG instruction which is need should be this one:
tcg_gen_movi_tl(cpu_gpr[rd], value);
Quoted 14 lines
target-mips/translate.c +14
-0+case OPC_REPLV_QB : +check_dsp (ctx); + { +TCGv t, temp_rd; + + t =tcg_temp_new (); + temp_rd =tcg_temp_new (); + +tcg_gen_ext8u_tl (temp_rd, cpu_gpr[rt]); +tcg_gen_shli_tl (t, temp_rd,8 ); +tcg_gen_or_tl (temp_rd, temp_rd, t); +tcg_gen_shli_tl (t, temp_rd,16 ); +tcg_gen_or_tl (temp_rd, temp_rd, t); +tcg_gen_shli_tl (t, temp_rd,24 );
target-mips/translate.c static void decode_opc (CPUMIPSState *env, DisasContext *ctx, int *is_branch) · line 12761
Quoted 10 lines
target-mips/translate.c +10
-0+tcg_gen_or_tl (temp_rd, temp_rd, t); +#if defined(TARGET_MIPS64 ) +tcg_gen_ext32s_i64 (temp_rd, temp_rd); +#endif +tcg_gen_mov_tl (cpu_gpr[rd], temp_rd); + +tcg_temp_free (t); +tcg_temp_free (temp_rd); +break ; + }
Ditto.
Quoted 6 lines
target-mips/translate.c +6
-0+case OPC_REPL_PH : +check_dsp (ctx); + { +TCGv temp_rd; + + temp_rd =tcg_temp_new ();
target-mips/translate.c static void decode_opc (CPUMIPSState *env, DisasContext *ctx, int *is_branch) · line 12777
Quoted 10 lines
target-mips/translate.c +10
-0+ + imm = (ctx->opcode >>16 ) &0x03FF ; +tcg_gen_movi_tl (temp_rd, imm <<16 | imm); +#if defined(TARGET_MIPS64 ) +tcg_gen_ext32s_i64 (temp_rd, temp_rd); +#endif +tcg_gen_mov_tl (cpu_gpr[rd], temp_rd); +tcg_temp_free (temp_rd); +break ; + }
This is better than above, still you should no need the ext32s.
Quoted 10 lines
target-mips/translate.c +10
-0+case OPC_REPLV_PH : +check_dsp (ctx); + { +TCGv t, temp_rd; + + t =tcg_temp_new (); + temp_rd =tcg_temp_new (); + +tcg_gen_ext16u_tl (temp_rd, cpu_gpr[rt]); +tcg_gen_shli_tl (t, temp_rd,16 );
target-mips/translate.c static void decode_opc (CPUMIPSState *env, DisasContext *ctx, int *is_branch) · line 12797
Quoted 10 lines
target-mips/translate.c +10
-0+tcg_gen_or_tl (temp_rd, temp_rd, t); +#if defined(TARGET_MIPS64 ) +tcg_gen_ext32s_i64 (temp_rd, temp_rd); +#endif +tcg_gen_mov_tl (cpu_gpr[rd], temp_rd); + +tcg_temp_free (t); +tcg_temp_free (temp_rd); +break ; + }
Same.
Quoted 38 lines
target-mips/translate.c +24
-0default :/* Invalid */ MIPS_INVAL ("MASK ABSQ_S.PH" );generate_exception (ctx,EXCP_RI );@@ -13174,6 +13295,22 @@ static void decode_opc (CPUMIPSState *env, DisasContext *ctx, int *is_branch)break ; }break ; +case OPC_INSV_DSP : + op2 =MASK_INSV (ctx->opcode); +switch (op2) { +case OPC_INSV : +check_dsp (ctx); + { +gen_helper_insv (cpu_gpr[rt], cpu_env, + cpu_gpr[rs], cpu_gpr[rt]); +break ; + } +default :/* Invalid */ +MIPS_INVAL ("MASK INSV" ); +generate_exception (ctx,EXCP_RI ); +break ; + } +break ;#if defined(TARGET_MIPS64 ) case OPC_DEXTM ... OPC_DEXT: case OPC_DINSM ... OPC_DINS:@@ -13254,6 +13391,119 @@ static void decode_opc (CPUMIPSState *env, DisasContext *ctx, int *is_branch)check_dsp (ctx);gen_helper_preceu_qh_obra (cpu_gpr[rd], cpu_gpr[rt]);break ; +case OPC_REPL_OB : +check_dsp (ctx); + { +int i; +TCGv_i64 immv, temp_rd; + temp_rd =tcg_const_i64 (0 ); + + imm = (ctx->opcode >>16 ) &0xFF ;
target-mips/translate.c static void decode_opc (CPUMIPSState *env, DisasContext *ctx, int *is_branch) · line 13411
Quoted 10 lines
target-mips/translate.c +10
-0+ immv =tcg_const_i64 (imm); + +tcg_gen_or_i64 (temp_rd, temp_rd, immv); +for (i =0 ; i <7 ; i++) { +tcg_gen_shli_i64 (temp_rd, temp_rd,8 ); +tcg_gen_or_i64 (temp_rd, temp_rd, immv); + } +gen_store_gpr (temp_rd, rd); +break ; + }
Same, the value can be computed without TCG.
Quoted 8 lines
target-mips/translate.c +8
-0+case OPC_REPL_PW : +check_dsp (ctx); + { +TCGv_i64 temp =tcg_temp_new_i64 (); + + imm = (ctx->opcode >>16 ) &0x03FF ; + imm = (int16_t )(imm <<6 ) >>6 ; +
target-mips/translate.c static void decode_opc (CPUMIPSState *env, DisasContext *ctx, int *is_branch) · line 13429
Quoted 10 lines
target-mips/translate.c +10
-0+tcg_gen_movi_i64 (temp, + (uint64_t )(uint32_t )(int32_t )imm); +tcg_gen_shli_i64 (temp, temp,32 ); +tcg_gen_ori_i64 (temp, temp, + (uint64_t )(uint32_t )(int32_t )imm); + +gen_store_gpr (temp, rd); + +tcg_temp_free_i64 (temp); +break ;
Same.
Quoted 12 lines
target-mips/translate.c +12
-0+ } +case OPC_REPL_QH : +check_dsp (ctx); + { +TCGv_i64 temp =tcg_temp_new_i64 (); + + imm = (ctx->opcode >>16 ) &0x03FF ; + imm = (int16_t )(imm <<6 ) >>6 ; + +tcg_gen_movi_i64 (temp, (uint64_t )(uint16_t )imm); +tcg_gen_shli_i64 (temp, temp,16 ); +tcg_gen_ori_i64 (temp, temp, (uint64_t )(uint16_t )imm);
target-mips/translate.c static void decode_opc (CPUMIPSState *env, DisasContext *ctx, int *is_branch) · line 13451
Quoted 10 lines
target-mips/translate.c +10
-0+tcg_gen_shli_i64 (temp, temp,16 ); +tcg_gen_ori_i64 (temp, temp, (uint64_t )(uint16_t )imm); +tcg_gen_shli_i64 (temp, temp,16 ); +tcg_gen_ori_i64 (temp, temp, (uint64_t )(uint16_t )imm); + +gen_store_gpr (temp, rd); + +tcg_temp_free_i64 (temp); +break ; + }
Same
target-mips/translate.c static void decode_opc (CPUMIPSState *env, DisasContext *ctx, int *is_branch) · line 13460
Quoted 9 lines
target-mips/translate.c +9
-0+case OPC_REPLV_OB : +check_dsp (ctx); + { +int i; +TCGv_i64 immv, temp_rd; + immv =tcg_const_i64 (0 ); + temp_rd =tcg_const_i64 (0 ); + +tcg_gen_ori_i64 (immv, cpu_gpr[rt],0xFF );
I doubt you want an ori here. What you probably need is an ext8u.
target-mips/translate.c static void decode_opc (CPUMIPSState *env, DisasContext *ctx, int *is_branch) · line 13408
Quoted 5 lines
target-mips/translate.c +5
-0+tcg_gen_or_i64 (temp_rd, temp_rd, immv); +for (i =0 ; i <7 ; i++) { +tcg_gen_shli_i64 (temp_rd, temp_rd,8 ); +tcg_gen_or_i64 (temp_rd, temp_rd, immv); + }
There are better way to do that, you can create a 16-bit value from 2 8-bit values, and the 32-bit values from the 2 16-bit values.
target-mips/translate.c static void decode_opc (CPUMIPSState *env, DisasContext *ctx, int *is_branch) · line 13470
Quoted 5 lines
target-mips/translate.c +5
-0+gen_store_gpr (temp_rd, rd); +tcg_temp_free_i64 (immv); +tcg_temp_free_i64 (temp_rd); +break ; + }
Also even if it is MIPS64 specific, please use _tl instead of _i64
target-mips/translate.c static void decode_opc (CPUMIPSState *env, DisasContext *ctx, int *is_branch) · line 13479
Quoted 9 lines
target-mips/translate.c +9
-0+case OPC_REPLV_PW : +check_insn (env, ctx,ASE_DSP ); + { +TCGv_i64 imm_v; + imm_v =tcg_const_i64 (0 ); + +tcg_gen_ori_i64 (imm_v, cpu_gpr[rt],0xFFFFFFFF ); +tcg_gen_ext32s_i64 (cpu_gpr[rd], imm_v); +
This looks wrong.
Quoted 10 lines
target-mips/translate.c +10
-0+tcg_temp_free_i64 (imm_v); +break ; + } +case OPC_REPLV_QH : +check_insn (env, ctx,ASE_DSP ); + { +TCGv_i64 imm_v; +TCGv_i64 temp_rd; + + imm_v =tcg_const_i64 (0 );
target-mips/translate.c static void decode_opc (CPUMIPSState *env, DisasContext *ctx, int *is_branch) · line 13499
Quoted 10 lines
target-mips/translate.c +10
-0+ temp_rd =tcg_const_i64 (0 ); +tcg_gen_ori_i64 (imm_v, cpu_gpr[rt],0xffff ); + +tcg_gen_or_i64 (temp_rd, temp_rd, imm_v); +tcg_gen_shli_i64 (temp_rd, temp_rd,16 ); +tcg_gen_or_i64 (temp_rd, temp_rd, imm_v); +tcg_gen_shli_i64 (temp_rd, temp_rd,16 ); +tcg_gen_or_i64 (temp_rd, temp_rd, imm_v); +tcg_gen_shli_i64 (temp_rd, temp_rd,16 ); +tcg_gen_or_i64 (temp_rd, temp_rd, imm_v);
This can be optimized as explained above.
Quoted 46 lines
target-mips/translate.c +24
-1+ +gen_store_gpr (temp_rd, rd); + +tcg_temp_free_i64 (imm_v); +tcg_temp_free_i64 (temp_rd); +break ; + }case OPC_ABSQ_S_OB :check_dspr2 (ctx);gen_helper_absq_s_ob (cpu_gpr[rd], cpu_env, cpu_gpr[rt]);@@ -13615,6 +13865,22 @@ static void decode_opc (CPUMIPSState *env, DisasContext *ctx, int *is_branch) }#endif #if defined(TARGET_MIPS64 ) +case OPC_DINSV_DSP : + op2 =MASK_INSV (ctx->opcode); +switch (op2) { +case OPC_DINSV : +check_dsp (ctx); +gen_helper_dinsv (cpu_gpr[rt], cpu_env, + cpu_gpr[rs], cpu_gpr[rt]); +break ; +default :/* Invalid */ +MIPS_INVAL ("MASK DINSV" ); +generate_exception (ctx,EXCP_RI ); +break ; + } +break ; +#endif +#if defined(TARGET_MIPS64 )case OPC_SHLL_OB_DSP : op2 =MASK_SHLL_OB (ctx->opcode);switch (op2) {@@ -13789,7 +14055,7 @@ static void decode_opc (CPUMIPSState *env, DisasContext *ctx, int *is_branch)generate_exception (ctx,EXCP_RI ); break; } -break ; +break ;#endif default :/* Invalid */ MIPS_INVAL ("special3" );Signature · 1 line
1.7.9.5
Signature · 2 lines
Aurelien Jarno GPG: 1024D/F1BCDB73 [email protected] http://www.aurel32.net
PATCH v7 10/14 target-mips-ase-dsp: Add compare-pick instructions
In reply to Jia LiuAdd MIPS ASE DSP Compare-Pick instructions.
--- target-mips/dsp_helper.c | 917 ++++++++++++++++++++++++++++++++++++++++++++++ target-mips/helper.h | 52 +++ target-mips/translate.c | 322 +++++++++++++++- 3 files changed, 1289 insertions(+), 2 deletions(-)
target-mips/dsp_helper.c +917 -0
@@ -6290,6 +6290,923 @@ target_ulong helper_dinsv(CPUMIPSState *env, target_ulong rs, target_ulong rt) }#endif +/** DSP Compare-Pick Sub-class insns **/ +void helper_cmpu_eq_qb (CPUMIPSState *env,target_ulong rs,target_ulong rt) +{ +uint8_t rs3, rs2, rs1, rs0; +uint8_t rt3, rt2, rt1, rt0; +uint32_t cc3 =0 , cc2 =0 , cc1 =0 , cc0 =0 ; +uint32_t flag; + + rs3 = (rs &MIPSDSP_Q3 ) >>24 ; + rs2 = (rs &MIPSDSP_Q2 ) >>16 ; + rs1 = (rs &MIPSDSP_Q1 ) >>8 ; + rs0 = rs &MIPSDSP_Q0 ; + + rt3 = (rt &MIPSDSP_Q3 ) >>24 ; + rt2 = (rt &MIPSDSP_Q2 ) >>16 ; + rt1 = (rt &MIPSDSP_Q1 ) >>8 ; + rt0 = rt &MIPSDSP_Q0 ; + + cc3 = (rs3 == rt3); + cc2 = (rs2 == rt2); + cc1 = (rs1 == rt1); + cc0 = (rs0 == rt0); + + flag = (cc3 <<3 ) | (cc2 <<2 ) | (cc1 <<1 ) | cc0; +set_DSPControl_24 (env, flag,4 ); +} + +void helper_cmpu_lt_qb (CPUMIPSState *env,target_ulong rs,target_ulong rt) +{ +uint8_t rs3, rs2, rs1, rs0; +uint8_t rt3, rt2, rt1, rt0; +uint32_t cc3 =0 , cc2 =0 , cc1 =0 , cc0 =0 ; +uint32_t flag; + + rs3 = (rs &MIPSDSP_Q3 ) >>24 ; + rs2 = (rs &MIPSDSP_Q2 ) >>16 ; + rs1 = (rs &MIPSDSP_Q1 ) >>8 ; + rs0 = rs &MIPSDSP_Q0 ; + + rt3 = (rt &MIPSDSP_Q3 ) >>24 ; + rt2 = (rt &MIPSDSP_Q2 ) >>16 ; + rt1 = (rt &MIPSDSP_Q1 ) >>8 ; + rt0 = rt &MIPSDSP_Q0 ; + + cc3 = (rs3 < rt3); + cc2 = (rs2 < rt2); + cc1 = (rs1 < rt1); + cc0 = (rs0 < rt0); + + flag = (cc3 <<3 ) | (cc2 <<2 ) | (cc1 <<1 ) | cc0; +set_DSPControl_24 (env, flag,4 ); +} + +void helper_cmpu_le_qb (CPUMIPSState *env,target_ulong rs,target_ulong rt) +{ +uint8_t rs3, rs2, rs1, rs0; +uint8_t rt3, rt2, rt1, rt0; +uint32_t cc3 =0 , cc2 =0 , cc1 =0 , cc0 =0 ; +uint32_t flag; + + rs3 = (rs &MIPSDSP_Q3 ) >>24 ; + rs2 = (rs &MIPSDSP_Q2 ) >>16 ; + rs1 = (rs &MIPSDSP_Q1 ) >>8 ; + rs0 = rs &MIPSDSP_Q0 ; + + rt3 = (rt &MIPSDSP_Q3 ) >>24 ; + rt2 = (rt &MIPSDSP_Q2 ) >>16 ; + rt1 = (rt &MIPSDSP_Q1 ) >>8 ; + rt0 = rt &MIPSDSP_Q0 ; + + cc3 = (rs3 <= rt3); + cc2 = (rs2 <= rt2); + cc1 = (rs1 <= rt1); + cc0 = (rs0 <= rt0); + + flag = (cc3 <<3 ) | (cc2 <<2 ) | (cc1 <<1 ) | cc0; +set_DSPControl_24 (env, flag,4 ); +} + + +target_ulong helper_cmpgu_eq_qb (target_ulong rs,target_ulong rt) +{ +uint8_t rs3, rs2, rs1, rs0; +uint8_t rt3, rt2, rt1, rt0; +uint8_t cc3 =0 , cc2 =0 , cc1 =0 , cc0 =0 ; +uint32_t temp; +uint32_t rd; + + rs3 = (rs &MIPSDSP_Q3 ) >>24 ; + rs2 = (rs &MIPSDSP_Q2 ) >>16 ; + rs1 = (rs &MIPSDSP_Q1 ) >>8 ; + rs0 = rs &MIPSDSP_Q0 ; + + rt3 = (rt &MIPSDSP_Q3 ) >>24 ; + rt2 = (rt &MIPSDSP_Q2 ) >>16 ; + rt1 = (rt &MIPSDSP_Q1 ) >>8 ; + rt0 = rt &MIPSDSP_Q0 ; + + cc3 = (rs3 == rt3); + cc2 = (rs2 == rt2); + cc1 = (rs1 == rt1); + cc0 = (rs0 == rt0); + + temp = (cc3 <<3 ) | (cc2 <<2 ) | (cc1 <<1 ) | cc0; + rd = temp; + +return (target_ulong )rd; +} + +target_ulong helper_cmpgu_lt_qb (target_ulong rs,target_ulong rt) +{ +uint8_t rs3, rs2, rs1, rs0; +uint8_t rt3, rt2, rt1, rt0; +uint32_t cc3 =0 , cc2 =0 , cc1 =0 , cc0 =0 ; +uint32_t temp; +uint32_t rd; + + rs3 = (rs &MIPSDSP_Q3 ) >>24 ; + rs2 = (rs &MIPSDSP_Q2 ) >>16 ; + rs1 = (rs &MIPSDSP_Q1 ) >>8 ; + rs0 = rs &MIPSDSP_Q0 ; + + rt3 = (rt &MIPSDSP_Q3 ) >>24 ; + rt2 = (rt &MIPSDSP_Q2 ) >>16 ; + rt1 = (rt &MIPSDSP_Q1 ) >>8 ; + rt0 = rt &MIPSDSP_Q0 ; + + cc3 = (rs3 < rt3); + cc2 = (rs2 < rt2); + cc1 = (rs1 < rt1); + cc0 = (rs0 < rt0); + + temp = (cc3 <<3 ) | (cc2 <<2 ) | (cc1 <<1 ) | cc0; + rd = temp; + +return (target_ulong )rd; +} + +target_ulong helper_cmpgu_le_qb (target_ulong rs,target_ulong rt) +{ +uint8_t rs3, rs2, rs1, rs0; +uint8_t rt3, rt2, rt1, rt0; +uint32_t cc3 =0 , cc2 =0 , cc1 =0 , cc0 =0 ; +uint32_t temp; +uint32_t rd; + + rs3 = (rs &MIPSDSP_Q3 ) >>24 ; + rs2 = (rs &MIPSDSP_Q2 ) >>16 ; + rs1 = (rs &MIPSDSP_Q1 ) >>8 ; + rs0 = rs &MIPSDSP_Q0 ; + + rt3 = (rt &MIPSDSP_Q3 ) >>24 ; + rt2 = (rt &MIPSDSP_Q2 ) >>16 ; + rt1 = (rt &MIPSDSP_Q1 ) >>8 ; + rt0 = rt &MIPSDSP_Q0 ; + + cc3 = (rs3 <= rt3); + cc2 = (rs2 <= rt2); + cc1 = (rs1 <= rt1); + cc0 = (rs0 <= rt0); + + temp = (cc3 <<3 ) | (cc2 <<2 ) | (cc1 <<1 ) | cc0; + rd = temp; + +return (target_ulong )rd; +} + +void helper_cmp_eq_ph (CPUMIPSState *env,target_ulong rs,target_ulong rt) +{ +int16_t rsh, rsl, rth, rtl; +int32_t flag; +int32_t ccA =0 , ccB =0 ; + + rsh = (rs &MIPSDSP_HI ) >>16 ; + rsl = rs &MIPSDSP_LO ; + rth = (rt &MIPSDSP_HI ) >>16 ; + rtl = rt &MIPSDSP_LO ; + + ccB = (rsh == rth); + ccA = (rsl == rtl); + + flag = (ccB <<1 ) | ccA; +set_DSPControl_24 (env, flag,2 ); +} + +void helper_cmp_lt_ph (CPUMIPSState *env,target_ulong rs,target_ulong rt) +{ +int16_t rsh, rsl, rth, rtl; +int32_t flag; +int32_t ccA =0 , ccB =0 ; + + rsh = (rs &MIPSDSP_HI ) >>16 ; + rsl = rs &MIPSDSP_LO ; + rth = (rt &MIPSDSP_HI ) >>16 ; + rtl = rt &MIPSDSP_LO ; + + ccB = (rsh < rth); + ccA = (rsl < rtl); + + flag = (ccB <<1 ) | ccA; +set_DSPControl_24 (env, flag,2 ); +} + +void helper_cmp_le_ph (CPUMIPSState *env,target_ulong rs,target_ulong rt) +{ +int16_t rsh, rsl, rth, rtl; +int32_t flag; +int32_t ccA =0 , ccB =0 ; + + rsh = (rs &MIPSDSP_HI ) >>16 ; + rsl = rs &MIPSDSP_LO ; + rth = (rt &MIPSDSP_HI ) >>16 ; + rtl = rt &MIPSDSP_LO ; + + ccB = (rsh <= rth); + ccA = (rsl <= rtl); + + flag = (ccB <<1 ) | ccA; +set_DSPControl_24 (env, flag,2 ); +} + +#if defined(TARGET_MIPS64 ) +void helper_cmpu_eq_ob (CPUMIPSState *env,target_ulong rs,target_ulong rt) +{ +int i; +uint8_t rs_t[8 ], rt_t[8 ]; +uint32_t cond; + + cond =0 ; + +for (i =0 ; i <8 ; i++) { + rs_t[i] = (rs >> (8 * i)) &MIPSDSP_Q0 ; + rt_t[i] = (rt >> (8 * i)) &MIPSDSP_Q0 ; + +if (rs_t[i] == rt_t[i]) { + cond |=0x01 << i; + } + } + +set_DSPControl_24 (env, cond,8 ); +} + +void helper_cmpu_lt_ob (CPUMIPSState *env,target_ulong rs,target_ulong rt) +{ +int i; +uint8_t rs_t[8 ], rt_t[8 ]; +uint32_t cond; + + cond =0 ; + +for (i =0 ; i <8 ; i++) { + rs_t[i] = (rs >> (8 * i)) &MIPSDSP_Q0 ; + rt_t[i] = (rt >> (8 * i)) &MIPSDSP_Q0 ; + +if (rs_t[i] < rt_t[i]) { + cond |=0x01 << i; + } + } + +set_DSPControl_24 (env, cond,8 ); +} + +void helper_cmpu_le_ob (CPUMIPSState *env,target_ulong rs,target_ulong rt) +{ +int i; +uint8_t rs_t[8 ], rt_t[8 ]; +uint32_t cond; + + cond =0 ; + +for (i =0 ; i <8 ; i++) { + rs_t[i] = (rs >> (8 * i)) &MIPSDSP_Q0 ; + rt_t[i] = (rt >> (8 * i)) &MIPSDSP_Q0 ; + +if (rs_t[i] <= rt_t[i]) { + cond |=0x01 << i; + } + } + +set_DSPControl_24 (env, cond,8 ); +} + +target_ulong helper_cmpgdu_eq_ob (CPUMIPSState *env, +target_ulong rs,target_ulong rt) +{ +int i; +uint8_t rs_t[8 ], rt_t[8 ]; +uint32_t cond; +uint64_t temp; + + cond =0 ; + +for (i =0 ; i <8 ; i++) { + rs_t[i] = (rs >> (8 * i)) &MIPSDSP_Q0 ; + rt_t[i] = (rt >> (8 * i)) &MIPSDSP_Q0 ; + +if (rs_t[i] == rt_t[i]) { + cond |=0x01 << i; + } + } + +set_DSPControl_24 (env, cond,8 ); + temp = (uint64_t )cond; + +return temp; +} + +target_ulong helper_cmpgdu_lt_ob (CPUMIPSState *env, +target_ulong rs,target_ulong rt) +{ +int i; +uint8_t rs_t[8 ], rt_t[8 ]; +uint32_t cond; +uint64_t temp; + + cond =0 ; + +for (i =0 ; i <8 ; i++) { + rs_t[i] = (rs >> (8 * i)) &MIPSDSP_Q0 ; + rt_t[i] = (rt >> (8 * i)) &MIPSDSP_Q0 ; + +if (rs_t[i] < rt_t[i]) { + cond |=0x01 << i; + } + } + +set_DSPControl_24 (env, cond,8 ); + temp = (uint64_t )cond; + +return temp; +} + +target_ulong helper_cmpgdu_le_ob (CPUMIPSState *env, +target_ulong rs,target_ulong rt) +{ +int i; +uint8_t rs_t[8 ], rt_t[8 ]; +uint32_t cond; +uint64_t temp; + + cond =0 ; + +for (i =0 ; i <8 ; i++) { + rs_t[i] = (rs >> (8 * i)) &MIPSDSP_Q0 ; + rt_t[i] = (rt >> (8 * i)) &MIPSDSP_Q0 ; + +if (rs_t[i] <= rt_t[i]) { + cond |=0x01 << i; + } + } + +set_DSPControl_24 (env, cond,8 ); + temp = (uint64_t )cond; + +return temp; +} + +target_ulong helper_cmpgu_eq_ob (target_ulong rs,target_ulong rt) +{ +int i; +uint8_t rs_t[8 ], rt_t[8 ]; +uint32_t cond; +uint64_t temp; + + cond =0 ; + +for (i =0 ; i <8 ; i++) { + rs_t[i] = (rs >> (8 * i)) &MIPSDSP_Q0 ; + rt_t[i] = (rt >> (8 * i)) &MIPSDSP_Q0 ; + +if (rs_t[i] == rt_t[i]) { + cond |=0x01 << i; + } + } + temp = (uint64_t )cond; + +return temp; +} + +target_ulong helper_cmpgu_lt_ob (target_ulong rs,target_ulong rt) +{ +int i; +uint8_t rs_t[8 ], rt_t[8 ]; +uint32_t cond; +uint64_t temp; + + cond =0 ; + +for (i =0 ; i <8 ; i++) { + rs_t[i] = (rs >> (8 * i)) &MIPSDSP_Q0 ; + rt_t[i] = (rt >> (8 * i)) &MIPSDSP_Q0 ; + +if (rs_t[i] < rt_t[i]) { + cond |=0x01 << i; + } + } + temp = (uint64_t )cond; + +return temp; +} + +target_ulong helper_cmpgu_le_ob (target_ulong rs,target_ulong rt) +{ +int i; +uint8_t rs_t[8 ], rt_t[8 ]; +uint32_t cond; +uint64_t temp; + + cond =0 ; + +for (i =0 ; i <8 ; i++) { + rs_t[i] = (rs >> (8 * i)) &MIPSDSP_Q0 ; + rt_t[i] = (rt >> (8 * i)) &MIPSDSP_Q0 ; + +if (rs_t[i] <= rt_t[i]) { + cond |=0x01 << i; + } + } + temp = (uint64_t )cond; + +return temp; +} + +void helper_cmp_eq_qh (CPUMIPSState *env,target_ulong rs,target_ulong rt) +{ +uint16_t rs3, rs2, rs1, rs0; +uint16_t rt3, rt2, rt1, rt0; +uint32_t cond; + + cond =0 ; + + rs3 = (rs >>48 ) &MIPSDSP_LO ; + rs2 = (rs >>32 ) &MIPSDSP_LO ; + rs1 = (rs >>16 ) &MIPSDSP_LO ; + rs0 = rs &MIPSDSP_LO ; + rt3 = (rt >>48 ) &MIPSDSP_LO ; + rt2 = (rt >>32 ) &MIPSDSP_LO ; + rt1 = (rt >>16 ) &MIPSDSP_LO ; + rt0 = rt &MIPSDSP_LO ; + +if (rs3 == rt3) { + cond |=0x08 ; + } + +if (rs2 == rt2) { + cond |=0x04 ; + } + +if (rs1 == rt1) { + cond |=0x02 ; + } + +if (rs0 == rt0) { + cond |=0x01 ; + } + +set_DSPControl_24 (env, cond,4 ); +} + +void helper_cmp_lt_qh (CPUMIPSState *env,target_ulong rs,target_ulong rt) +{ +uint16_t rs3, rs2, rs1, rs0; +uint16_t rt3, rt2, rt1, rt0; +uint32_t cond; + + cond =0 ; + + rs3 = (rs >>48 ) &MIPSDSP_LO ; + rs2 = (rs >>32 ) &MIPSDSP_LO ; + rs1 = (rs >>16 ) &MIPSDSP_LO ; + rs0 = rs &MIPSDSP_LO ; + rt3 = (rt >>48 ) &MIPSDSP_LO ; + rt2 = (rt >>32 ) &MIPSDSP_LO ; + rt1 = (rt >>16 ) &MIPSDSP_LO ; + rt0 = rt &MIPSDSP_LO ; + +if (rs3 < rt3) { + cond |=0x08 ; + } + +if (rs2 < rt2) { + cond |=0x04 ; + } + +if (rs1 < rt1) { + cond |=0x02 ; + } + +if (rs0 < rt0) { + cond |=0x01 ; + } + +set_DSPControl_24 (env, cond,4 ); +} + +void helper_cmp_le_qh (CPUMIPSState *env,target_ulong rs,target_ulong rt) +{ +uint16_t rs3, rs2, rs1, rs0; +uint16_t rt3, rt2, rt1, rt0; +uint32_t cond; + + cond =0 ; + + rs3 = (rs >>48 ) &MIPSDSP_LO ; + rs2 = (rs >>32 ) &MIPSDSP_LO ; + rs1 = (rs >>16 ) &MIPSDSP_LO ; + rs0 = rs &MIPSDSP_LO ; + rt3 = (rt >>48 ) &MIPSDSP_LO ; + rt2 = (rt >>32 ) &MIPSDSP_LO ; + rt1 = (rt >>16 ) &MIPSDSP_LO ; + rt0 = rt &MIPSDSP_LO ; + +if (rs3 <= rt3) { + cond |=0x08 ; + } + +if (rs2 <= rt2) { + cond |=0x04 ; + } + +if (rs1 <= rt1) { + cond |=0x02 ; + } + +if (rs0 <= rt0) { + cond |=0x01 ; + } + +set_DSPControl_24 (env, cond,4 ); +} + +void helper_cmp_eq_pw (CPUMIPSState *env,target_ulong rs,target_ulong rt) +{ +uint32_t rs1, rs0; +uint32_t rt1, rt0; +uint32_t cond; + + cond =0 ; + + rs1 = (rs >>32 ) &MIPSDSP_LLO ; + rs0 = rs &MIPSDSP_LLO ; + rt1 = (rt >>32 ) &MIPSDSP_LLO ; + rt0 = rt &MIPSDSP_LLO ; + +if (rs1 == rt1) { + cond |=0x2 ; + } + +if (rs0 == rt0) { + cond |=0x1 ; + } + +set_DSPControl_24 (env, cond,2 ); +} + +void helper_cmp_lt_pw (CPUMIPSState *env,target_ulong rs,target_ulong rt) +{ +uint32_t rs1, rs0; +uint32_t rt1, rt0; +uint32_t cond; + + cond =0 ; + + rs1 = (rs >>32 ) &MIPSDSP_LLO ; + rs0 = rs &MIPSDSP_LLO ; + rt1 = (rt >>32 ) &MIPSDSP_LLO ; + rt0 = rt &MIPSDSP_LLO ; + +if (rs1 < rt1) { + cond |=0x2 ; + } + +if (rs0 < rt0) { + cond |=0x1 ; + } + +set_DSPControl_24 (env, cond,2 ); +} + +void helper_cmp_le_pw (CPUMIPSState *env,target_ulong rs,target_ulong rt) +{ +uint32_t rs1, rs0; +uint32_t rt1, rt0; +uint32_t cond; + + cond =0 ; + + rs1 = (rs >>32 ) &MIPSDSP_LLO ; + rs0 = rs &MIPSDSP_LLO ; + rt1 = (rt >>32 ) &MIPSDSP_LLO ; + rt0 = rt &MIPSDSP_LLO ; + +if (rs1 <= rt1) { + cond |=0x2 ; + } + +if (rs0 <= rt0) { + cond |=0x1 ; + } + +set_DSPControl_24 (env, cond,2 ); +} +#endif + +target_ulong helper_pick_qb (CPUMIPSState *env,target_ulong rs,target_ulong rt) +{ +uint8_t rs3, rs2, rs1, rs0; +uint8_t rt3, rt2, rt1, rt0; +uint8_t tp3, tp2, tp1, tp0; + +uint32_t dsp27, dsp26, dsp25, dsp24, rd; +target_ulong dsp; + + rs3 = (rs &MIPSDSP_Q3 ) >>24 ; + rs2 = (rs &MIPSDSP_Q2 ) >>16 ; + rs1 = (rs &MIPSDSP_Q1 ) >>8 ; + rs0 = rs &MIPSDSP_Q0 ; + rt3 = (rt &MIPSDSP_Q3 ) >>24 ; + rt2 = (rt &MIPSDSP_Q2 ) >>16 ; + rt1 = (rt &MIPSDSP_Q1 ) >>8 ; + rt0 = rt &MIPSDSP_Q0 ; + + dsp = env->active_tc.DSPControl; + dsp27 = (dsp >>27 ) &0x01 ; + dsp26 = (dsp >>26 ) &0x01 ; + dsp25 = (dsp >>25 ) &0x01 ; + dsp24 = (dsp >>24 ) &0x01 ; + + tp3 = dsp27 ==1 ? rs3 : rt3; + tp2 = dsp26 ==1 ? rs2 : rt2; + tp1 = dsp25 ==1 ? rs1 : rt1; + tp0 = dsp24 ==1 ? rs0 : rt0; + + rd = ((uint32_t )tp3 <<24 ) | + ((uint32_t )tp2 <<16 ) | + ((uint32_t )tp1 <<8 ) | + (uint32_t )tp0; + +return (target_long )(int32_t )rd; +} + +target_ulong helper_pick_ph (CPUMIPSState *env,target_ulong rs,target_ulong rt) +{ +uint16_t rsh, rsl, rth, rtl; +uint16_t tempB, tempA; +uint32_t dsp25, dsp24; +uint32_t rd; +target_ulong dsp; + + rsh = (rs &MIPSDSP_HI ) >>16 ; + rsl = rs &MIPSDSP_LO ; + rth = (rt &MIPSDSP_HI ) >>16 ; + rtl = rt &MIPSDSP_LO ; + + dsp = env->active_tc.DSPControl; + dsp25 = (dsp >>25 ) &0x01 ; + dsp24 = (dsp >>24 ) &0x01 ; + + tempB = (dsp25 ==1 ) ? rsh : rth; + tempA = (dsp24 ==1 ) ? rsl : rtl; + rd = (((uint32_t )tempB <<16 ) &MIPSDSP_HI ) | (uint32_t )tempA; + +return (target_long )(int32_t )rd; +} + +#if defined(TARGET_MIPS64 ) +target_ulong helper_pick_ob (CPUMIPSState *env,target_ulong rs,target_ulong rt) +{ +int i; +uint32_t cond; +uint8_t rs_t[8 ], rt_t[8 ]; +uint8_t temp[8 ]; +uint64_t result; + + result =0 ; + cond =get_DSPControl_24 (env,8 ); + +for (i =0 ; i <8 ; i++) { + rs_t[i] = (rs >> (8 * i)) &MIPSDSP_Q0 ; + rt_t[i] = (rt >> (8 * i)) &MIPSDSP_Q0 ; + + temp[i] = (cond %2 ) ==1 ? rs_t[i] : rt_t[i]; + cond = cond /2 ; + } + +for (i =0 ; i <8 ; i++) { + result |= (uint64_t )temp[i] << (8 * i); + } + +return result; +} + +target_ulong helper_pick_qh (CPUMIPSState *env,target_ulong rs,target_ulong rt) +{ +uint32_t cond; +uint16_t rs3, rs2, rs1, rs0; +uint16_t rt3, rt2, rt1, rt0; +uint16_t tempD, tempC, tempB, tempA; +uint64_t result; + + cond =get_DSPControl_24 (env,4 ); + + rs3 = (rs >>48 ) &MIPSDSP_LO ; + rs2 = (rs >>32 ) &MIPSDSP_LO ; + rs1 = (rs >>16 ) &MIPSDSP_LO ; + rs0 = rs &MIPSDSP_LO ; + rt3 = (rt >>48 ) &MIPSDSP_LO ; + rt2 = (rt >>32 ) &MIPSDSP_LO ; + rt1 = (rt >>16 ) &MIPSDSP_LO ; + rt0 = rt &MIPSDSP_LO ; + + tempA = ((cond %2 ) ==1 ) ? rs0 : rt0; + cond = cond /2 ; + tempB = ((cond %2 ) ==1 ) ? rs1 : rt1; + cond = cond /2 ; + tempC = ((cond %2 ) ==1 ) ? rs2 : rt2; + cond = cond /2 ; + tempD = ((cond %2 ) ==1 ) ? rs3 : rt3; + + result = ((uint64_t )tempD <<48 ) | ((uint64_t )tempC <<32 ) | + ((uint64_t )tempB <<16 ) | (uint64_t )tempA; + +return result; +} + +target_ulong helper_pick_pw (CPUMIPSState *env,target_ulong rs,target_ulong rt) +{ +uint32_t cond; +uint32_t rs1, rs0; +uint32_t rt1, rt0; +uint32_t tempB, tempA; +uint64_t result; + + cond =get_DSPControl_24 (env,2 ); + rs1 = (rs >>32 ) &MIPSDSP_LLO ; + rs0 = rs &MIPSDSP_LLO ; + rt1 = (rt >>32 ) &MIPSDSP_LLO ; + rt0 = rt &MIPSDSP_LLO ; + + tempA = ((cond %2 ) ==1 ) ? rs0 : rt0; + cond = cond /2 ; + tempB = ((cond %2 ) ==1 ) ? rs1 : rt1; + + result = ((uint64_t )tempB <<32 ) | (uint64_t )tempA; + +return result; +} +#endif + +target_ulong helper_append (target_ulong rt,target_ulong rs,uint32_t sa) +{ +int len; +uint32_t temp; + + len = sa &0x1F ; + +if (len ==0 ) { + temp = rt; + }else { + temp = (rt << len) | (rs & (((uint32_t )0x01 << len) -1 )); + } + rt = temp; + +return (target_long )(int32_t )temp; +} + +#if defined(TARGET_MIPS64 ) +target_ulong helper_dappend (target_ulong rs,target_ulong rt,uint32_t sa) +{ +uint32_t filter; +uint64_t temp; + + filter =0 ; + temp =0 ; + +if (sa ==0 ) { + temp = rt; + }else { + filter = (0x01 << sa) -1 ; + temp = rt << sa; + temp |= rs & filter; + } + +return temp; +} + +#endif + +target_ulong helper_prepend (uint32_t sa,target_ulong rs,target_ulong rt) +{ +uint32_t temp; + +if (sa ==0 ) { + temp = rt; + }else { + temp = (rs << (32 - sa)) | rt >> sa; + } + + rt = temp; + +return (target_long )(int32_t )rt; +} + +#if defined(TARGET_MIPS64 ) +/* +* The instruction describtion really confused me. +* +* Description: +* The shift argument is provided by the instruction argument, +* sa, interpreted as an unsigned five-bit integer and biased +* by 32, allowing shift amounts between 32 and 63. +* +* Operation: +* shift5..0 ← 1 || sa4..0 +* if ( shift = 0 ) then +* +* Why put 1 at sa5, and test shift is equal zero or not? +* +*/ +target_ulong helper_prependd (target_ulong rs,target_ulong rt,uint32_t sa) +{ +uint32_t shift; +uint64_t temp; + + shift = sa &0x10 ; + +if (shift ==0 ) { + temp = rt; + }else { + temp = (rs << (64 - shift)) | (rt >> shift); + } + +return temp; +} + +target_ulong helper_prependw (target_ulong rs,target_ulong rt,uint32_t sa) +{ +uint32_t shift; +uint64_t temp; + + shift = sa; + +if (shift ==0 ) { + temp = rt; + }else { + temp = (rs << (64 - shift)) | (rt >> shift); + } + +return temp; +} +#endif + +target_ulong helper_balign (uint32_t bp,target_ulong rt,target_ulong rs) +{ +uint32_t temp; + bp = bp &0x03 ; + +if (bp ==0 || bp ==2 ) { +return rt; + }else { + temp = (rt << (8 * bp)) | (rs >> (8 * (4 - bp))); + } + rt = temp; + +return (target_long )(int32_t )rt; +} + +#if defined(TARGET_MIPS64 ) +target_ulong helper_dbalign (target_ulong rs,target_ulong rt,uint32_t sa) +{ +uint8_t bp; +uint64_t temp; + + bp = sa &0x07 ; + +if ((bp ==0 ) || (bp ==2 ) || (bp ==4 )) { + temp = rt; + }else { + temp = (rt << (8 * bp)) | (rs >> (8 * (8 - bp))); + } + +return temp; +} + +#endif + +target_ulong helper_packrl_ph (target_ulong rs,target_ulong rt) +{ +uint16_t rsl, rth; +uint32_t rd; + + rsl = rs &MIPSDSP_LO ; + rth = (rt &MIPSDSP_HI ) >>16 ; + rd = (rsl <<16 ) | rth; + +return (target_long )(int32_t )rd; +} + +#if defined(TARGET_MIPS64 ) +target_ulong helper_packrl_pw (target_ulong rs,target_ulong rt) +{ +uint32_t rs0, rt1; +uint32_t tempB, tempA; +uint64_t temp; + + rs0 = rs &MIPSDSP_LLO ; + rt1 = (rt >>32 ) &MIPSDSP_LLO ; + + tempB = rs0; + tempA = rt1; + + temp = ((uint64_t )tempB <<32 ) | (uint64_t )tempA; + +return temp; +} +#endif +#undef MIPSDSP_LHI#undef MIPSDSP_LLO#undef MIPSDSP_HI
target-mips/helper.h +52 -0
56 lines not on this page · raw message
target-mips/translate.c +320 -2
388 lines not on this page · raw message
Signature · 1 line
1.7.9.5
Re: [Qemu-devel] [PATCH v7 10/14] target-mips-ase-dsp: Add compare-pick instructions
Quoted 174 lines · Jia Liu
Add MIPS ASE DSP Compare-Pick instructions.
Signed-off-by Jia Liu <[email protected]>--- target-mips/dsp_helper.c | 917 ++++++++++++++++++++++++++++++++++++++++++++++ target-mips/helper.h | 52 +++ target-mips/translate.c | 322 +++++++++++++++- 3 files changed, 1289 insertions(+), 2 deletions(-)target-mips/dsp_helper.c +157
-0@@ -6290,6 +6290,923 @@ target_ulong helper_dinsv(CPUMIPSState *env, target_ulong rs, target_ulong rt) }#endif +/** DSP Compare-Pick Sub-class insns **/ +void helper_cmpu_eq_qb (CPUMIPSState *env,target_ulong rs,target_ulong rt) +{ +uint8_t rs3, rs2, rs1, rs0; +uint8_t rt3, rt2, rt1, rt0; +uint32_t cc3 =0 , cc2 =0 , cc1 =0 , cc0 =0 ; +uint32_t flag; + + rs3 = (rs &MIPSDSP_Q3 ) >>24 ; + rs2 = (rs &MIPSDSP_Q2 ) >>16 ; + rs1 = (rs &MIPSDSP_Q1 ) >>8 ; + rs0 = rs &MIPSDSP_Q0 ; + + rt3 = (rt &MIPSDSP_Q3 ) >>24 ; + rt2 = (rt &MIPSDSP_Q2 ) >>16 ; + rt1 = (rt &MIPSDSP_Q1 ) >>8 ; + rt0 = rt &MIPSDSP_Q0 ; + + cc3 = (rs3 == rt3); + cc2 = (rs2 == rt2); + cc1 = (rs1 == rt1); + cc0 = (rs0 == rt0); + + flag = (cc3 <<3 ) | (cc2 <<2 ) | (cc1 <<1 ) | cc0; +set_DSPControl_24 (env, flag,4 ); +} + +void helper_cmpu_lt_qb (CPUMIPSState *env,target_ulong rs,target_ulong rt) +{ +uint8_t rs3, rs2, rs1, rs0; +uint8_t rt3, rt2, rt1, rt0; +uint32_t cc3 =0 , cc2 =0 , cc1 =0 , cc0 =0 ; +uint32_t flag; + + rs3 = (rs &MIPSDSP_Q3 ) >>24 ; + rs2 = (rs &MIPSDSP_Q2 ) >>16 ; + rs1 = (rs &MIPSDSP_Q1 ) >>8 ; + rs0 = rs &MIPSDSP_Q0 ; + + rt3 = (rt &MIPSDSP_Q3 ) >>24 ; + rt2 = (rt &MIPSDSP_Q2 ) >>16 ; + rt1 = (rt &MIPSDSP_Q1 ) >>8 ; + rt0 = rt &MIPSDSP_Q0 ; + + cc3 = (rs3 < rt3); + cc2 = (rs2 < rt2); + cc1 = (rs1 < rt1); + cc0 = (rs0 < rt0); + + flag = (cc3 <<3 ) | (cc2 <<2 ) | (cc1 <<1 ) | cc0; +set_DSPControl_24 (env, flag,4 ); +} + +void helper_cmpu_le_qb (CPUMIPSState *env,target_ulong rs,target_ulong rt) +{ +uint8_t rs3, rs2, rs1, rs0; +uint8_t rt3, rt2, rt1, rt0; +uint32_t cc3 =0 , cc2 =0 , cc1 =0 , cc0 =0 ; +uint32_t flag; + + rs3 = (rs &MIPSDSP_Q3 ) >>24 ; + rs2 = (rs &MIPSDSP_Q2 ) >>16 ; + rs1 = (rs &MIPSDSP_Q1 ) >>8 ; + rs0 = rs &MIPSDSP_Q0 ; + + rt3 = (rt &MIPSDSP_Q3 ) >>24 ; + rt2 = (rt &MIPSDSP_Q2 ) >>16 ; + rt1 = (rt &MIPSDSP_Q1 ) >>8 ; + rt0 = rt &MIPSDSP_Q0 ; + + cc3 = (rs3 <= rt3); + cc2 = (rs2 <= rt2); + cc1 = (rs1 <= rt1); + cc0 = (rs0 <= rt0); + + flag = (cc3 <<3 ) | (cc2 <<2 ) | (cc1 <<1 ) | cc0; +set_DSPControl_24 (env, flag,4 ); +} + + +target_ulong helper_cmpgu_eq_qb (target_ulong rs,target_ulong rt) +{ +uint8_t rs3, rs2, rs1, rs0; +uint8_t rt3, rt2, rt1, rt0; +uint8_t cc3 =0 , cc2 =0 , cc1 =0 , cc0 =0 ; +uint32_t temp; +uint32_t rd; + + rs3 = (rs &MIPSDSP_Q3 ) >>24 ; + rs2 = (rs &MIPSDSP_Q2 ) >>16 ; + rs1 = (rs &MIPSDSP_Q1 ) >>8 ; + rs0 = rs &MIPSDSP_Q0 ; + + rt3 = (rt &MIPSDSP_Q3 ) >>24 ; + rt2 = (rt &MIPSDSP_Q2 ) >>16 ; + rt1 = (rt &MIPSDSP_Q1 ) >>8 ; + rt0 = rt &MIPSDSP_Q0 ; + + cc3 = (rs3 == rt3); + cc2 = (rs2 == rt2); + cc1 = (rs1 == rt1); + cc0 = (rs0 == rt0); + + temp = (cc3 <<3 ) | (cc2 <<2 ) | (cc1 <<1 ) | cc0; + rd = temp; + +return (target_ulong )rd; +} + +target_ulong helper_cmpgu_lt_qb (target_ulong rs,target_ulong rt) +{ +uint8_t rs3, rs2, rs1, rs0; +uint8_t rt3, rt2, rt1, rt0; +uint32_t cc3 =0 , cc2 =0 , cc1 =0 , cc0 =0 ; +uint32_t temp; +uint32_t rd; + + rs3 = (rs &MIPSDSP_Q3 ) >>24 ; + rs2 = (rs &MIPSDSP_Q2 ) >>16 ; + rs1 = (rs &MIPSDSP_Q1 ) >>8 ; + rs0 = rs &MIPSDSP_Q0 ; + + rt3 = (rt &MIPSDSP_Q3 ) >>24 ; + rt2 = (rt &MIPSDSP_Q2 ) >>16 ; + rt1 = (rt &MIPSDSP_Q1 ) >>8 ; + rt0 = rt &MIPSDSP_Q0 ; + + cc3 = (rs3 < rt3); + cc2 = (rs2 < rt2); + cc1 = (rs1 < rt1); + cc0 = (rs0 < rt0); + + temp = (cc3 <<3 ) | (cc2 <<2 ) | (cc1 <<1 ) | cc0; + rd = temp; + +return (target_ulong )rd; +} + +target_ulong helper_cmpgu_le_qb (target_ulong rs,target_ulong rt) +{ +uint8_t rs3, rs2, rs1, rs0; +uint8_t rt3, rt2, rt1, rt0; +uint32_t cc3 =0 , cc2 =0 , cc1 =0 , cc0 =0 ; +uint32_t temp; +uint32_t rd; + + rs3 = (rs &MIPSDSP_Q3 ) >>24 ; + rs2 = (rs &MIPSDSP_Q2 ) >>16 ; + rs1 = (rs &MIPSDSP_Q1 ) >>8 ; + rs0 = rs &MIPSDSP_Q0 ; + + rt3 = (rt &MIPSDSP_Q3 ) >>24 ; + rt2 = (rt &MIPSDSP_Q2 ) >>16 ; + rt1 = (rt &MIPSDSP_Q1 ) >>8 ; + rt0 = rt &MIPSDSP_Q0 ; + + cc3 = (rs3 <= rt3);
target-mips/dsp_helper.c target_ulong helper_dinsv(CPUMIPSState *env, target_ulong rs, target_ulong rt) · line 6459
Quoted 10 lines
target-mips/dsp_helper.c +10
-0+ cc2 = (rs2 <= rt2); + cc1 = (rs1 <= rt1); + cc0 = (rs0 <= rt0); + + temp = (cc3 <<3 ) | (cc2 <<2 ) | (cc1 <<1 ) | cc0; + rd = temp; + +return (target_ulong )rd; +} +
All the functions above only differ by their name and the comparison operator. You should generate them with a macro.
Quoted 44 lines
target-mips/dsp_helper.c +44
-0+void helper_cmp_eq_ph (CPUMIPSState *env,target_ulong rs,target_ulong rt) +{ +int16_t rsh, rsl, rth, rtl; +int32_t flag; +int32_t ccA =0 , ccB =0 ; + + rsh = (rs &MIPSDSP_HI ) >>16 ; + rsl = rs &MIPSDSP_LO ; + rth = (rt &MIPSDSP_HI ) >>16 ; + rtl = rt &MIPSDSP_LO ; + + ccB = (rsh == rth); + ccA = (rsl == rtl); + + flag = (ccB <<1 ) | ccA; +set_DSPControl_24 (env, flag,2 ); +} + +void helper_cmp_lt_ph (CPUMIPSState *env,target_ulong rs,target_ulong rt) +{ +int16_t rsh, rsl, rth, rtl; +int32_t flag; +int32_t ccA =0 , ccB =0 ; + + rsh = (rs &MIPSDSP_HI ) >>16 ; + rsl = rs &MIPSDSP_LO ; + rth = (rt &MIPSDSP_HI ) >>16 ; + rtl = rt &MIPSDSP_LO ; + + ccB = (rsh < rth); + ccA = (rsl < rtl); + + flag = (ccB <<1 ) | ccA; +set_DSPControl_24 (env, flag,2 ); +} + +void helper_cmp_le_ph (CPUMIPSState *env,target_ulong rs,target_ulong rt) +{ +int16_t rsh, rsl, rth, rtl; +int32_t flag; +int32_t ccA =0 , ccB =0 ; + + rsh = (rs &MIPSDSP_HI ) >>16 ; + rsl = rs &MIPSDSP_LO ;
target-mips/dsp_helper.c target_ulong helper_dinsv(CPUMIPSState *env, target_ulong rs, target_ulong rt) · line 6513
Quoted 10 lines
target-mips/dsp_helper.c +10
-0+ rth = (rt &MIPSDSP_HI ) >>16 ; + rtl = rt &MIPSDSP_LO ; + + ccB = (rsh <= rth); + ccA = (rsl <= rtl); + + flag = (ccB <<1 ) | ccA; +set_DSPControl_24 (env, flag,2 ); +} +
Same, and so on below.
Quoted 552 lines
target-mips/dsp_helper.c +552
-0+#if defined(TARGET_MIPS64 ) +void helper_cmpu_eq_ob (CPUMIPSState *env,target_ulong rs,target_ulong rt) +{ +int i; +uint8_t rs_t[8 ], rt_t[8 ]; +uint32_t cond; + + cond =0 ; + +for (i =0 ; i <8 ; i++) { + rs_t[i] = (rs >> (8 * i)) &MIPSDSP_Q0 ; + rt_t[i] = (rt >> (8 * i)) &MIPSDSP_Q0 ; + +if (rs_t[i] == rt_t[i]) { + cond |=0x01 << i; + } + } + +set_DSPControl_24 (env, cond,8 ); +} + +void helper_cmpu_lt_ob (CPUMIPSState *env,target_ulong rs,target_ulong rt) +{ +int i; +uint8_t rs_t[8 ], rt_t[8 ]; +uint32_t cond; + + cond =0 ; + +for (i =0 ; i <8 ; i++) { + rs_t[i] = (rs >> (8 * i)) &MIPSDSP_Q0 ; + rt_t[i] = (rt >> (8 * i)) &MIPSDSP_Q0 ; + +if (rs_t[i] < rt_t[i]) { + cond |=0x01 << i; + } + } + +set_DSPControl_24 (env, cond,8 ); +} + +void helper_cmpu_le_ob (CPUMIPSState *env,target_ulong rs,target_ulong rt) +{ +int i; +uint8_t rs_t[8 ], rt_t[8 ]; +uint32_t cond; + + cond =0 ; + +for (i =0 ; i <8 ; i++) { + rs_t[i] = (rs >> (8 * i)) &MIPSDSP_Q0 ; + rt_t[i] = (rt >> (8 * i)) &MIPSDSP_Q0 ; + +if (rs_t[i] <= rt_t[i]) { + cond |=0x01 << i; + } + } + +set_DSPControl_24 (env, cond,8 ); +} + +target_ulong helper_cmpgdu_eq_ob (CPUMIPSState *env, +target_ulong rs,target_ulong rt) +{ +int i; +uint8_t rs_t[8 ], rt_t[8 ]; +uint32_t cond; +uint64_t temp; + + cond =0 ; + +for (i =0 ; i <8 ; i++) { + rs_t[i] = (rs >> (8 * i)) &MIPSDSP_Q0 ; + rt_t[i] = (rt >> (8 * i)) &MIPSDSP_Q0 ; + +if (rs_t[i] == rt_t[i]) { + cond |=0x01 << i; + } + } + +set_DSPControl_24 (env, cond,8 ); + temp = (uint64_t )cond; + +return temp; +} + +target_ulong helper_cmpgdu_lt_ob (CPUMIPSState *env, +target_ulong rs,target_ulong rt) +{ +int i; +uint8_t rs_t[8 ], rt_t[8 ]; +uint32_t cond; +uint64_t temp; + + cond =0 ; + +for (i =0 ; i <8 ; i++) { + rs_t[i] = (rs >> (8 * i)) &MIPSDSP_Q0 ; + rt_t[i] = (rt >> (8 * i)) &MIPSDSP_Q0 ; + +if (rs_t[i] < rt_t[i]) { + cond |=0x01 << i; + } + } + +set_DSPControl_24 (env, cond,8 ); + temp = (uint64_t )cond; + +return temp; +} + +target_ulong helper_cmpgdu_le_ob (CPUMIPSState *env, +target_ulong rs,target_ulong rt) +{ +int i; +uint8_t rs_t[8 ], rt_t[8 ]; +uint32_t cond; +uint64_t temp; + + cond =0 ; + +for (i =0 ; i <8 ; i++) { + rs_t[i] = (rs >> (8 * i)) &MIPSDSP_Q0 ; + rt_t[i] = (rt >> (8 * i)) &MIPSDSP_Q0 ; + +if (rs_t[i] <= rt_t[i]) { + cond |=0x01 << i; + } + } + +set_DSPControl_24 (env, cond,8 ); + temp = (uint64_t )cond; + +return temp; +} + +target_ulong helper_cmpgu_eq_ob (target_ulong rs,target_ulong rt) +{ +int i; +uint8_t rs_t[8 ], rt_t[8 ]; +uint32_t cond; +uint64_t temp; + + cond =0 ; + +for (i =0 ; i <8 ; i++) { + rs_t[i] = (rs >> (8 * i)) &MIPSDSP_Q0 ; + rt_t[i] = (rt >> (8 * i)) &MIPSDSP_Q0 ; + +if (rs_t[i] == rt_t[i]) { + cond |=0x01 << i; + } + } + temp = (uint64_t )cond; + +return temp; +} + +target_ulong helper_cmpgu_lt_ob (target_ulong rs,target_ulong rt) +{ +int i; +uint8_t rs_t[8 ], rt_t[8 ]; +uint32_t cond; +uint64_t temp; + + cond =0 ; + +for (i =0 ; i <8 ; i++) { + rs_t[i] = (rs >> (8 * i)) &MIPSDSP_Q0 ; + rt_t[i] = (rt >> (8 * i)) &MIPSDSP_Q0 ; + +if (rs_t[i] < rt_t[i]) { + cond |=0x01 << i; + } + } + temp = (uint64_t )cond; + +return temp; +} + +target_ulong helper_cmpgu_le_ob (target_ulong rs,target_ulong rt) +{ +int i; +uint8_t rs_t[8 ], rt_t[8 ]; +uint32_t cond; +uint64_t temp; + + cond =0 ; + +for (i =0 ; i <8 ; i++) { + rs_t[i] = (rs >> (8 * i)) &MIPSDSP_Q0 ; + rt_t[i] = (rt >> (8 * i)) &MIPSDSP_Q0 ; + +if (rs_t[i] <= rt_t[i]) { + cond |=0x01 << i; + } + } + temp = (uint64_t )cond; + +return temp; +} + +void helper_cmp_eq_qh (CPUMIPSState *env,target_ulong rs,target_ulong rt) +{ +uint16_t rs3, rs2, rs1, rs0; +uint16_t rt3, rt2, rt1, rt0; +uint32_t cond; + + cond =0 ; + + rs3 = (rs >>48 ) &MIPSDSP_LO ; + rs2 = (rs >>32 ) &MIPSDSP_LO ; + rs1 = (rs >>16 ) &MIPSDSP_LO ; + rs0 = rs &MIPSDSP_LO ; + rt3 = (rt >>48 ) &MIPSDSP_LO ; + rt2 = (rt >>32 ) &MIPSDSP_LO ; + rt1 = (rt >>16 ) &MIPSDSP_LO ; + rt0 = rt &MIPSDSP_LO ; + +if (rs3 == rt3) { + cond |=0x08 ; + } + +if (rs2 == rt2) { + cond |=0x04 ; + } + +if (rs1 == rt1) { + cond |=0x02 ; + } + +if (rs0 == rt0) { + cond |=0x01 ; + } + +set_DSPControl_24 (env, cond,4 ); +} + +void helper_cmp_lt_qh (CPUMIPSState *env,target_ulong rs,target_ulong rt) +{ +uint16_t rs3, rs2, rs1, rs0; +uint16_t rt3, rt2, rt1, rt0; +uint32_t cond; + + cond =0 ; + + rs3 = (rs >>48 ) &MIPSDSP_LO ; + rs2 = (rs >>32 ) &MIPSDSP_LO ; + rs1 = (rs >>16 ) &MIPSDSP_LO ; + rs0 = rs &MIPSDSP_LO ; + rt3 = (rt >>48 ) &MIPSDSP_LO ; + rt2 = (rt >>32 ) &MIPSDSP_LO ; + rt1 = (rt >>16 ) &MIPSDSP_LO ; + rt0 = rt &MIPSDSP_LO ; + +if (rs3 < rt3) { + cond |=0x08 ; + } + +if (rs2 < rt2) { + cond |=0x04 ; + } + +if (rs1 < rt1) { + cond |=0x02 ; + } + +if (rs0 < rt0) { + cond |=0x01 ; + } + +set_DSPControl_24 (env, cond,4 ); +} + +void helper_cmp_le_qh (CPUMIPSState *env,target_ulong rs,target_ulong rt) +{ +uint16_t rs3, rs2, rs1, rs0; +uint16_t rt3, rt2, rt1, rt0; +uint32_t cond; + + cond =0 ; + + rs3 = (rs >>48 ) &MIPSDSP_LO ; + rs2 = (rs >>32 ) &MIPSDSP_LO ; + rs1 = (rs >>16 ) &MIPSDSP_LO ; + rs0 = rs &MIPSDSP_LO ; + rt3 = (rt >>48 ) &MIPSDSP_LO ; + rt2 = (rt >>32 ) &MIPSDSP_LO ; + rt1 = (rt >>16 ) &MIPSDSP_LO ; + rt0 = rt &MIPSDSP_LO ; + +if (rs3 <= rt3) { + cond |=0x08 ; + } + +if (rs2 <= rt2) { + cond |=0x04 ; + } + +if (rs1 <= rt1) { + cond |=0x02 ; + } + +if (rs0 <= rt0) { + cond |=0x01 ; + } + +set_DSPControl_24 (env, cond,4 ); +} + +void helper_cmp_eq_pw (CPUMIPSState *env,target_ulong rs,target_ulong rt) +{ +uint32_t rs1, rs0; +uint32_t rt1, rt0; +uint32_t cond; + + cond =0 ; + + rs1 = (rs >>32 ) &MIPSDSP_LLO ; + rs0 = rs &MIPSDSP_LLO ; + rt1 = (rt >>32 ) &MIPSDSP_LLO ; + rt0 = rt &MIPSDSP_LLO ; + +if (rs1 == rt1) { + cond |=0x2 ; + } + +if (rs0 == rt0) { + cond |=0x1 ; + } + +set_DSPControl_24 (env, cond,2 ); +} + +void helper_cmp_lt_pw (CPUMIPSState *env,target_ulong rs,target_ulong rt) +{ +uint32_t rs1, rs0; +uint32_t rt1, rt0; +uint32_t cond; + + cond =0 ; + + rs1 = (rs >>32 ) &MIPSDSP_LLO ; + rs0 = rs &MIPSDSP_LLO ; + rt1 = (rt >>32 ) &MIPSDSP_LLO ; + rt0 = rt &MIPSDSP_LLO ; + +if (rs1 < rt1) { + cond |=0x2 ; + } + +if (rs0 < rt0) { + cond |=0x1 ; + } + +set_DSPControl_24 (env, cond,2 ); +} + +void helper_cmp_le_pw (CPUMIPSState *env,target_ulong rs,target_ulong rt) +{ +uint32_t rs1, rs0; +uint32_t rt1, rt0; +uint32_t cond; + + cond =0 ; + + rs1 = (rs >>32 ) &MIPSDSP_LLO ; + rs0 = rs &MIPSDSP_LLO ; + rt1 = (rt >>32 ) &MIPSDSP_LLO ; + rt0 = rt &MIPSDSP_LLO ; + +if (rs1 <= rt1) { + cond |=0x2 ; + } + +if (rs0 <= rt0) { + cond |=0x1 ; + } + +set_DSPControl_24 (env, cond,2 ); +} +#endif + +target_ulong helper_pick_qb (CPUMIPSState *env,target_ulong rs,target_ulong rt) +{ +uint8_t rs3, rs2, rs1, rs0; +uint8_t rt3, rt2, rt1, rt0; +uint8_t tp3, tp2, tp1, tp0; + +uint32_t dsp27, dsp26, dsp25, dsp24, rd; +target_ulong dsp; + + rs3 = (rs &MIPSDSP_Q3 ) >>24 ; + rs2 = (rs &MIPSDSP_Q2 ) >>16 ; + rs1 = (rs &MIPSDSP_Q1 ) >>8 ; + rs0 = rs &MIPSDSP_Q0 ; + rt3 = (rt &MIPSDSP_Q3 ) >>24 ; + rt2 = (rt &MIPSDSP_Q2 ) >>16 ; + rt1 = (rt &MIPSDSP_Q1 ) >>8 ; + rt0 = rt &MIPSDSP_Q0 ; + + dsp = env->active_tc.DSPControl; + dsp27 = (dsp >>27 ) &0x01 ; + dsp26 = (dsp >>26 ) &0x01 ; + dsp25 = (dsp >>25 ) &0x01 ; + dsp24 = (dsp >>24 ) &0x01 ; + + tp3 = dsp27 ==1 ? rs3 : rt3; + tp2 = dsp26 ==1 ? rs2 : rt2; + tp1 = dsp25 ==1 ? rs1 : rt1; + tp0 = dsp24 ==1 ? rs0 : rt0; + + rd = ((uint32_t )tp3 <<24 ) | + ((uint32_t )tp2 <<16 ) | + ((uint32_t )tp1 <<8 ) | + (uint32_t )tp0; + +return (target_long )(int32_t )rd; +} + +target_ulong helper_pick_ph (CPUMIPSState *env,target_ulong rs,target_ulong rt) +{ +uint16_t rsh, rsl, rth, rtl; +uint16_t tempB, tempA; +uint32_t dsp25, dsp24; +uint32_t rd; +target_ulong dsp; + + rsh = (rs &MIPSDSP_HI ) >>16 ; + rsl = rs &MIPSDSP_LO ; + rth = (rt &MIPSDSP_HI ) >>16 ; + rtl = rt &MIPSDSP_LO ; + + dsp = env->active_tc.DSPControl; + dsp25 = (dsp >>25 ) &0x01 ; + dsp24 = (dsp >>24 ) &0x01 ; + + tempB = (dsp25 ==1 ) ? rsh : rth; + tempA = (dsp24 ==1 ) ? rsl : rtl; + rd = (((uint32_t )tempB <<16 ) &MIPSDSP_HI ) | (uint32_t )tempA; + +return (target_long )(int32_t )rd; +} + +#if defined(TARGET_MIPS64 ) +target_ulong helper_pick_ob (CPUMIPSState *env,target_ulong rs,target_ulong rt) +{ +int i; +uint32_t cond; +uint8_t rs_t[8 ], rt_t[8 ]; +uint8_t temp[8 ]; +uint64_t result; + + result =0 ; + cond =get_DSPControl_24 (env,8 ); + +for (i =0 ; i <8 ; i++) { + rs_t[i] = (rs >> (8 * i)) &MIPSDSP_Q0 ; + rt_t[i] = (rt >> (8 * i)) &MIPSDSP_Q0 ; + + temp[i] = (cond %2 ) ==1 ? rs_t[i] : rt_t[i]; + cond = cond /2 ; + } + +for (i =0 ; i <8 ; i++) { + result |= (uint64_t )temp[i] << (8 * i); + } + +return result; +} + +target_ulong helper_pick_qh (CPUMIPSState *env,target_ulong rs,target_ulong rt) +{ +uint32_t cond; +uint16_t rs3, rs2, rs1, rs0; +uint16_t rt3, rt2, rt1, rt0; +uint16_t tempD, tempC, tempB, tempA; +uint64_t result; + + cond =get_DSPControl_24 (env,4 ); + + rs3 = (rs >>48 ) &MIPSDSP_LO ; + rs2 = (rs >>32 ) &MIPSDSP_LO ; + rs1 = (rs >>16 ) &MIPSDSP_LO ; + rs0 = rs &MIPSDSP_LO ; + rt3 = (rt >>48 ) &MIPSDSP_LO ; + rt2 = (rt >>32 ) &MIPSDSP_LO ; + rt1 = (rt >>16 ) &MIPSDSP_LO ; + rt0 = rt &MIPSDSP_LO ; + + tempA = ((cond %2 ) ==1 ) ? rs0 : rt0; + cond = cond /2 ; + tempB = ((cond %2 ) ==1 ) ? rs1 : rt1; + cond = cond /2 ; + tempC = ((cond %2 ) ==1 ) ? rs2 : rt2; + cond = cond /2 ; + tempD = ((cond %2 ) ==1 ) ? rs3 : rt3; + + result = ((uint64_t )tempD <<48 ) | ((uint64_t )tempC <<32 ) | + ((uint64_t )tempB <<16 ) | (uint64_t )tempA; + +return result; +} + +target_ulong helper_pick_pw (CPUMIPSState *env,target_ulong rs,target_ulong rt) +{ +uint32_t cond; +uint32_t rs1, rs0; +uint32_t rt1, rt0; +uint32_t tempB, tempA; +uint64_t result; + + cond =get_DSPControl_24 (env,2 ); + rs1 = (rs >>32 ) &MIPSDSP_LLO ; + rs0 = rs &MIPSDSP_LLO ; + rt1 = (rt >>32 ) &MIPSDSP_LLO ; + rt0 = rt &MIPSDSP_LLO ; + + tempA = ((cond %2 ) ==1 ) ? rs0 : rt0; + cond = cond /2 ; + tempB = ((cond %2 ) ==1 ) ? rs1 : rt1; + + result = ((uint64_t )tempB <<32 ) | (uint64_t )tempA; + +return result; +} +#endif + +target_ulong helper_append (target_ulong rt,target_ulong rs,uint32_t sa) +{ +int len; +uint32_t temp; + + len = sa &0x1F ; + +if (len ==0 ) { + temp = rt; + }else { + temp = (rt << len) | (rs & (((uint32_t )0x01 << len) -1 )); + } + rt = temp; + +return (target_long )(int32_t )temp; +} + +#if defined(TARGET_MIPS64 ) +target_ulong helper_dappend (target_ulong rs,target_ulong rt,uint32_t sa) +{ +uint32_t filter; +uint64_t temp; + + filter =0 ;
target-mips/dsp_helper.c target_ulong helper_dinsv(CPUMIPSState *env, target_ulong rs, target_ulong rt) · line 7075
Quoted 10 lines
target-mips/dsp_helper.c +10
-0+ temp =0 ; + +if (sa ==0 ) { + temp = rt; + }else { + filter = (0x01 << sa) -1 ; + temp = rt << sa; + temp |= rs & filter; + } +
You don't need to check for the zero shift. This is perfectly defined.
Quoted 10 lines
target-mips/dsp_helper.c +10
-0+ return temp; +} + +#endif + +target_ulong helper_prepend (uint32_t sa,target_ulong rs,target_ulong rt) +{ +uint32_t temp; + +if (sa ==0 ) {
target-mips/dsp_helper.c target_ulong helper_dinsv(CPUMIPSState *env, target_ulong rs, target_ulong rt) · line 7095
Quoted 10 lines
target-mips/dsp_helper.c +10
-0+ temp = rt; + }else { + temp = (rs << (32 - sa)) | rt >> sa; + } + + rt = temp; + +return (target_long )(int32_t )rt; +} +
Same.
Quoted 585 lines
target-mips/dsp_helper.c +114
-0+#if defined(TARGET_MIPS64 ) +/* +* The instruction describtion really confused me. +* +* Description: +* The shift argument is provided by the instruction argument, +* sa, interpreted as an unsigned five-bit integer and biased +* by 32, allowing shift amounts between 32 and 63. +* +* Operation: +* shift5..0 ← 1 || sa4..0 +* if ( shift = 0 ) then +* +* Why put 1 at sa5, and test shift is equal zero or not? +* +*/ +target_ulong helper_prependd (target_ulong rs,target_ulong rt,uint32_t sa) +{ +uint32_t shift; +uint64_t temp; + + shift = sa &0x10 ; + +if (shift ==0 ) { + temp = rt; + }else { + temp = (rs << (64 - shift)) | (rt >> shift); + } + +return temp; +} + +target_ulong helper_prependw (target_ulong rs,target_ulong rt,uint32_t sa) +{ +uint32_t shift; +uint64_t temp; + + shift = sa; + +if (shift ==0 ) { + temp = rt; + }else { + temp = (rs << (64 - shift)) | (rt >> shift); + } + +return temp; +} +#endif + +target_ulong helper_balign (uint32_t bp,target_ulong rt,target_ulong rs) +{ +uint32_t temp; + bp = bp &0x03 ; + +if (bp ==0 || bp ==2 ) { +return rt; + }else { + temp = (rt << (8 * bp)) | (rs >> (8 * (4 - bp))); + } + rt = temp; + +return (target_long )(int32_t )rt; +} + +#if defined(TARGET_MIPS64 ) +target_ulong helper_dbalign (target_ulong rs,target_ulong rt,uint32_t sa) +{ +uint8_t bp; +uint64_t temp; + + bp = sa &0x07 ; + +if ((bp ==0 ) || (bp ==2 ) || (bp ==4 )) { + temp = rt; + }else { + temp = (rt << (8 * bp)) | (rs >> (8 * (8 - bp))); + } + +return temp; +} + +#endif + +target_ulong helper_packrl_ph (target_ulong rs,target_ulong rt) +{ +uint16_t rsl, rth; +uint32_t rd; + + rsl = rs &MIPSDSP_LO ; + rth = (rt &MIPSDSP_HI ) >>16 ; + rd = (rsl <<16 ) | rth; + +return (target_long )(int32_t )rd; +} + +#if defined(TARGET_MIPS64 ) +target_ulong helper_packrl_pw (target_ulong rs,target_ulong rt) +{ +uint32_t rs0, rt1; +uint32_t tempB, tempA; +uint64_t temp; + + rs0 = rs &MIPSDSP_LLO ; + rt1 = (rt >>32 ) &MIPSDSP_LLO ; + + tempB = rs0; + tempA = rt1; + + temp = ((uint64_t )tempB <<32 ) | (uint64_t )tempA; + +return temp; +} +#endif +#undef MIPSDSP_LHI#undef MIPSDSP_LLO#undef MIPSDSP_HItarget-mips/helper.h +52
-0@@ -589,4 +589,56 @@ DEF_HELPER_FLAGS_3(insv, 0, tl, env, tl, tl)DEF_HELPER_FLAGS_3 (dinsv,0 , tl, env, tl, tl);#endif +/* DSP Compare-Pick Sub-class insns */ +DEF_HELPER_FLAGS_3(cmpu_eq_qb, 0, void, env, tl, tl) +DEF_HELPER_FLAGS_3(cmpu_lt_qb, 0, void, env, tl, tl) +DEF_HELPER_FLAGS_3(cmpu_le_qb, 0, void, env, tl, tl) +DEF_HELPER_FLAGS_2(cmpgu_eq_qb, TCG_CALL_CONST | TCG_CALL_PURE, tl, tl, tl) +DEF_HELPER_FLAGS_2(cmpgu_lt_qb, TCG_CALL_CONST | TCG_CALL_PURE, tl, tl, tl) +DEF_HELPER_FLAGS_2(cmpgu_le_qb, TCG_CALL_CONST | TCG_CALL_PURE, tl, tl, tl) +DEF_HELPER_FLAGS_3(cmp_eq_ph, 0, void, env, tl, tl) +DEF_HELPER_FLAGS_3(cmp_lt_ph, 0, void, env, tl, tl) +DEF_HELPER_FLAGS_3(cmp_le_ph, 0, void, env, tl, tl) +#if defined(TARGET_MIPS64 ) +DEF_HELPER_FLAGS_3(cmpu_eq_ob, 0, void, env, tl, tl) +DEF_HELPER_FLAGS_3(cmpu_lt_ob, 0, void, env, tl, tl) +DEF_HELPER_FLAGS_3(cmpu_le_ob, 0, void, env, tl, tl) +DEF_HELPER_FLAGS_3(cmpgdu_eq_ob, 0, tl, env, tl, tl) +DEF_HELPER_FLAGS_3(cmpgdu_lt_ob, 0, tl, env, tl, tl) +DEF_HELPER_FLAGS_3(cmpgdu_le_ob, 0, tl, env, tl, tl) +DEF_HELPER_FLAGS_2(cmpgu_eq_ob, TCG_CALL_CONST | TCG_CALL_PURE, tl, tl, tl) +DEF_HELPER_FLAGS_2(cmpgu_lt_ob, TCG_CALL_CONST | TCG_CALL_PURE, tl, tl, tl) +DEF_HELPER_FLAGS_2(cmpgu_le_ob, TCG_CALL_CONST | TCG_CALL_PURE, tl, tl, tl) +DEF_HELPER_FLAGS_3(cmp_eq_qh, 0, void, env, tl, tl) +DEF_HELPER_FLAGS_3(cmp_lt_qh, 0, void, env, tl, tl) +DEF_HELPER_FLAGS_3(cmp_le_qh, 0, void, env, tl, tl) +DEF_HELPER_FLAGS_3(cmp_eq_pw, 0, void, env, tl, tl) +DEF_HELPER_FLAGS_3(cmp_lt_pw, 0, void, env, tl, tl) +DEF_HELPER_FLAGS_3(cmp_le_pw, 0, void, env, tl, tl) +#endif +DEF_HELPER_FLAGS_3(pick_qb, 0, tl, env, tl, tl) +DEF_HELPER_FLAGS_3(pick_ph, 0, tl, env, tl, tl) +#if defined(TARGET_MIPS64 ) +DEF_HELPER_FLAGS_3(pick_ob, 0, tl, env, tl, tl) +DEF_HELPER_FLAGS_3(pick_qh, 0, tl, env, tl, tl) +DEF_HELPER_FLAGS_3(pick_pw, 0, tl, env, tl, tl) +#endif +DEF_HELPER_FLAGS_3(append, TCG_CALL_CONST | TCG_CALL_PURE, tl, tl, tl, i32) +#if defined(TARGET_MIPS64 ) +DEF_HELPER_FLAGS_3(dappend, TCG_CALL_CONST | TCG_CALL_PURE, tl, tl, tl, i32) +#endif +DEF_HELPER_FLAGS_3(prepend, TCG_CALL_CONST | TCG_CALL_PURE, tl, i32, tl, tl) +#if defined(TARGET_MIPS64 ) +DEF_HELPER_FLAGS_3(prependd, TCG_CALL_CONST | TCG_CALL_PURE, tl, tl, tl, i32) +DEF_HELPER_FLAGS_3(prependw, TCG_CALL_CONST | TCG_CALL_PURE, tl, tl, tl, i32) +#endif +DEF_HELPER_FLAGS_3(balign, TCG_CALL_CONST | TCG_CALL_PURE, tl, i32, tl, tl) +#if defined(TARGET_MIPS64 ) +DEF_HELPER_FLAGS_3(dbalign, TCG_CALL_CONST | TCG_CALL_PURE, tl, tl, tl, i32) +#endif +DEF_HELPER_FLAGS_2(packrl_ph, TCG_CALL_CONST | TCG_CALL_PURE, tl, tl, tl) +#if defined(TARGET_MIPS64 ) +DEF_HELPER_FLAGS_2(packrl_pw, TCG_CALL_CONST | TCG_CALL_PURE, tl, tl, tl) +#endif +#include "def-helper.h" target-mips/translate.c +320
-2@@ -348,6 +348,11 @@ enum {#if defined(TARGET_MIPS64 ) OPC_DINSV_DSP = 0x0D | OPC_SPECIAL3, #endif + /* MIPS DSP Compare-Pick Sub-class */ + OPC_APPEND_DSP = 0x31 | OPC_SPECIAL3, +#if defined(TARGET_MIPS64) + OPC_DAPPEND_DSP = 0x35 | OPC_SPECIAL3, +#endif };/* BSHFL opcodes */ @@ -473,6 +478,22 @@ enum {OPC_PRECRQ_PH_W = (0x14 <<6 ) |OPC_CMPU_EQ_QB_DSP ,OPC_PRECRQ_RS_PH_W = (0x15 <<6 ) |OPC_CMPU_EQ_QB_DSP ,OPC_PRECRQU_S_QB_PH = (0x0F <<6 ) |OPC_CMPU_EQ_QB_DSP , +/* DSP Compare-Pick Sub-class */ +OPC_CMPU_EQ_QB = (0x00 <<6 ) |OPC_CMPU_EQ_QB_DSP , +OPC_CMPU_LT_QB = (0x01 <<6 ) |OPC_CMPU_EQ_QB_DSP , +OPC_CMPU_LE_QB = (0x02 <<6 ) |OPC_CMPU_EQ_QB_DSP , +OPC_CMPGU_EQ_QB = (0x04 <<6 ) |OPC_CMPU_EQ_QB_DSP , +OPC_CMPGU_LT_QB = (0x05 <<6 ) |OPC_CMPU_EQ_QB_DSP , +OPC_CMPGU_LE_QB = (0x06 <<6 ) |OPC_CMPU_EQ_QB_DSP , +OPC_CMPGDU_EQ_QB = (0x18 <<6 ) |OPC_CMPU_EQ_QB_DSP , +OPC_CMPGDU_LT_QB = (0x19 <<6 ) |OPC_CMPU_EQ_QB_DSP , +OPC_CMPGDU_LE_QB = (0x1A <<6 ) |OPC_CMPU_EQ_QB_DSP , +OPC_CMP_EQ_PH = (0x08 <<6 ) |OPC_CMPU_EQ_QB_DSP , +OPC_CMP_LT_PH = (0x09 <<6 ) |OPC_CMPU_EQ_QB_DSP , +OPC_CMP_LE_PH = (0x0A <<6 ) |OPC_CMPU_EQ_QB_DSP , +OPC_PICK_QB = (0x03 <<6 ) |OPC_CMPU_EQ_QB_DSP , +OPC_PICK_PH = (0x0B <<6 ) |OPC_CMPU_EQ_QB_DSP , + OPC_PACKRL_PH = (0x0E << 6) | OPC_CMPU_EQ_QB_DSP, };#define MASK_SHLL_QB (op) (MASK_SPECIAL3(op) | (op & (0x1F << 6)))@@ -535,6 +556,14 @@ enum { OPC_INSV = (0x00 << 6) | OPC_INSV_DSP, }; +#define MASK_APPEND (op) (MASK_SPECIAL3(op) | (op & (0x1F << 6))) +enum { +/* MIPS DSP Compare-Pick Sub-class */ +OPC_APPEND = (0x00 <<6 ) |OPC_APPEND_DSP , +OPC_PREPEND = (0x01 <<6 ) |OPC_APPEND_DSP , +OPC_BALIGN = (0x10 <<6 ) |OPC_APPEND_DSP , +}; +#if defined(TARGET_MIPS64 )#define MASK_ABSQ_S_QH (op) (MASK_SPECIAL3(op) | (op & (0x1F << 6))) enum {@@ -603,6 +632,26 @@ enum {#if defined(TARGET_MIPS64 )#define MASK_CMPU_EQ_OB (op) (MASK_SPECIAL3(op) | (op & (0x1F << 6)))enum { +/* DSP Compare-Pick Sub-class */ +OPC_CMP_EQ_PW = (0x10 <<6 ) |OPC_CMPU_EQ_OB_DSP , +OPC_CMP_LT_PW = (0x11 <<6 ) |OPC_CMPU_EQ_OB_DSP , +OPC_CMP_LE_PW = (0x12 <<6 ) |OPC_CMPU_EQ_OB_DSP , +OPC_CMP_EQ_QH = (0x08 <<6 ) |OPC_CMPU_EQ_OB_DSP , +OPC_CMP_LT_QH = (0x09 <<6 ) |OPC_CMPU_EQ_OB_DSP , +OPC_CMP_LE_QH = (0x0A <<6 ) |OPC_CMPU_EQ_OB_DSP , +OPC_CMPGDU_EQ_OB = (0x18 <<6 ) |OPC_CMPU_EQ_OB_DSP , +OPC_CMPGDU_LT_OB = (0x19 <<6 ) |OPC_CMPU_EQ_OB_DSP , +OPC_CMPGDU_LE_OB = (0x1A <<6 ) |OPC_CMPU_EQ_OB_DSP , +OPC_CMPGU_EQ_OB = (0x04 <<6 ) |OPC_CMPU_EQ_OB_DSP , +OPC_CMPGU_LT_OB = (0x05 <<6 ) |OPC_CMPU_EQ_OB_DSP , +OPC_CMPGU_LE_OB = (0x06 <<6 ) |OPC_CMPU_EQ_OB_DSP , +OPC_CMPU_EQ_OB = (0x00 <<6 ) |OPC_CMPU_EQ_OB_DSP , +OPC_CMPU_LT_OB = (0x01 <<6 ) |OPC_CMPU_EQ_OB_DSP , +OPC_CMPU_LE_OB = (0x02 <<6 ) |OPC_CMPU_EQ_OB_DSP , +OPC_PACKRL_PW = (0x0E <<6 ) |OPC_CMPU_EQ_OB_DSP , +OPC_PICK_OB = (0x03 <<6 ) |OPC_CMPU_EQ_OB_DSP , +OPC_PICK_PW = (0x13 <<6 ) |OPC_CMPU_EQ_OB_DSP , +OPC_PICK_QH = (0x0B <<6 ) |OPC_CMPU_EQ_OB_DSP ,/* MIPS DSP Arithmetic Sub-class */ OPC_PRECR_OB_QH = (0x0D <<6 ) |OPC_CMPU_EQ_OB_DSP , OPC_PRECR_SRA_QH_PW = (0x1E << 6) | OPC_CMPU_EQ_OB_DSP,@@ -616,6 +665,17 @@ enum {#endif #if defined(TARGET_MIPS64 ) +#define MASK_DAPPEND (op) (MASK_SPECIAL3(op) | (op & (0x1F << 6))) +enum { +/* DSP Compare-Pick Sub-class */ +OPC_DAPPEND = (0x00 <<6 ) |OPC_DAPPEND_DSP , +OPC_PREPENDD = (0x03 <<6 ) |OPC_DAPPEND_DSP , +OPC_PREPENDW = (0x01 <<6 ) |OPC_DAPPEND_DSP , +OPC_DBALIGN = (0x10 <<6 ) |OPC_DAPPEND_DSP , +}; +#endif + +#if defined(TARGET_MIPS64 )#define MASK_DINSV (op) (MASK_SPECIAL3(op) | (op & (0x1F << 6)))enum { /* DSP Bit/Manipulation Sub-class */@@ -12971,6 +13031,101 @@ static void decode_opc (CPUMIPSState *env, DisasContext *ctx, int *is_branch)gen_helper_precrqu_s_qb_ph (cpu_gpr[rd], cpu_env, cpu_gpr[rs], cpu_gpr[rt]);break ; +case OPC_CMPU_EQ_QB : +check_dsp (ctx); +gen_helper_cmpu_eq_qb (cpu_env, cpu_gpr[rs], cpu_gpr[rt]); +break ; +case OPC_CMPU_LT_QB : +check_dsp (ctx); +gen_helper_cmpu_lt_qb (cpu_env, cpu_gpr[rs], cpu_gpr[rt]); +break ; +case OPC_CMPU_LE_QB : +check_dsp (ctx); +gen_helper_cmpu_le_qb (cpu_env, cpu_gpr[rs], cpu_gpr[rt]); +break ; +case OPC_CMPGU_EQ_QB : +check_dsp (ctx); +gen_helper_cmpgu_eq_qb (cpu_gpr[rd], cpu_gpr[rs], cpu_gpr[rt]); +break ; +case OPC_CMPGU_LT_QB : +check_dsp (ctx); +gen_helper_cmpgu_lt_qb (cpu_gpr[rd], cpu_gpr[rs], cpu_gpr[rt]); +break ; +case OPC_CMPGU_LE_QB : +check_dsp (ctx); +gen_helper_cmpgu_le_qb (cpu_gpr[rd], cpu_gpr[rs], cpu_gpr[rt]); +break ; +case OPC_CMPGDU_EQ_QB : +check_dspr2 (ctx); + { +TCGv dspc, t0; + dspc =tcg_const_tl (0 ); + t0 =tcg_const_tl (0 ); +gen_helper_cmpgu_eq_qb (dspc, cpu_gpr[rs], cpu_gpr[rt]); +tcg_gen_mov_tl (cpu_gpr[rd], dspc); +tcg_gen_andi_tl (cpu_dspctrl, cpu_dspctrl,0xF0FFFFFF ); +tcg_gen_shli_tl (t0, dspc,24 ); +tcg_gen_or_tl (cpu_dspctrl, cpu_dspctrl, t0); +tcg_temp_free (dspc); +tcg_temp_free (t0); +break ; + } +case OPC_CMPGDU_LT_QB : +check_dspr2 (ctx); + { +TCGv dspc, t0; + dspc =tcg_const_tl (0 ); + t0 =tcg_const_tl (0 ); +gen_helper_cmpgu_lt_qb (dspc, cpu_gpr[rs], cpu_gpr[rt]); +tcg_gen_mov_tl (cpu_gpr[rd], dspc); +tcg_gen_andi_tl (cpu_dspctrl, cpu_dspctrl,0xF0FFFFFF ); +tcg_gen_shli_tl (t0, dspc,24 ); +tcg_gen_or_tl (cpu_dspctrl, cpu_dspctrl, t0); +tcg_temp_free (dspc); +tcg_temp_free (t0); +break ; + } +case OPC_CMPGDU_LE_QB : +check_dspr2 (ctx); + { +TCGv dspc, t0; + dspc =tcg_const_tl (0 ); + t0 =tcg_const_tl (0 ); +gen_helper_cmpgu_le_qb (dspc, cpu_gpr[rs], cpu_gpr[rt]); +tcg_gen_mov_tl (cpu_gpr[rd], dspc); +tcg_gen_andi_tl (cpu_dspctrl, cpu_dspctrl,0xF0FFFFFF ); +tcg_gen_shli_tl (t0, dspc,24 ); +tcg_gen_or_tl (cpu_dspctrl, cpu_dspctrl, t0); +tcg_temp_free (dspc); +tcg_temp_free (t0); +break ; + } +case OPC_CMP_EQ_PH : +check_dsp (ctx); +gen_helper_cmp_eq_ph (cpu_env, cpu_gpr[rs], cpu_gpr[rt]); +break ; +case OPC_CMP_LT_PH : +check_dsp (ctx); +gen_helper_cmp_lt_ph (cpu_env, cpu_gpr[rs], cpu_gpr[rt]); +break ; +case OPC_CMP_LE_PH : +check_dsp (ctx); +gen_helper_cmp_le_ph (cpu_env, cpu_gpr[rs], cpu_gpr[rt]); +break ; +case OPC_PICK_QB : +check_dsp (ctx); +gen_helper_pick_qb (cpu_gpr[rd], cpu_env, + cpu_gpr[rs], cpu_gpr[rt]); +break ; +case OPC_PICK_PH : +check_dsp (ctx); +gen_helper_pick_ph (cpu_gpr[rd], cpu_env, + cpu_gpr[rs], cpu_gpr[rt]); +break ; +case OPC_PACKRL_PH : +check_dsp (ctx); +gen_helper_packrl_ph (cpu_gpr[rd], cpu_gpr[rs], cpu_gpr[rt]); +break ;default :/* Invalid */ MIPS_INVAL ("MASK CMPU.EQ.QB" );generate_exception (ctx,EXCP_RI );@@ -13311,6 +13466,40 @@ static void decode_opc (CPUMIPSState *env, DisasContext *ctx, int *is_branch)break ; }break ; +case OPC_APPEND_DSP : +check_dspr2 (ctx); + op2 =MASK_APPEND (ctx->opcode); +switch (op2) { +case OPC_APPEND : + { +TCGv_i32 temp_rd =tcg_const_i32 (rd); +gen_helper_append (cpu_gpr[rt], cpu_gpr[rt], + cpu_gpr[rs], temp_rd); +tcg_temp_free_i32 (temp_rd); +break ; + } +case OPC_PREPEND : + { +TCGv_i32 temp_rd =tcg_const_i32 (rd); +gen_helper_prepend (cpu_gpr[rt], temp_rd, + cpu_gpr[rs], cpu_gpr[rt]); +tcg_temp_free_i32 (temp_rd); +break ; + } +case OPC_BALIGN : + { +TCGv_i32 temp_rd =tcg_const_i32 (rd); +gen_helper_balign (cpu_gpr[rt], temp_rd, + cpu_gpr[rt], cpu_gpr[rs]); +tcg_temp_free_i32 (temp_rd); +break ; + } +default :/* Invalid */ +MIPS_INVAL ("MASK APPEND" ); +generate_exception (ctx,EXCP_RI ); +break ; + } +break ;#if defined(TARGET_MIPS64 ) case OPC_DEXTM ... OPC_DEXT: case OPC_DINSM ... OPC_DINS:@@ -13469,7 +13658,7 @@ static void decode_opc (CPUMIPSState *env, DisasContext *ctx, int *is_branch)break ; }case OPC_REPLV_PW : -check_insn (env, ctx,ASE_DSP ); +check_dsp (ctx); {TCGv_i64 imm_v; imm_v =tcg_const_i64 (0 );@@ -13481,7 +13670,7 @@ static void decode_opc (CPUMIPSState *env, DisasContext *ctx, int *is_branch)break ; }case OPC_REPLV_QH : -check_insn (env, ctx,ASE_DSP ); +check_dsp (ctx); {TCGv_i64 imm_v;TCGv_i64 temp_rd;@@ -13663,6 +13852,91 @@ static void decode_opc (CPUMIPSState *env, DisasContext *ctx, int *is_branch)case OPC_CMPU_EQ_OB_DSP : op2 =MASK_CMPU_EQ_OB (ctx->opcode);switch (op2) { +case OPC_CMP_EQ_PW : +check_dsp (ctx); +gen_helper_cmp_eq_pw (cpu_env, cpu_gpr[rs], cpu_gpr[rt]); +break ; +case OPC_CMP_LT_PW : +check_dsp (ctx); +gen_helper_cmp_lt_pw (cpu_env, cpu_gpr[rs], cpu_gpr[rt]); +break ; +case OPC_CMP_LE_PW : +check_dsp (ctx); +gen_helper_cmp_le_pw (cpu_env, cpu_gpr[rs], cpu_gpr[rt]); +break ; +case OPC_CMP_EQ_QH : +check_dsp (ctx); +gen_helper_cmp_eq_qh (cpu_env, cpu_gpr[rs], cpu_gpr[rt]); +break ; +case OPC_CMP_LT_QH : +check_dsp (ctx); +gen_helper_cmp_lt_qh (cpu_env, cpu_gpr[rs], cpu_gpr[rt]); +break ; +case OPC_CMP_LE_QH : +check_dsp (ctx); +gen_helper_cmp_le_qh (cpu_env, cpu_gpr[rs], cpu_gpr[rt]); +break ; +case OPC_CMPGDU_EQ_OB : +check_dspr2 (ctx); +gen_helper_cmpgdu_eq_ob (cpu_gpr[rd], cpu_env, + cpu_gpr[rs], cpu_gpr[rt]); +break ; +case OPC_CMPGDU_LT_OB : +check_dspr2 (ctx); +gen_helper_cmpgdu_lt_ob (cpu_gpr[rd], cpu_env, + cpu_gpr[rs], cpu_gpr[rt]); +break ; +case OPC_CMPGDU_LE_OB : +check_dspr2 (ctx); +gen_helper_cmpgdu_le_ob (cpu_gpr[rd], cpu_env, + cpu_gpr[rs], cpu_gpr[rt]); +break ; +case OPC_CMPGU_EQ_OB : +check_dsp (ctx); +gen_helper_cmpgu_eq_ob (cpu_gpr[rd], cpu_gpr[rs], + cpu_gpr[rt]); +break ; +case OPC_CMPGU_LT_OB : +check_dsp (ctx); +gen_helper_cmpgu_lt_ob (cpu_gpr[rd], cpu_gpr[rs], + cpu_gpr[rt]); +break ; +case OPC_CMPGU_LE_OB : +check_dsp (ctx); +gen_helper_cmpgu_le_ob (cpu_gpr[rd], cpu_gpr[rs], + cpu_gpr[rt]); +break ; +case OPC_CMPU_EQ_OB : +check_dsp (ctx); +gen_helper_cmpu_eq_ob (cpu_env, cpu_gpr[rs], cpu_gpr[rt]); +break ; +case OPC_CMPU_LT_OB : +check_dsp (ctx); +gen_helper_cmpu_lt_ob (cpu_env, cpu_gpr[rs], cpu_gpr[rt]); +break ; +case OPC_CMPU_LE_OB : +check_dsp (ctx); +gen_helper_cmpu_le_ob (cpu_env, cpu_gpr[rs], cpu_gpr[rt]); +break ; +case OPC_PACKRL_PW : +check_dsp (ctx); +gen_helper_packrl_pw (cpu_gpr[rd], cpu_gpr[rs], cpu_gpr[rt]); +break ; +case OPC_PICK_OB : +check_dsp (ctx); +gen_helper_pick_ob (cpu_gpr[rd], cpu_env, + cpu_gpr[rs], cpu_gpr[rt]); +break ; +case OPC_PICK_PW : +check_dsp (ctx); +gen_helper_pick_pw (cpu_gpr[rd], cpu_env, + cpu_gpr[rs], cpu_gpr[rt]); +break ; +case OPC_PICK_QH : +check_dsp (ctx); +gen_helper_pick_qh (cpu_gpr[rd], cpu_env, + cpu_gpr[rs], cpu_gpr[rt]); +break ;case OPC_PRECR_OB_QH :check_dspr2 (ctx); gen_helper_precr_ob_qh(cpu_gpr[rd], cpu_gpr[rs],@@ -13719,6 +13993,50 @@ static void decode_opc (CPUMIPSState *env, DisasContext *ctx, int *is_branch)break ;#endif #if defined(TARGET_MIPS64 ) +case OPC_DAPPEND_DSP : +check_dspr2 (ctx); + op2 =MASK_DAPPEND (ctx->opcode); +switch (op2) { +case OPC_DAPPEND : + { +TCGv_i32 sa_v =tcg_const_i32 (rd); +gen_helper_dappend (cpu_gpr[rt], cpu_gpr[rs], + cpu_gpr[rt], sa_v); +tcg_temp_free_i32 (sa_v); +break ; + } +case OPC_PREPENDD : + { +TCGv_i32 sa_v =tcg_const_i32 (rd); +gen_helper_prependd (cpu_gpr[rt], cpu_gpr[rs], + cpu_gpr[rt], sa_v); +tcg_temp_free_i32 (sa_v); +break ; + } +case OPC_PREPENDW : + { +TCGv_i32 sa_v =tcg_const_i32 (rd); +gen_helper_prependw (cpu_gpr[rt], cpu_gpr[rs], + cpu_gpr[rt], sa_v); +tcg_temp_free_i32 (sa_v); +break ; + } +case OPC_DBALIGN : + { +TCGv_i32 sa_v =tcg_const_i32 (rd); +gen_helper_dbalign (cpu_gpr[rt], cpu_gpr[rs], + cpu_gpr[rt], sa_v); +tcg_temp_free_i32 (sa_v); +break ; + } +default :/* Invalid */ +MIPS_INVAL ("MASK DAPPEND" ); +generate_exception (ctx,EXCP_RI ); +break ; + } +break ; +#endif +#if defined(TARGET_MIPS64 )case OPC_DPAQ_W_QH_DSP : {int ac = rd &0x03 ;Signature · 1 line
1.7.9.5
Signature · 2 lines
Aurelien Jarno GPG: 1024D/F1BCDB73 [email protected] http://www.aurel32.net
PATCH v7 11/14 target-mips-ase-dsp: Add DSP accumulator instructions
In reply to Jia LiuAdd MIPS ASE DSP Accumulator and DSPControl Access instructions.
--- target-mips/dsp_helper.c | 1044 ++++++++++++++++++++++++++++++++++++++++++++++ target-mips/helper.h | 52 +++ target-mips/translate.c | 425 +++++++++++++++++++ 3 files changed, 1521 insertions(+)
target-mips/dsp_helper.c +1044 -0
@@ -7207,6 +7207,1050 @@ target_ulong helper_packrl_pw(target_ulong rs, target_ulong rt) }#endif +/** DSP Accumulator and DSPControl Access Sub-class insns **/ +target_ulong helper_extr_w (CPUMIPSState *env,uint32_t ac,uint32_t shift) +{ +int32_t tempI; +int64_t tempDL[2 ]; + +mipsdsp__rashift_short_acc (env, tempDL, ac, shift); +if ((tempDL[1 ] !=0 || (tempDL[0 ] &MIPSDSP_LHI ) !=0 ) && + (tempDL[1 ] !=1 || (tempDL[0 ] &MIPSDSP_LHI ) !=MIPSDSP_LHI )) { +set_DSPControl_overflow_flag (env,1 ,23 ); + } + + tempI = (tempDL[0 ] >>1 ) &MIPSDSP_LLO ; + + tempDL[0 ] +=1 ; +if (tempDL[0 ] ==0 ) { + tempDL[1 ] +=1 ; + } + +if ((!(tempDL[1 ] ==0 && (tempDL[0 ] &MIPSDSP_LHI ) ==0x00 )) && + (!(tempDL[1 ] ==1 && (tempDL[0 ] &MIPSDSP_LHI ) ==MIPSDSP_LHI ))) { +set_DSPControl_overflow_flag (env,1 ,23 ); + } + +return (target_long )tempI; +} + +target_ulong helper_extr_r_w (CPUMIPSState *env,uint32_t ac,uint32_t shift) +{ +int32_t tempI; +int64_t tempDL[2 ]; + +mipsdsp__rashift_short_acc (env, tempDL, ac, shift); +if ((tempDL[1 ] !=0 || (tempDL[0 ] &MIPSDSP_LHI ) !=0 ) && + (tempDL[1 ] !=1 || (tempDL[0 ] &MIPSDSP_LHI ) !=MIPSDSP_LHI )) { +set_DSPControl_overflow_flag (env,1 ,23 ); + } + + tempDL[0 ] +=1 ; +if (tempDL[0 ] ==0 ) { + tempDL[1 ] +=1 ; + } + +if ((tempDL[1 ] !=0 || (tempDL[0 ] &MIPSDSP_LHI ) !=0 ) && + (tempDL[1 ] !=1 && (tempDL[0 ] &MIPSDSP_LHI ) !=MIPSDSP_LHI )) { +set_DSPControl_overflow_flag (env,1 ,23 ); + } + tempI = tempDL[0 ] >>1 ; + +return (target_long )tempI; +} + +target_ulong helper_extr_rs_w (CPUMIPSState *env,uint32_t ac,uint32_t shift) +{ +int32_t tempI, temp64; +int64_t tempDL[2 ]; + +mipsdsp__rashift_short_acc (env, tempDL, ac, shift); +if ((tempDL[1 ] !=0 || (tempDL[0 ] &MIPSDSP_LHI ) !=0 ) && + (tempDL[1 ] !=1 || (tempDL[0 ] &MIPSDSP_LHI ) !=MIPSDSP_LHI )) { +set_DSPControl_overflow_flag (env,1 ,23 ); + } + tempDL[0 ] +=1 ; +if (tempDL[0 ] ==0 ) { + tempDL[1 ] +=1 ; + } + tempI = tempDL[0 ] >>1 ; + +if ((tempDL[1 ] !=0 || (tempDL[0 ] &MIPSDSP_LHI ) !=0 ) && + (tempDL[1 ] !=1 || (tempDL[0 ] &MIPSDSP_LHI ) !=MIPSDSP_LHI )) { + temp64 = tempDL[1 ]; +if (temp64 ==0 ) { + tempI =0x7FFFFFFF ; + }else { + tempI =0x80000000 ; + } +set_DSPControl_overflow_flag (env,1 ,23 ); + } + +return (target_long )tempI; +} + +#if defined(TARGET_MIPS64 ) +target_ulong helper_dextr_w (CPUMIPSState *env,uint32_t ac,uint32_t shift) +{ +uint64_t temp[3 ]; +uint64_t result; + +mipsdsp__rashift_acc (env, temp, ac, shift); + + result = (int64_t )(int32_t )(temp[0 ] >>1 ); + +return result; +} + +target_ulong helper_dextr_r_w (CPUMIPSState *env,uint32_t ac,uint32_t shift) +{ +uint64_t temp[3 ]; +uint32_t temp128; +uint64_t result; + +mipsdsp__rashift_acc (env, temp, ac, shift); + + temp[0 ] +=1 ; +if (temp[0 ] ==0 ) { + temp[1 ] +=1 ; +if (temp[1 ] ==0 ) { + temp[2 ] +=1 ; + } + } + + temp128 = temp[2 ] &0x01 ; + +if ((temp128 !=0 || temp[1 ] !=0 ) && + (temp128 !=1 || temp[1 ] !=0xfffFfffFfffFfffFull )) { +set_DSPControl_overflow_flag (env,1 ,23 ); + } + + result = (int64_t )(int32_t )(temp[0 ] >>1 ); + +return result; +} + +target_ulong helper_dextr_rs_w (CPUMIPSState *env,uint32_t ac,uint32_t shift) +{ +uint64_t temp[3 ]; +uint32_t temp128; +uint64_t result; + +mipsdsp__rashift_acc (env, temp, ac, shift); + + temp[0 ] +=1 ; +if (temp[0 ] ==0 ) { + temp[1 ] +=1 ; +if (temp[1 ] ==0 ) { + temp[2 ] +=1 ; + } + } + + temp128 = temp[2 ] &0x01 ; + +if ((temp128 !=0 || temp[1 ] !=0 ) && + (temp128 !=1 || temp[1 ] !=0xFFFFFFFFFFFFFFFFull )) { +if (temp128 ==0 ) { + temp[0 ] =0x0FFFFFFFF ; + }else { + temp[0 ] =0x0100000000 ; + } +set_DSPControl_overflow_flag (env,1 ,23 ); + } + + result = (int64_t )(int32_t )(temp[0 ] >>1 ); + +return result; +} + +target_ulong helper_dextr_l (CPUMIPSState *env,uint32_t ac,uint32_t shift) +{ +uint64_t temp[3 ]; +uint64_t result; + +mipsdsp__rashift_acc (env, temp, ac, shift); + + result = (temp[1 ] <<63 ) | (temp[0 ] >>1 ); + +return result; +} + +target_ulong helper_dextr_r_l (CPUMIPSState *env,uint32_t ac,uint32_t shift) +{ +uint64_t temp[3 ]; +uint32_t temp128; +uint64_t result; + +mipsdsp__rashift_acc (env, temp, ac, shift); + + temp[0 ] +=1 ; +if (temp[0 ] ==0 ) { + temp[1 ] +=1 ; +if (temp[1 ] ==0 ) { + temp[2 ] +=1 ; + } + } + + temp128 = temp[2 ] &0x01 ; + +if ((temp128 !=0 || temp[1 ] !=0 ) && + (temp128 !=1 || temp[1 ] !=0xfffFfffFfffFfffFull )) { +set_DSPControl_overflow_flag (env,1 ,23 ); + } + + result = (temp[1 ] <<63 ) | (temp[0 ] >>1 ); + +return result; +} + +target_ulong helper_dextr_rs_l (CPUMIPSState *env,uint32_t ac,uint32_t shift) +{ +uint64_t temp[3 ]; +uint32_t temp128; +uint64_t result; + +mipsdsp__rashift_acc (env, temp, ac, shift); + + temp[0 ] +=1 ; +if (temp[0 ] ==0 ) { + temp[1 ] +=1 ; +if (temp[1 ] ==0 ) { + temp[2 ] +=1 ; + } + } + + temp128 = temp[2 ] &0x01 ; + +if ((temp128 !=0 || temp[1 ] !=0 ) && + (temp128 !=1 || temp[1 ] !=0xFFFFFFFFFFFFFFFFull )) { +if (temp128 ==0 ) { + temp[1 ] &=0xFFFFFFFFFFFFFFFEull ; + temp[0 ] |=0xFFFFFFFFFFFFFFFEull ; + }else { + temp[1 ] |=0x01 ; + temp[0 ] &=0x01 ; + } +set_DSPControl_overflow_flag (env,1 ,23 ); + } + + result = (temp[1 ] <<63 ) | (temp[0 ] >>1 ); + +return result; +} +#endif + +target_ulong helper_extr_s_h (CPUMIPSState *env,uint32_t ac,uint32_t shift) +{ +int64_t temp; +uint32_t tempI; + + temp =mipsdsp_rashift_short_acc (env, ac, shift); +if (temp >0x0000000000007FFFull ) { + temp =0x00007FFF ; +set_DSPControl_overflow_flag (env,1 ,23 ); + }else if (temp <0xFFFFFFFFFFFF8000ull ) { + temp =0xFFFF8000 ; +set_DSPControl_overflow_flag (env,1 ,23 ); + } + + tempI = temp &0xFFFFFFFF ; +return (target_long )(int32_t )tempI; +} + +target_ulong helper_extrv_s_h (CPUMIPSState *env,uint32_t ac,target_ulong rs) +{ +uint32_t rd; +int32_t shift, tempI; +int64_t tempL; + + shift = rs &0x0F ; + tempL =mipsdsp_rashift_short_acc (env, ac, shift); +if (tempL >0x000000000007FFFull ) { + tempI =0x00007FFF ; +set_DSPControl_overflow_flag (env,1 ,23 ); + }else if (tempL <0xFFFFFFFFFFF8000ull ) { + tempI =0xFFFF8000 ; +set_DSPControl_overflow_flag (env,1 ,23 ); + } + rd = tempI; + +return (target_long )(int32_t )rd; +} + +#if defined(TARGET_MIPS64 ) +target_ulong helper_dextr_s_h (CPUMIPSState *env,uint32_t ac,uint32_t shift) +{ +int64_t temp[2 ]; +uint32_t temp127; +uint64_t result; + +mipsdsp_rashift_acc (env, (uint64_t *)temp, ac, shift); + + temp127 = (temp[1 ] >>63 ) &0x01 ; + +if ((temp127 ==0 ) && (temp[1 ] >0 || temp[0 ] >32767 )) { + temp[0 ] &=0xFFFF0000 ; + temp[0 ] |=0x00007FFF ; +set_DSPControl_overflow_flag (env,1 ,23 ); + }else if ((temp127 ==1 ) && + (temp[1 ] <0xFFFFFFFFFFFFFFFFll + || temp[0 ] <0xFFFFFFFFFFFF1000ll )) { + temp[0 ] &=0xFFFF0000 ; + temp[0 ] |=0x00008000 ; +set_DSPControl_overflow_flag (env,1 ,23 ); + } + + result = (int64_t )(int16_t )(temp[0 ] &MIPSDSP_LO ); + +return result; +} + +target_ulong helper_dextrv_s_h (CPUMIPSState *env, +uint32_t ac,target_ulong shift) +{ +int64_t temp[2 ]; +uint32_t temp127; +uint64_t result; + + shift = shift &0x1F ; +mipsdsp_rashift_acc (env, (uint64_t *)temp, ac, shift); + + temp127 = (temp[1 ] >>63 ) &0x01 ; + +if ((temp127 ==0 ) && (temp[1 ] >0 || temp[0 ] >32767 )) { + temp[0 ] &=0xFFFF0000 ; + temp[0 ] |=0x00007FFF ; +set_DSPControl_overflow_flag (env,1 ,23 ); + }else if ((temp127 ==1 ) && + (temp[1 ] <0xFFFFFFFFFFFFFFFFull + || temp[0 ] <0xFFFFFFFFFFFF1000ull )) { + temp[0 ] &=0xFFFF0000 ; + temp[0 ] |=0x00008000 ; +set_DSPControl_overflow_flag (env,1 ,23 ); + } + + result = (int64_t )(int16_t )(temp[0 ] &MIPSDSP_LO ); + +return result; +} +#endif + +target_ulong helper_extrv_w (CPUMIPSState *env,uint32_t ac,target_ulong rs) +{ +int32_t shift, tempI; +int64_t tempDL[2 ]; + + shift = rs &0x0F ; +mipsdsp__rashift_short_acc (env, tempDL, ac, shift); +if ((tempDL[1 ] !=0 || (tempDL[0 ] &MIPSDSP_LHI ) !=0 ) && + (tempDL[1 ] !=1 || (tempDL[0 ] &MIPSDSP_LHI ) !=MIPSDSP_LHI )) { +set_DSPControl_overflow_flag (env,1 ,23 ); + } + + tempI = tempDL[0 ] >>1 ; + + tempDL[0 ] +=1 ; +if (tempDL[0 ] ==0 ) { + tempDL[1 ] +=1 ; + } +if ((tempDL[1 ] !=0 || (tempDL[0 ] &MIPSDSP_LHI ) !=0 ) && + (tempDL[1 ] !=1 || (tempDL[0 ] &MIPSDSP_LHI ) !=MIPSDSP_LHI )) { +set_DSPControl_overflow_flag (env,1 ,23 ); + } + +return (target_long )tempI; +} + +target_ulong helper_extrv_r_w (CPUMIPSState *env,uint32_t ac,target_ulong rs) +{ +int32_t shift, tempI; +int64_t tempDL[2 ]; + + shift = rs &0x0F ; +mipsdsp__rashift_short_acc (env, tempDL, ac, shift); +if ((tempDL[1 ] !=0 || (tempDL[0 ] &MIPSDSP_LHI ) !=0 ) && + (tempDL[1 ] !=1 || (tempDL[0 ] &MIPSDSP_LHI ) !=MIPSDSP_LHI )) { +set_DSPControl_overflow_flag (env,1 ,23 ); + } + + tempDL[0 ] +=1 ; +if (tempDL[0 ] ==0 ) { + tempDL[1 ] +=1 ; + } + +if ((tempDL[1 ] !=0 || (tempDL[0 ] &MIPSDSP_LHI ) !=0 ) && + (tempDL[1 ] !=1 || (tempDL[0 ] &MIPSDSP_LHI ) !=MIPSDSP_LHI )) { +set_DSPControl_overflow_flag (env,1 ,23 ); + } + tempI = tempDL[0 ] >>1 ; + +return (target_long )tempI; +} + +target_ulong helper_extrv_rs_w (CPUMIPSState *env,uint32_t ac,target_ulong rs) +{ +int32_t shift, tempI; +int64_t tempDL[2 ]; + + shift = rs &0x0F ; +mipsdsp__rashift_short_acc (env, tempDL, ac, shift); +if ((tempDL[1 ] !=0 || (tempDL[0 ] &MIPSDSP_LHI ) !=0 ) && + (tempDL[1 ] !=1 || (tempDL[0 ] &MIPSDSP_LHI ) !=MIPSDSP_LHI )) { +set_DSPControl_overflow_flag (env,1 ,23 ); + } + + tempDL[0 ] +=1 ; +if (tempDL[0 ] ==0 ) { + tempDL[1 ] +=1 ; + } + tempI = tempDL[0 ] >>1 ; + +if ((tempDL[1 ] !=0 || (tempDL[0 ] &MIPSDSP_LHI ) !=0 ) && + (tempDL[1 ] !=1 || (tempDL[0 ] &MIPSDSP_LHI ) !=MIPSDSP_LHI )) { +if (tempDL[1 ] ==0 ) { + tempI =0x7FFFFFFF ; + }else { + tempI =0x80000000 ; + } +set_DSPControl_overflow_flag (env,1 ,23 ); + } + +return (target_long )tempI; +} + +#if defined(TARGET_MIPS64 ) +target_ulong helper_dextrv_w (CPUMIPSState *env,uint32_t ac,target_ulong shift) +{ +uint64_t temp[3 ]; +uint64_t result; + + shift = shift &0x1F ; + +mipsdsp__rashift_acc (env, temp, ac, shift); + + result = (int64_t )(int32_t )(temp[0 ] >>1 ); + +return result; +} + +target_ulong helper_dextrv_r_w (CPUMIPSState *env, +uint32_t ac,target_ulong shift) +{ +uint64_t temp[3 ]; +uint32_t temp128; +uint64_t result; + + shift = shift &0x1F ; + +mipsdsp__rashift_acc (env, temp, ac, shift); + + temp[0 ] +=1 ; +if (temp[0 ] ==0 ) { + temp[1 ] +=1 ; +if (temp[1 ] ==0 ) { + temp[2 ] +=1 ; + } + } + + temp128 = temp[2 ] &0x01 ; + +if ((temp128 !=0 || temp[1 ] !=0 ) && + (temp128 !=1 || temp[1 ] !=0xfffFfffFfffFfffFull )) { +set_DSPControl_overflow_flag (env,1 ,23 ); + } + + result = (int64_t )(int32_t )(temp[0 ] >>1 ); + +return result; +} + +target_ulong helper_dextrv_rs_w (CPUMIPSState *env, +uint32_t ac,target_ulong shift) +{ +uint64_t temp[3 ]; +uint32_t temp128; +uint64_t result; + + shift = shift &0x1F ; + +mipsdsp__rashift_acc (env, temp, ac, shift); + + temp[0 ] +=1 ; +if (temp[0 ] ==0 ) { + temp[1 ] +=1 ; +if (temp[1 ] ==0 ) { + temp[2 ] +=1 ; + } + } + + temp128 = temp[2 ] &0x01 ; + +if ((temp128 !=0 || temp[1 ] !=0 ) && + (temp128 !=1 || temp[1 ] !=0xFFFFFFFFFFFFFFFFull )) { +if (temp128 ==0 ) { + temp[0 ] |=0x0FFFFFFFF ; + }else { + temp[0 ] =0x0100000000 ; + } +set_DSPControl_overflow_flag (env,1 ,23 ); + } + + result = (int64_t )(int32_t )(temp[0 ] >>1 ); + +return result; +} + +target_ulong helper_dextrv_l (CPUMIPSState *env,uint32_t ac,target_ulong shift) +{ +uint64_t temp[3 ]; +uint64_t result; + + shift = shift &0x1F ; + +mipsdsp__rashift_acc (env, temp, ac, shift); + + result = (temp[1 ] <<63 ) | (temp[0 ] >>1 ); + +return result; +} + +target_ulong helper_dextrv_r_l (CPUMIPSState *env, +uint32_t ac,target_ulong shift) +{ +uint64_t temp[3 ]; +uint32_t temp128; +uint64_t result; + + shift = shift &0x1F ; + +mipsdsp__rashift_acc (env, temp, ac, shift); + + temp[0 ] +=1 ; +if (temp[0 ] ==0 ) { + temp[1 ] +=1 ; +if (temp[1 ] ==0 ) { + temp[2 ] +=1 ; + } + } + + temp128 = temp[2 ] &0x01 ; + +if ((temp128 !=0 || temp[1 ] !=0 ) && + (temp128 !=1 || temp[1 ] !=0xfffFfffFfffFfffFull )) { +set_DSPControl_overflow_flag (env,1 ,23 ); + } + + result = (temp[1 ] <<63 ) | (temp[0 ] >>1 ); + +return result; +} + +target_ulong helper_dextrv_rs_l (CPUMIPSState *env, +uint32_t ac,target_ulong shift) +{ +uint64_t temp[3 ]; +uint32_t temp128; +uint64_t result; + + shift = shift &0x1F ; + +mipsdsp__rashift_acc (env, temp, ac, shift); + + temp[0 ] +=1 ; +if (temp[0 ] ==0 ) { + temp[1 ] +=1 ; +if (temp[1 ] ==0 ) { + temp[2 ] +=1 ; + } + } + + temp128 = temp[2 ] &0x01 ; + +if ((temp128 !=0 || temp[1 ] !=0 ) && + (temp128 !=1 || temp[1 ] !=0xFFFFFFFFFFFFFFFFull )) { +if (temp128 ==0 ) { + temp[1 ] &=0xFFFFFFFFFFFFFFFEull ; + temp[0 ] |=0xFFFFFFFFFFFFFFFEull ; + }else { + temp[1 ] |=0x01 ; + temp[0 ] &=0x01 ; + } +set_DSPControl_overflow_flag (env,1 ,23 ); + } + + result = (temp[1 ] <<63 ) | (temp[0 ] >>1 ); + +return result; +} +#endif + +target_ulong helper_extp (CPUMIPSState *env,uint32_t ac,uint32_t size) +{ +int32_t start_pos; +int sub; +uint32_t temp; +uint64_t acc; + + temp =0 ; + start_pos =get_DSPControl_pos (env); + sub = start_pos - (size +1 ); +if (sub >=-1 ) { + acc = ((uint64_t )env->active_tc.HI[ac] <<32 ) | + ((uint64_t )env->active_tc.LO[ac] &MIPSDSP_LLO ); + temp = (acc >> (start_pos - size)) & + (((uint32_t )0x01 << (size +1 )) -1 ); +set_DSPControl_efi (env,0 ); + }else { +set_DSPControl_efi (env,1 ); + } + +return (target_ulong )temp; +} + +target_ulong helper_extpv (CPUMIPSState *env,uint32_t ac,target_ulong rs) +{ +int32_t start_pos, size; +uint32_t temp; +uint64_t acc; + + temp =0 ; + start_pos =get_DSPControl_pos (env); + size = rs &0x1F ; + +if (start_pos - (size +1 ) >=-1 ) { + acc = ((uint64_t )env->active_tc.HI[ac] <<32 ) | + ((uint64_t )env->active_tc.LO[ac] &MIPSDSP_LLO ); + temp = (acc >> (start_pos - size)) & + (((uint32_t )0x01 << (size +1 )) -1 ); +set_DSPControl_efi (env,0 ); + }else { +set_DSPControl_efi (env,1 ); + } + +return (target_ulong )temp; +} + +target_ulong helper_extpdp (CPUMIPSState *env,uint32_t ac,uint32_t size) +{ +int32_t start_pos; +int sub; +uint32_t temp; +uint64_t acc; + + temp =0 ; + start_pos =get_DSPControl_pos (env); + sub = start_pos - (size +1 ); +if (sub >=-1 ) { + acc = ((uint64_t )env->active_tc.HI[ac] <<32 ) | + ((uint64_t )env->active_tc.LO[ac] &MIPSDSP_LLO ); + temp = (acc >> (start_pos - size)) & + (((uint32_t )0x01 << (size +1 )) -1 ); + +set_DSPControl_pos (env, start_pos - (size +1 )); +set_DSPControl_efi (env,0 ); + }else { +set_DSPControl_efi (env,1 ); + } + +return (target_ulong )temp; +} + +target_ulong helper_extpdpv (CPUMIPSState *env,uint32_t ac,target_ulong rs) +{ +int32_t start_pos, size; +uint32_t temp; +uint64_t acc; + + temp =0 ; + start_pos =get_DSPControl_pos (env); + size = rs &0x1F ; + +if (start_pos - (size +1 ) >=-1 ) { + acc = ((uint64_t )env->active_tc.HI[ac] <<32 ) | + ((uint64_t )env->active_tc.LO[ac] &MIPSDSP_LLO ); + temp = (acc >> (start_pos - size)) & (((int )0x01 << (size +1 )) -1 ); +set_DSPControl_pos (env, start_pos - (size +1 )); +set_DSPControl_efi (env,0 ); + }else { +set_DSPControl_efi (env,1 ); + } + +return (target_ulong )temp; +} + +#if defined(TARGET_MIPS64 ) +target_ulong helper_dextp (CPUMIPSState *env,uint32_t ac,uint32_t size) +{ +int start_pos; +int len; +int sub; +uint64_t tempB, tempA; +uint64_t temp; + + temp =0 ; + + size = size &0x3F ; + start_pos =get_DSPControl_pos (env); + len = start_pos - size; + tempB = env->active_tc.HI[ac]; + tempA = env->active_tc.LO[ac]; + + sub = start_pos - (size +1 ); + +if (sub >=-1 ) { + temp = (tempB << (64 - len)) | (tempA >> len); + temp = temp & ((0x01 << (size +1 )) -1 ); +set_DSPControl_efi (env,0 ); + }else { +set_DSPControl_efi (env,1 ); + } + +return temp; +} + +target_ulong helper_dextpv (CPUMIPSState *env,uint32_t ac,target_ulong size) +{ +uint8_t start_pos; +uint8_t len; +int sub; +uint64_t tempB, tempA; +uint64_t temp; + + temp =0 ; + + size = size &0x3F ; + start_pos =get_DSPControl_pos (env); + len = start_pos - size; + tempB = env->active_tc.HI[ac]; + tempA = env->active_tc.LO[ac]; + + sub = start_pos - (size +1 ); + +if (sub >=-1 ) { + temp = (tempB << (64 - len)) | (tempA >> len); + temp = temp & ((0x01 << (size +1 )) -1 ); +set_DSPControl_efi (env,0 ); + }else { +set_DSPControl_efi (env,1 ); + } + +return temp; +} + +target_ulong helper_dextpdp (CPUMIPSState *env,uint32_t ac,uint32_t size) +{ +int start_pos; +int len; +int sub; +uint64_t tempB, tempA; +uint64_t temp; + + temp =0 ; + start_pos =get_DSPControl_pos (env); + len = start_pos - size; + tempB = env->active_tc.HI[ac]; + tempA = env->active_tc.LO[ac]; + + sub = start_pos - (size +1 ); + +if (sub >=-1 ) { + temp = (tempB << (64 - len)) | (tempA >> len); + temp = temp & ((0x01 << (size +1 )) -1 ); +set_DSPControl_pos (env, sub); +set_DSPControl_efi (env,0 ); + }else { +set_DSPControl_efi (env,1 ); + } + +return temp; +} + +target_ulong helper_dextpdpv (CPUMIPSState *env,uint32_t ac,target_ulong size) +{ +int start_pos; +int len; +int sub; +uint64_t tempB, tempA; +uint64_t temp; + + temp =0 ; + start_pos =get_DSPControl_pos (env); + size = size &0x3F ; + len = start_pos - size; + tempB = env->active_tc.HI[ac]; + tempA = env->active_tc.LO[ac]; + + sub = start_pos - (size +1 ); + +if (sub >=-1 ) { + temp = (tempB << (64 - len)) | (tempA >> len); + temp = temp & ((0x01 << (size +1 )) -1 ); +set_DSPControl_pos (env, sub); +set_DSPControl_efi (env,0 ); + }else { +set_DSPControl_efi (env,1 ); + } + +return temp; +} +#endif + +void helper_shilo (CPUMIPSState *env,uint32_t ac,uint32_t shift) +{ +uint8_t sign; +uint64_t temp, acc; + + shift = (int32_t )((int32_t )shift <<26 ) >>26 ; + sign = (shift >>5 ) &0x01 ; + shift = (sign ==0 ) ? shift : -shift; + acc = (((uint64_t )env->active_tc.HI[ac] <<32 ) &MIPSDSP_LHI ) | + ((uint64_t )env->active_tc.LO[ac] &MIPSDSP_LLO ); + +if (shift ==0 ) { + temp = acc; + }else { +if (sign ==0 ) { + temp = acc >> shift; + }else { + temp = acc << shift; + } + } + + env->active_tc.HI[ac] = (target_long)(int32_t)((temp &MIPSDSP_LHI ) >>32 ); + env->active_tc.LO[ac] = (target_long)(int32_t)(temp &MIPSDSP_LLO ); +} + +void helper_shilov (CPUMIPSState *env,uint32_t ac,target_ulong rs) +{ +uint8_t sign; +int8_t rs5_0; +uint64_t temp, acc; + + rs5_0 = rs &0x3F ; + rs = (int8_t )(rs5_0 <<2 ) >>2 ; + sign = (rs5_0 >>5 ) &0x01 ; + rs5_0 = (sign ==0 ) ? rs : -rs; + acc = (((uint64_t )env->active_tc.HI[ac] <<32 ) &MIPSDSP_LHI ) | + ((uint64_t )env->active_tc.LO[ac] &MIPSDSP_LLO ); +if (rs5_0 ==0 ) { + temp = acc; + }else { +if (sign ==0 ) { + temp = acc >> rs5_0; + }else { + temp = acc << rs5_0; + } + } + + env->active_tc.HI[ac] = (target_ulong)(int32_t)((temp &MIPSDSP_LHI ) >>32 ); + env->active_tc.LO[ac] = (target_ulong)(int32_t)(temp &MIPSDSP_LLO ); +} + +#if defined(TARGET_MIPS64 ) +void helper_dshilo (CPUMIPSState *env,uint32_t shift,uint32_t ac) +{ +uint8_t shift6; +int8_t shift_t; +uint64_t tempB, tempA; + + shift6 = (shift >>6 ) &0x01 ; + shift_t = (shift6 <<7 ) | (uint8_t )shift; + shift_t = shift6 ==0 ? shift_t : -shift_t; + + tempB = env->active_tc.HI[ac]; + tempA = env->active_tc.LO[ac]; + +if (shift_t !=0 ) { +if (shift6 ==0 ) { + tempA = (tempB << (64 - shift)) | (tempA >> shift); + tempB = tempB >> shift; + }else { + tempB = (tempB << shift) | (tempA >> (64 - shift)); + tempA = tempA << shift; + } + } + + env->active_tc.HI[ac] = tempB; + env->active_tc.LO[ac] = tempA; +} + +void helper_dshilov (CPUMIPSState *env,target_ulong shift,uint32_t ac) +{ +uint8_t shift6; +int8_t shift_t; +uint64_t tempB, tempA; + + shift6 = (shift >>6 ) &0x01 ; + shift_t = (shift6 <<7 ) | ((uint8_t )shift &0x7F ); + shift_t = shift6 ==0 ? shift_t : -shift_t; + + tempB = env->active_tc.HI[ac]; + tempA = env->active_tc.LO[ac]; + +if (shift_t !=0 ) { +if (shift6 ==0 ) { + tempA = (tempB << (64 - shift)) | (tempA >> shift); + tempB = tempB >> shift; + }else { + tempB = (tempB << shift) | (tempA >> (64 - shift)); + tempA = tempA << shift; + } + } + + env->active_tc.HI[ac] = tempB; + env->active_tc.LO[ac] = tempA; +} +#endif +void helper_mthlip (CPUMIPSState *env,uint32_t ac,target_ulong rs) +{ +int32_t tempA, tempB, pos; + + tempA = rs; + tempB = env->active_tc.LO[ac]; + env->active_tc.HI[ac] = (target_long )tempB; + env->active_tc.LO[ac] = (target_long )tempA; + pos =get_DSPControl_pos (env); + +if (pos >32 ) { +return ; + }else { +set_DSPControl_pos (env, pos +32 ); + } +} + +#if defined(TARGET_MIPS64 ) +void helper_dmthlip (CPUMIPSState *env,target_ulong rs,uint32_t ac) +{ +uint8_t ac_t; +uint8_t pos; +uint64_t tempB, tempA; + + ac_t = ac &0x3 ; + + tempA = rs; + tempB = env->active_tc.LO[ac_t]; + + env->active_tc.HI[ac_t] = tempB; + env->active_tc.LO[ac_t] = tempA; + + pos =get_DSPControl_pos (env); + +if (pos <=64 ) { + pos = pos +64 ; +set_DSPControl_pos (env, pos); + } +} +#endif + +void helper_wrdsp (CPUMIPSState *env,target_ulong rs,uint32_t mask_num) +{ +uint8_t mask[6 ]; +uint8_t i; +uint32_t newbits, overwrite; +target_ulong dsp; + + newbits =0x00 ; + overwrite =0xFFFFFFFF ; + dsp = env->active_tc.DSPControl; + +for (i =0 ; i <6 ; i++) { + mask[i] = (mask_num >> i) &0x01 ; + } + +if (mask[0 ] ==1 ) { +#if defined(TARGET_MIPS64 ) + overwrite &=0xFFFFFF80 ; + newbits &=0xFFFFFF80 ; + newbits |=0x0000007F & rs; +#else + overwrite &=0xFFFFFFC0 ; + newbits &=0xFFFFFFC0 ; + newbits |=0x0000003F & rs; +#endif + } + +if (mask[1 ] ==1 ) { + overwrite &=0xFFFFE07F ; + newbits &=0xFFFFE07F ; + newbits |=0x00001F80 & rs; + } + +if (mask[2 ] ==1 ) { + overwrite &=0xFFFFDFFF ; + newbits &=0xFFFFDFFF ; + newbits |=0x00002000 & rs; + } + +if (mask[3 ] ==1 ) { + overwrite &=0xFF00FFFF ; + newbits &=0xFF00FFFF ; + newbits |=0x00FF0000 & rs; + } + +if (mask[4 ] ==1 ) { + overwrite &=0x00FFFFFF ; + newbits &=0x00FFFFFF ; + newbits |=0xFF000000 & rs; + } + +if (mask[5 ] ==1 ) { + overwrite &=0xFFFFBFFF ; + newbits &=0xFFFFBFFF ; + newbits |=0x00004000 & rs; + } + + dsp = dsp & overwrite; + dsp = dsp | newbits; + env->active_tc.DSPControl = dsp; +} + +target_ulong helper_rddsp (CPUMIPSState *env,uint32_t masknum) +{ +uint8_t mask[6 ]; +uint32_t ruler, i; +target_ulong temp; +target_ulong dsp; + + ruler =0x01 ; +for (i =0 ; i <6 ; i++) { + mask[i] = (masknum & ruler) >> i ; + ruler = ruler <<1 ; + } + + temp =0x00 ; + dsp = env->active_tc.DSPControl; + +if (mask[0 ] ==1 ) { +#if defined(TARGET_MIPS64 ) + temp |= dsp &0x7F ; +#else + temp |= dsp &0x3F ; +#endif + } + +if (mask[1 ] ==1 ) { + temp |= dsp &0x1F80 ; + } + +if (mask[2 ] ==1 ) { + temp |= dsp &0x2000 ; + } + +if (mask[3 ] ==1 ) { + temp |= dsp &0x00FF0000 ; + } + +if (mask[4 ] ==1 ) { + temp |= dsp &0xFF000000 ; + } + +if (mask[5 ] ==1 ) { + temp |= dsp &0x4000 ; + } + +return temp; +} +#undef MIPSDSP_LHI#undef MIPSDSP_LLO#undef MIPSDSP_HI
target-mips/helper.h +52 -0
56 lines not on this page · raw message
target-mips/translate.c +425 -0
455 lines not on this page · raw message
Signature · 1 line
1.7.9.5
PATCH v7 12/14 target-mips-ase-dsp: Add MIPS DSP processors
In reply to Jia LiuAdd MIPS[32|64] ASE DSP[R1|R2] generic cpu model for test.
--- target-mips/translate_init.c | 55 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+)
target-mips/translate_init.c +55 -0
@@ -311,6 +311,32 @@ static const mips_def_t mips_defs[] = .insn_flags = CPU_MIPS32R2 | ASE_MIPS16 | ASE_DSP | ASE_MT, .mmu_type = MMU_TYPE_R4000, }, + { +/* A generic CPU providing MIPS32 ASE DSP Release 2 features. +FIXME: Eventually this should be replaced by a real CPU model. */ + .name = "mips32dspr2", + .CP0_PRid = 0x00019300, + .CP0_Config0 =MIPS_CONFIG0 | (0x1 <<CP0C0_AR ) | + (MMU_TYPE_R4000 << CP0C0_MT), + .CP0_Config1 =MIPS_CONFIG1 | (1 <<CP0C1_FP ) | (15 <<CP0C1_MMU ) | + (0 <<CP0C1_IS ) | (3 <<CP0C1_IL ) | (1 <<CP0C1_IA ) | + (0 <<CP0C1_DS ) | (3 <<CP0C1_DL ) | (1 <<CP0C1_DA ) | + (1 << CP0C1_CA), + .CP0_Config2 = MIPS_CONFIG2, + .CP0_Config3 = MIPS_CONFIG3 | (0 << CP0C3_VInt) | (1 << CP0C3_DSPP), + .CP0_LLAddr_rw_bitmask = 0, + .CP0_LLAddr_shift = 4, + .SYNCI_Step = 32, + .CCRes = 2, +/* No DSP implemented. */ + .CP0_Status_rw_bitmask = 0x3778FF1F, + .CP1_fcr0 = (1 <<FCR0_F64 ) | (1 <<FCR0_L ) | (1 <<FCR0_W ) | + (1 << FCR0_D) | (1 << FCR0_S) | (0x93 << FCR0_PRID), + .SEGBITS = 32, + .PABITS = 32, + .insn_flags = CPU_MIPS32R2 | ASE_MIPS16 | ASE_DSP | ASE_DSPR2, + .mmu_type =MMU_TYPE_R4000 , + }, #if defined(TARGET_MIPS64) { .name = "R4000",
@@ -484,6 +510,35 @@ static const mips_def_t mips_defs[] = .insn_flags = CPU_LOONGSON2F, .mmu_type = MMU_TYPE_R4000, }, + { + /* A generic CPU providing MIPS64 ASE DSP Release 2 features. + FIXME: Eventually this should be replaced by a real CPU model. */ + .name = "mips64dspr2", + /* We emulate a later version of the 20Kc, earlier ones had a broken + WAIT instruction. */ + .CP0_PRid = 0x000182a0, + .CP0_Config0 = MIPS_CONFIG0 | (0x2 << CP0C0_AT) | + (MMU_TYPE_R4000 << CP0C0_MT) | (1 << CP0C0_VI), + .CP0_Config1 = MIPS_CONFIG1 | (1 << CP0C1_FP) | (47 << CP0C1_MMU) | + (2 << CP0C1_IS) | (4 << CP0C1_IL) | (3 << CP0C1_IA) | + (2 << CP0C1_DS) | (4 << CP0C1_DL) | (3 << CP0C1_DA) | + (1 << CP0C1_PC) | (1 << CP0C1_WR) | (1 << CP0C1_EP), + .CP0_Config2 = MIPS_CONFIG2, + .CP0_Config3 = MIPS_CONFIG3 | (1 << CP0C3_DSPP), + .CP0_LLAddr_rw_bitmask = 0, + .CP0_LLAddr_shift = 0, + .SYNCI_Step = 32, + .CCRes = 1, + .CP0_Status_rw_bitmask = 0x37FBFFFF, + /* The 20Kc has F64 / L / W but doesn't use the fcr0 bits. */ + .CP1_fcr0 = (1 << FCR0_3D) | (1 << FCR0_PS) | + (1 << FCR0_D) | (1 << FCR0_S) | + (0x82 << FCR0_PRID) | (0x0 << FCR0_REV), + .SEGBITS = 40, + .PABITS = 36, + .insn_flags = CPU_MIPS64R2 | ASE_DSP | ASE_DSPR2, + .mmu_type = MMU_TYPE_R4000, + }, #endif };
Signature · 1 line
1.7.9.5
Re: [Qemu-devel] [PATCH v7 12/14] target-mips-ase-dsp: Add MIPS DSP processors
Quoted 12 lines · Jia Liu
Add MIPS[32|64] ASE DSP[R1|R2] generic cpu model for test.
Signed-off-by Jia Liu <[email protected]>--- target-mips/translate_init.c | 55 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+)target-mips/translate_init.c +0
-0
target-mips/translate_init.c static const mips_def_t mips_defs[] = · line 316
Quoted 6 lines
target-mips/translate_init.c +3
-0@@ -311,6 +311,32 @@ static const mips_def_t mips_defs[] = .insn_flags = CPU_MIPS32R2 | ASE_MIPS16 | ASE_DSP | ASE_MT, .mmu_type = MMU_TYPE_R4000, }, + { +/* A generic CPU providing MIPS32 ASE DSP Release 2 features. +FIXME: Eventually this should be replaced by a real CPU model. */
Is it something that could be fixed now? I guess MIPS produces core with this instruction set.
Quoted 66 lines
target-mips/translate_init.c +52
-0+ .name = "mips32dspr2", + .CP0_PRid = 0x00019300, + .CP0_Config0 =MIPS_CONFIG0 | (0x1 <<CP0C0_AR ) | + (MMU_TYPE_R4000 << CP0C0_MT), + .CP0_Config1 =MIPS_CONFIG1 | (1 <<CP0C1_FP ) | (15 <<CP0C1_MMU ) | + (0 <<CP0C1_IS ) | (3 <<CP0C1_IL ) | (1 <<CP0C1_IA ) | + (0 <<CP0C1_DS ) | (3 <<CP0C1_DL ) | (1 <<CP0C1_DA ) | + (1 << CP0C1_CA), + .CP0_Config2 = MIPS_CONFIG2, + .CP0_Config3 = MIPS_CONFIG3 | (0 << CP0C3_VInt) | (1 << CP0C3_DSPP), + .CP0_LLAddr_rw_bitmask = 0, + .CP0_LLAddr_shift = 4, + .SYNCI_Step = 32, + .CCRes = 2, +/* No DSP implemented. */ + .CP0_Status_rw_bitmask = 0x3778FF1F, + .CP1_fcr0 = (1 <<FCR0_F64 ) | (1 <<FCR0_L ) | (1 <<FCR0_W ) | + (1 << FCR0_D) | (1 << FCR0_S) | (0x93 << FCR0_PRID), + .SEGBITS = 32, + .PABITS = 32, + .insn_flags = CPU_MIPS32R2 | ASE_MIPS16 | ASE_DSP | ASE_DSPR2, + .mmu_type =MMU_TYPE_R4000 , + }, #if defined(TARGET_MIPS64) { .name = "R4000",@@ -484,6 +510,35 @@ static const mips_def_t mips_defs[] = .insn_flags = CPU_LOONGSON2F, .mmu_type = MMU_TYPE_R4000, }, + { + /* A generic CPU providing MIPS64 ASE DSP Release 2 features. + FIXME: Eventually this should be replaced by a real CPU model. */ + .name = "mips64dspr2", + /* We emulate a later version of the 20Kc, earlier ones had a broken + WAIT instruction. */ + .CP0_PRid = 0x000182a0, + .CP0_Config0 = MIPS_CONFIG0 | (0x2 << CP0C0_AT) | + (MMU_TYPE_R4000 << CP0C0_MT) | (1 << CP0C0_VI), + .CP0_Config1 = MIPS_CONFIG1 | (1 << CP0C1_FP) | (47 << CP0C1_MMU) | + (2 << CP0C1_IS) | (4 << CP0C1_IL) | (3 << CP0C1_IA) | + (2 << CP0C1_DS) | (4 << CP0C1_DL) | (3 << CP0C1_DA) | + (1 << CP0C1_PC) | (1 << CP0C1_WR) | (1 << CP0C1_EP), + .CP0_Config2 = MIPS_CONFIG2, + .CP0_Config3 = MIPS_CONFIG3 | (1 << CP0C3_DSPP), + .CP0_LLAddr_rw_bitmask = 0, + .CP0_LLAddr_shift = 0, + .SYNCI_Step = 32, + .CCRes = 1, + .CP0_Status_rw_bitmask = 0x37FBFFFF, + /* The 20Kc has F64 / L / W but doesn't use the fcr0 bits. */ + .CP1_fcr0 = (1 << FCR0_3D) | (1 << FCR0_PS) | + (1 << FCR0_D) | (1 << FCR0_S) | + (0x82 << FCR0_PRID) | (0x0 << FCR0_REV), + .SEGBITS = 40, + .PABITS = 36, + .insn_flags = CPU_MIPS64R2 | ASE_DSP | ASE_DSPR2, + .mmu_type = MMU_TYPE_R4000, + }, #endif };Signature · 1 line
1.7.9.5
Signature · 2 lines
Aurelien Jarno GPG: 1024D/F1BCDB73 [email protected] http://www.aurel32.net
Re: [Qemu-devel] [PATCH v7 12/14] target-mips-ase-dsp: Add MIPS DSP processors
Hi Aurelien,
Quoted 8 lines · Aurelien Jarno
Quoted 7 lines · Jia Liu
Add MIPS[32|64] ASE DSP[R1|R2] generic cpu model for test.
Signed-off-by Jia Liu <[email protected]>--- target-mips/translate_init.c | 55 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+)
Quoted 15 lines
target-mips/translate_init.c static const mips_def_t mips_defs[] = · line 316
Quoted 11 lines
target-mips/translate_init.c +3
-0@@ -311,6 +311,32 @@ static const mips_def_t mips_defs[] = .insn_flags = CPU_MIPS32R2 | ASE_MIPS16 | ASE_DSP | ASE_MT, .mmu_type = MMU_TYPE_R4000, }, + { +/* A generic CPU providing MIPS32 ASE DSP Release 2 features. +FIXME: Eventually this should be replaced by a real CPU model. */ Is it something that could be fixed now? I guess MIPS produces core with this instruction set.
I'll make it 74kf. Is it OK?
Quoted 60 lines
Quoted 60 lines
target-mips/translate_init.c +52
-0+ .name = "mips32dspr2", + .CP0_PRid = 0x00019300, + .CP0_Config0 =MIPS_CONFIG0 | (0x1 <<CP0C0_AR ) | + (MMU_TYPE_R4000 << CP0C0_MT), + .CP0_Config1 =MIPS_CONFIG1 | (1 <<CP0C1_FP ) | (15 <<CP0C1_MMU ) | + (0 <<CP0C1_IS ) | (3 <<CP0C1_IL ) | (1 <<CP0C1_IA ) | + (0 <<CP0C1_DS ) | (3 <<CP0C1_DL ) | (1 <<CP0C1_DA ) | + (1 << CP0C1_CA), + .CP0_Config2 = MIPS_CONFIG2, + .CP0_Config3 = MIPS_CONFIG3 | (0 << CP0C3_VInt) | (1 << CP0C3_DSPP), + .CP0_LLAddr_rw_bitmask = 0, + .CP0_LLAddr_shift = 4, + .SYNCI_Step = 32, + .CCRes = 2, +/* No DSP implemented. */ + .CP0_Status_rw_bitmask = 0x3778FF1F, + .CP1_fcr0 = (1 <<FCR0_F64 ) | (1 <<FCR0_L ) | (1 <<FCR0_W ) | + (1 << FCR0_D) | (1 << FCR0_S) | (0x93 << FCR0_PRID), + .SEGBITS = 32, + .PABITS = 32, + .insn_flags = CPU_MIPS32R2 | ASE_MIPS16 | ASE_DSP | ASE_DSPR2, + .mmu_type =MMU_TYPE_R4000 , + }, #if defined(TARGET_MIPS64) { .name = "R4000",@@ -484,6 +510,35 @@ static const mips_def_t mips_defs[] = .insn_flags = CPU_LOONGSON2F, .mmu_type = MMU_TYPE_R4000, }, + { +/* A generic CPU providing MIPS64 ASE DSP Release 2 features. +FIXME: Eventually this should be replaced by a real CPU model. */ + .name = "mips64dspr2", +/* We emulate a later version of the 20Kc, earlier ones had a broken +WAIT instruction. */ + .CP0_PRid = 0x000182a0, + .CP0_Config0 =MIPS_CONFIG0 | (0x2 <<CP0C0_AT ) | + (MMU_TYPE_R4000 << CP0C0_MT) | (1 << CP0C0_VI), + .CP0_Config1 =MIPS_CONFIG1 | (1 <<CP0C1_FP ) | (47 <<CP0C1_MMU ) | + (2 <<CP0C1_IS ) | (4 <<CP0C1_IL ) | (3 <<CP0C1_IA ) | + (2 <<CP0C1_DS ) | (4 <<CP0C1_DL ) | (3 <<CP0C1_DA ) | + (1 << CP0C1_PC) | (1 << CP0C1_WR) | (1 << CP0C1_EP), + .CP0_Config2 = MIPS_CONFIG2, + .CP0_Config3 = MIPS_CONFIG3 | (1 << CP0C3_DSPP), + .CP0_LLAddr_rw_bitmask = 0, + .CP0_LLAddr_shift = 0, + .SYNCI_Step = 32, + .CCRes = 1, + .CP0_Status_rw_bitmask = 0x37FBFFFF, +/* The 20Kc has F64 / L / W but doesn't use the fcr0 bits. */ + .CP1_fcr0 = (1 <<FCR0_3D ) | (1 <<FCR0_PS ) | + (1 <<FCR0_D ) | (1 <<FCR0_S ) | + (0x82 << FCR0_PRID) | (0x0 << FCR0_REV), + .SEGBITS = 40, + .PABITS = 36, + .insn_flags = CPU_MIPS64R2 | ASE_DSP | ASE_DSPR2, + .mmu_type = MMU_TYPE_R4000, + },
Quoted 10 lines
Quoted 6 lines
target-mips/translate_init.c +0
-1#endif }; --1.7.9.5
--
Aurelien Jarno GPG: 1024D/F1BCDB73
[email protected] http://www.aurel32.net
Regards,
Jia
Re: [Qemu-devel] [PATCH v7 12/14] target-mips-ase-dsp: Add MIPS DSP processors
Quoted 27 lines · Jia Liu
Hi Aurelien,
Quoted 8 lines · Aurelien Jarno
Quoted 7 lines · Jia Liu
Add MIPS[32|64] ASE DSP[R1|R2] generic cpu model for test.
Signed-off-by Jia Liu <[email protected]>--- target-mips/translate_init.c | 55 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+)Quoted 15 lines
target-mips/translate_init.c static const mips_def_t mips_defs[] = · line 316
Quoted 11 lines
target-mips/translate_init.c +3
-0@@ -311,6 +311,32 @@ static const mips_def_t mips_defs[] = .insn_flags = CPU_MIPS32R2 | ASE_MIPS16 | ASE_DSP | ASE_MT, .mmu_type = MMU_TYPE_R4000, }, + { +/* A generic CPU providing MIPS32 ASE DSP Release 2 features. +FIXME: Eventually this should be replaced by a real CPU model. */ Is it something that could be fixed now? I guess MIPS produces core with this instruction set.
Quoted 2 lines
I'll make it 74kf. Is it OK?
Yes, it looks fine to me.
Signature · 2 lines
Aurelien Jarno GPG: 1024D/F1BCDB73 [email protected] http://www.aurel32.net
PATCH v7 13/14 target-mips-ase-dsp: Add testcases
In reply to Jia LiuAdd MIPS ASE DSP testcases.
--- tests/tcg/mips/mips32-dsp/Makefile | 134 +++++++++++ tests/tcg/mips/mips32-dsp/absq_s_ph.c | 31 +++ tests/tcg/mips/mips32-dsp/absq_s_w.c | 37 +++ tests/tcg/mips/mips32-dsp/addq_ph.c | 30 +++ tests/tcg/mips/mips32-dsp/addq_s_ph.c | 30 +++ tests/tcg/mips/mips32-dsp/addsc.c | 30 +++ tests/tcg/mips/mips32-dsp/addu_qb.c | 30 +++ tests/tcg/mips/mips32-dsp/addu_s_qb.c | 30 +++ tests/tcg/mips/mips32-dsp/addwc.c | 30 +++ tests/tcg/mips/mips32-dsp/bitrev.c | 20 ++ tests/tcg/mips/mips32-dsp/bposge32.c | 44 ++++ tests/tcg/mips/mips32-dsp/cmp_eq_ph.c | 35 +++ tests/tcg/mips/mips32-dsp/cmp_le_ph.c | 35 +++ tests/tcg/mips/mips32-dsp/cmp_lt_ph.c | 35 +++ tests/tcg/mips/mips32-dsp/cmpgu_eq_qb.c | 31 +++ tests/tcg/mips/mips32-dsp/cmpgu_le_qb.c | 31 +++ tests/tcg/mips/mips32-dsp/cmpgu_lt_qb.c | 31 +++ tests/tcg/mips/mips32-dsp/cmpu_eq_qb.c | 35 +++ tests/tcg/mips/mips32-dsp/cmpu_le_qb.c | 35 +++ tests/tcg/mips/mips32-dsp/cmpu_lt_qb.c | 35 +++ tests/tcg/mips/mips32-dsp/dpaq_s_w_ph.c | 31 +++ tests/tcg/mips/mips32-dsp/dpaq_sa_l_w.c | 31 +++ tests/tcg/mips/mips32-dsp/dpau_h_qbl.c | 27 +++ tests/tcg/mips/mips32-dsp/dpau_h_qbr.c | 27 +++ tests/tcg/mips/mips32-dsp/dpsq_s_w_ph.c | 27 +++ tests/tcg/mips/mips32-dsp/dpsq_sa_l_w.c | 31 +++ tests/tcg/mips/mips32-dsp/dpsu_h_qbl.c | 27 +++ tests/tcg/mips/mips32-dsp/dpsu_h_qbr.c | 27 +++ tests/tcg/mips/mips32-dsp/extp.c | 44 ++++ tests/tcg/mips/mips32-dsp/extpdp.c | 46 ++++ tests/tcg/mips/mips32-dsp/extpdpv.c | 47 ++++ tests/tcg/mips/mips32-dsp/extpv.c | 45 ++++ tests/tcg/mips/mips32-dsp/extr_r_w.c | 25 ++ tests/tcg/mips/mips32-dsp/extr_rs_w.c | 25 ++ tests/tcg/mips/mips32-dsp/extr_s_h.c | 25 ++ tests/tcg/mips/mips32-dsp/extr_w.c | 25 ++ tests/tcg/mips/mips32-dsp/extrv_r_w.c | 29 +++ tests/tcg/mips/mips32-dsp/extrv_rs_w.c | 29 +++ tests/tcg/mips/mips32-dsp/extrv_s_h.c | 29 +++ tests/tcg/mips/mips32-dsp/extrv_w.c | 29 +++ tests/tcg/mips/mips32-dsp/insv.c | 23 ++ tests/tcg/mips/mips32-dsp/lbux.c | 25 ++ tests/tcg/mips/mips32-dsp/lhx.c | 25 ++ tests/tcg/mips/mips32-dsp/lwx.c | 25 ++ tests/tcg/mips/mips32-dsp/madd.c | 31 +++ tests/tcg/mips/mips32-dsp/maddu.c | 31 +++ tests/tcg/mips/mips32-dsp/main.c | 6 + tests/tcg/mips/mips32-dsp/maq_s_w_phl.c | 31 +++ tests/tcg/mips/mips32-dsp/maq_s_w_phr.c | 31 +++ tests/tcg/mips/mips32-dsp/maq_sa_w_phl.c | 31 +++ tests/tcg/mips/mips32-dsp/maq_sa_w_phr.c | 31 +++ tests/tcg/mips/mips32-dsp/mfhi.c | 21 ++ tests/tcg/mips/mips32-dsp/mflo.c | 21 ++ tests/tcg/mips/mips32-dsp/modsub.c | 30 +++ tests/tcg/mips/mips32-dsp/msub.c | 30 +++ tests/tcg/mips/mips32-dsp/msubu.c | 30 +++ tests/tcg/mips/mips32-dsp/mthi.c | 21 ++ tests/tcg/mips/mips32-dsp/mthlip.c | 34 +++ tests/tcg/mips/mips32-dsp/mtlo.c | 21 ++ tests/tcg/mips/mips32-dsp/muleq_s_w_phr.c | 40 ++++ tests/tcg/mips/mips32-dsp/muleu_s_ph_qbl.c | 25 ++ tests/tcg/mips/mips32-dsp/muleu_s_ph_qbr.c | 25 ++ tests/tcg/mips/mips32-dsp/mulq_rs_ph.c | 25 ++ tests/tcg/mips/mips32-dsp/mult.c | 24 ++ tests/tcg/mips/mips32-dsp/multu.c | 24 ++ tests/tcg/mips/mips32-dsp/packrl_ph.c | 21 ++ tests/tcg/mips/mips32-dsp/pick_ph.c | 23 ++ tests/tcg/mips/mips32-dsp/pick_qb.c | 23 ++ tests/tcg/mips/mips32-dsp/preceq_w_phl.c | 20 ++ tests/tcg/mips/mips32-dsp/preceq_w_phr.c | 20 ++ tests/tcg/mips/mips32-dsp/precequ_ph_qbl.c | 20 ++ tests/tcg/mips/mips32-dsp/precequ_ph_qbla.c | 20 ++ tests/tcg/mips/mips32-dsp/precequ_ph_qbr.c | 20 ++ tests/tcg/mips/mips32-dsp/precequ_ph_qbra.c | 20 ++ tests/tcg/mips/mips32-dsp/preceu_ph_qbl.c | 20 ++ tests/tcg/mips/mips32-dsp/preceu_ph_qbla.c | 20 ++ tests/tcg/mips/mips32-dsp/preceu_ph_qbr.c | 20 ++ tests/tcg/mips/mips32-dsp/preceu_ph_qbra.c | 20 ++ tests/tcg/mips/mips32-dsp/precrq_ph_w.c | 21 ++ tests/tcg/mips/mips32-dsp/precrq_qb_ph.c | 21 ++ tests/tcg/mips/mips32-dsp/precrq_rs_ph_w.c | 21 ++ tests/tcg/mips/mips32-dsp/precrqu_s_qb_ph.c | 21 ++ tests/tcg/mips/mips32-dsp/raddu_w_qb.c | 20 ++ tests/tcg/mips/mips32-dsp/rddsp.c | 54 +++++ tests/tcg/mips/mips32-dsp/repl_ph.c | 23 ++ tests/tcg/mips/mips32-dsp/repl_qb.c | 16 ++ tests/tcg/mips/mips32-dsp/replv_ph.c | 19 ++ tests/tcg/mips/mips32-dsp/replv_qb.c | 19 ++ tests/tcg/mips/mips32-dsp/shilo.c | 27 +++ tests/tcg/mips/mips32-dsp/shilov.c | 29 +++ tests/tcg/mips/mips32-dsp/shll_ph.c | 24 ++ tests/tcg/mips/mips32-dsp/shll_qb.c | 23 ++ tests/tcg/mips/mips32-dsp/shll_s_ph.c | 24 ++ tests/tcg/mips/mips32-dsp/shll_s_w.c | 24 ++ tests/tcg/mips/mips32-dsp/shllv_ph.c | 25 ++ tests/tcg/mips/mips32-dsp/shllv_qb.c | 24 ++ tests/tcg/mips/mips32-dsp/shllv_s_ph.c | 25 ++ tests/tcg/mips/mips32-dsp/shllv_s_w.c | 25 ++ tests/tcg/mips/mips32-dsp/shra_ph.c | 20 ++ tests/tcg/mips/mips32-dsp/shra_r_ph.c | 20 ++ tests/tcg/mips/mips32-dsp/shra_r_w.c | 20 ++ tests/tcg/mips/mips32-dsp/shrav_ph.c | 21 ++ tests/tcg/mips/mips32-dsp/shrav_r_ph.c | 21 ++ tests/tcg/mips/mips32-dsp/shrav_r_w.c | 21 ++ tests/tcg/mips/mips32-dsp/shrl_qb.c | 20 ++ tests/tcg/mips/mips32-dsp/shrlv_qb.c | 21 ++ tests/tcg/mips/mips32-dsp/subq_ph.c | 25 ++ tests/tcg/mips/mips32-dsp/subq_s_ph.c | 25 ++ tests/tcg/mips/mips32-dsp/subq_s_w.c | 25 ++ tests/tcg/mips/mips32-dsp/subu_qb.c | 25 ++ tests/tcg/mips/mips32-dsp/subu_s_qb.c | 25 ++ tests/tcg/mips/mips32-dsp/wrdsp.c | 54 +++++ tests/tcg/mips/mips32-dspr2/Makefile | 72 ++++++ tests/tcg/mips/mips32-dspr2/absq_s_qb.c | 35 +++ tests/tcg/mips/mips32-dspr2/addqh_ph.c | 30 +++ tests/tcg/mips/mips32-dspr2/addqh_r_ph.c | 30 +++ tests/tcg/mips/mips32-dspr2/addqh_r_w.c | 34 +++ tests/tcg/mips/mips32-dspr2/addqh_w.c | 34 +++ tests/tcg/mips/mips32-dspr2/addu_ph.c | 30 +++ tests/tcg/mips/mips32-dspr2/addu_s_ph.c | 30 +++ tests/tcg/mips/mips32-dspr2/adduh_qb.c | 30 +++ tests/tcg/mips/mips32-dspr2/adduh_r_qb.c | 30 +++ tests/tcg/mips/mips32-dspr2/append.c | 30 +++ tests/tcg/mips/mips32-dspr2/balign.c | 30 +++ tests/tcg/mips/mips32-dspr2/cmpgdu_eq_qb.c | 37 +++ tests/tcg/mips/mips32-dspr2/cmpgdu_le_qb.c | 37 +++ tests/tcg/mips/mips32-dspr2/cmpgdu_lt_qb.c | 37 +++ tests/tcg/mips/mips32-dspr2/dpa_w_ph.c | 27 +++ tests/tcg/mips/mips32-dspr2/dpaqx_s_w_ph.c | 57 +++++ tests/tcg/mips/mips32-dspr2/dpaqx_sa_w_ph.c | 31 +++ tests/tcg/mips/mips32-dspr2/dpax_w_ph.c | 27 +++ tests/tcg/mips/mips32-dspr2/dps_w_ph.c | 27 +++ tests/tcg/mips/mips32-dspr2/dpsqx_s_w_ph.c | 31 +++ tests/tcg/mips/mips32-dspr2/dpsqx_sa_w_ph.c | 31 +++ tests/tcg/mips/mips32-dspr2/dpsx_w_ph.c | 27 +++ tests/tcg/mips/mips32-dspr2/mul_ph.c | 25 ++ tests/tcg/mips/mips32-dspr2/mul_s_ph.c | 25 ++ tests/tcg/mips/mips32-dspr2/muleq_s_w_phl.c | 40 ++++ tests/tcg/mips/mips32-dspr2/mulq_rs_w.c | 36 +++ tests/tcg/mips/mips32-dspr2/mulq_s_ph.c | 25 ++ tests/tcg/mips/mips32-dspr2/mulq_s_w.c | 36 +++ tests/tcg/mips/mips32-dspr2/mulsa_w_ph.c | 29 +++ tests/tcg/mips/mips32-dspr2/mulsaq_s_w_ph.c | 29 +++ tests/tcg/mips/mips32-dspr2/precr_qb_ph.c | 21 ++ tests/tcg/mips/mips32-dspr2/precr_sra_ph_w.c | 32 +++ tests/tcg/mips/mips32-dspr2/precr_sra_r_ph_w.c | 32 +++ tests/tcg/mips/mips32-dspr2/prepend.c | 30 +++ tests/tcg/mips/mips32-dspr2/shra_qb.c | 30 +++ tests/tcg/mips/mips32-dspr2/shra_r_qb.c | 30 +++ tests/tcg/mips/mips32-dspr2/shrav_qb.c | 32 +++ tests/tcg/mips/mips32-dspr2/shrav_r_qb.c | 32 +++ tests/tcg/mips/mips32-dspr2/shrl_ph.c | 20 ++ tests/tcg/mips/mips32-dspr2/shrlv_ph.c | 21 ++ tests/tcg/mips/mips32-dspr2/subqh_ph.c | 21 ++ tests/tcg/mips/mips32-dspr2/subqh_r_ph.c | 21 ++ tests/tcg/mips/mips32-dspr2/subqh_r_w.c | 21 ++ tests/tcg/mips/mips32-dspr2/subqh_w.c | 21 ++ tests/tcg/mips/mips32-dspr2/subu_ph.c | 25 ++ tests/tcg/mips/mips32-dspr2/subu_s_ph.c | 25 ++ tests/tcg/mips/mips32-dspr2/subuh_qb.c | 21 ++ tests/tcg/mips/mips32-dspr2/subuh_r_qb.c | 21 ++ tests/tcg/mips/mips64-dsp/Makefile | 304 ++++++++++++++++++++++++ tests/tcg/mips/mips64-dsp/absq_s_ob.c | 63 +++++ tests/tcg/mips/mips64-dsp/absq_s_ph.c | 37 +++ tests/tcg/mips/mips64-dsp/absq_s_pw.c | 66 +++++ tests/tcg/mips/mips64-dsp/absq_s_qh.c | 40 ++++ tests/tcg/mips/mips64-dsp/absq_s_w.c | 48 ++++ tests/tcg/mips/mips64-dsp/addq_ph.c | 37 +++ tests/tcg/mips/mips64-dsp/addq_pw.c | 26 ++ tests/tcg/mips/mips64-dsp/addq_qh.c | 28 +++ tests/tcg/mips/mips64-dsp/addq_s_ph.c | 37 +++ tests/tcg/mips/mips64-dsp/addq_s_pw.c | 45 ++++ tests/tcg/mips/mips64-dsp/addq_s_qh.c | 26 ++ tests/tcg/mips/mips64-dsp/addsc.c | 37 +++ tests/tcg/mips/mips64-dsp/addu_ob.c | 27 +++ tests/tcg/mips/mips64-dsp/addu_qb.c | 37 +++ tests/tcg/mips/mips64-dsp/addu_s_ob.c | 27 +++ tests/tcg/mips/mips64-dsp/addu_s_qb.c | 38 +++ tests/tcg/mips/mips64-dsp/addwc.c | 37 +++ tests/tcg/mips/mips64-dsp/bitrev.c | 23 ++ tests/tcg/mips/mips64-dsp/bposge32.c | 50 ++++ tests/tcg/mips/mips64-dsp/bposge64.c | 50 ++++ tests/tcg/mips/mips64-dsp/cmp_eq_ph.c | 42 ++++ tests/tcg/mips/mips64-dsp/cmp_eq_pw.c | 27 +++ tests/tcg/mips/mips64-dsp/cmp_eq_qh.c | 27 +++ tests/tcg/mips/mips64-dsp/cmp_le_ph.c | 40 ++++ tests/tcg/mips/mips64-dsp/cmp_le_pw.c | 27 +++ tests/tcg/mips/mips64-dsp/cmp_le_qh.c | 27 +++ tests/tcg/mips/mips64-dsp/cmp_lt_ph.c | 41 ++++ tests/tcg/mips/mips64-dsp/cmp_lt_pw.c | 27 +++ tests/tcg/mips/mips64-dsp/cmp_lt_qh.c | 27 +++ tests/tcg/mips/mips64-dsp/cmpgu_eq_ob.c | 24 ++ tests/tcg/mips/mips64-dsp/cmpgu_eq_qb.c | 38 +++ tests/tcg/mips/mips64-dsp/cmpgu_le_ob.c | 24 ++ tests/tcg/mips/mips64-dsp/cmpgu_le_qb.c | 37 +++ tests/tcg/mips/mips64-dsp/cmpgu_lt_ob.c | 24 ++ tests/tcg/mips/mips64-dsp/cmpgu_lt_qb.c | 38 +++ tests/tcg/mips/mips64-dsp/cmpu_eq_ob.c | 27 +++ tests/tcg/mips/mips64-dsp/cmpu_eq_qb.c | 42 ++++ tests/tcg/mips/mips64-dsp/cmpu_le_ob.c | 26 ++ tests/tcg/mips/mips64-dsp/cmpu_le_qb.c | 41 ++++ tests/tcg/mips/mips64-dsp/cmpu_lt_ob.c | 26 ++ tests/tcg/mips/mips64-dsp/cmpu_lt_qb.c | 42 ++++ tests/tcg/mips/mips64-dsp/dappend.c | 37 +++ tests/tcg/mips/mips64-dsp/dextp.c | 33 +++ tests/tcg/mips/mips64-dsp/dextpdp.c | 37 +++ tests/tcg/mips/mips64-dsp/dextpdpv.c | 38 +++ tests/tcg/mips/mips64-dsp/dextpv.c | 34 +++ tests/tcg/mips/mips64-dsp/dextr_l.c | 27 +++ tests/tcg/mips/mips64-dsp/dextr_r_l.c | 32 +++ tests/tcg/mips/mips64-dsp/dextr_r_w.c | 32 +++ tests/tcg/mips/mips64-dsp/dextr_rs_l.c | 31 +++ tests/tcg/mips/mips64-dsp/dextr_rs_w.c | 31 +++ tests/tcg/mips/mips64-dsp/dextr_s_h.c | 31 +++ tests/tcg/mips/mips64-dsp/dextr_w.c | 27 +++ tests/tcg/mips/mips64-dsp/dextrv_l.c | 28 +++ tests/tcg/mips/mips64-dsp/dextrv_r_l.c | 33 +++ tests/tcg/mips/mips64-dsp/dextrv_r_w.c | 33 +++ tests/tcg/mips/mips64-dsp/dextrv_rs_l.c | 32 +++ tests/tcg/mips/mips64-dsp/dextrv_rs_w.c | 32 +++ tests/tcg/mips/mips64-dsp/dextrv_s_h.c | 32 +++ tests/tcg/mips/mips64-dsp/dextrv_w.c | 28 +++ tests/tcg/mips/mips64-dsp/dinsv.c | 25 ++ tests/tcg/mips/mips64-dsp/dmadd.c | 57 +++++ tests/tcg/mips/mips64-dsp/dmaddu.c | 56 +++++ tests/tcg/mips/mips64-dsp/dmsub.c | 59 +++++ tests/tcg/mips/mips64-dsp/dmsubu.c | 59 +++++ tests/tcg/mips/mips64-dsp/dmthlip.c | 32 +++ tests/tcg/mips/mips64-dsp/dpaq_s_w_ph.c | 32 +++ tests/tcg/mips/mips64-dsp/dpaq_s_w_qh.c | 57 +++++ tests/tcg/mips/mips64-dsp/dpaq_sa_l_pw.c | 62 +++++ tests/tcg/mips/mips64-dsp/dpaq_sa_l_w.c | 32 +++ tests/tcg/mips/mips64-dsp/dpau_h_obl.c | 59 +++++ tests/tcg/mips/mips64-dsp/dpau_h_obr.c | 59 +++++ tests/tcg/mips/mips64-dsp/dpau_h_qbl.c | 29 +++ tests/tcg/mips/mips64-dsp/dpau_h_qbr.c | 29 +++ tests/tcg/mips/mips64-dsp/dpsq_s_w_ph.c | 29 +++ tests/tcg/mips/mips64-dsp/dpsq_s_w_qh.c | 33 +++ tests/tcg/mips/mips64-dsp/dpsq_sa_l_pw.c | 39 +++ tests/tcg/mips/mips64-dsp/dpsq_sa_l_w.c | 32 +++ tests/tcg/mips/mips64-dsp/dpsu_h_obl.c | 32 +++ tests/tcg/mips/mips64-dsp/dpsu_h_obr.c | 32 +++ tests/tcg/mips/mips64-dsp/dpsu_h_qbl.c | 29 +++ tests/tcg/mips/mips64-dsp/dpsu_h_qbr.c | 29 +++ tests/tcg/mips/mips64-dsp/dshilo.c | 31 +++ tests/tcg/mips/mips64-dsp/dshilov.c | 32 +++ tests/tcg/mips/mips64-dsp/extp.c | 50 ++++ tests/tcg/mips/mips64-dsp/extpdp.c | 51 ++++ tests/tcg/mips/mips64-dsp/extpdpv.c | 52 ++++ tests/tcg/mips/mips64-dsp/extpv.c | 51 ++++ tests/tcg/mips/mips64-dsp/extr_r_w.c | 27 +++ tests/tcg/mips/mips64-dsp/extr_rs_w.c | 27 +++ tests/tcg/mips/mips64-dsp/extr_s_h.c | 27 +++ tests/tcg/mips/mips64-dsp/extr_w.c | 27 +++ tests/tcg/mips/mips64-dsp/extrv_r_w.c | 31 +++ tests/tcg/mips/mips64-dsp/extrv_rs_w.c | 31 +++ tests/tcg/mips/mips64-dsp/extrv_s_h.c | 31 +++ tests/tcg/mips/mips64-dsp/extrv_w.c | 31 +++ tests/tcg/mips/mips64-dsp/head.S | 16 ++ tests/tcg/mips/mips64-dsp/insv.c | 26 ++ tests/tcg/mips/mips64-dsp/io.h | 22 ++ tests/tcg/mips/mips64-dsp/lbux.c | 27 +++ tests/tcg/mips/mips64-dsp/ldx.c | 27 +++ tests/tcg/mips/mips64-dsp/lhx.c | 27 +++ tests/tcg/mips/mips64-dsp/lwx.c | 27 +++ tests/tcg/mips/mips64-dsp/madd.c | 33 +++ tests/tcg/mips/mips64-dsp/maddu.c | 33 +++ tests/tcg/mips/mips64-dsp/maq_s_l_pwl.c | 56 +++++ tests/tcg/mips/mips64-dsp/maq_s_l_pwr.c | 56 +++++ tests/tcg/mips/mips64-dsp/maq_s_w_phl.c | 33 +++ tests/tcg/mips/mips64-dsp/maq_s_w_phr.c | 33 +++ tests/tcg/mips/mips64-dsp/maq_s_w_qhll.c | 62 +++++ tests/tcg/mips/mips64-dsp/maq_s_w_qhlr.c | 62 +++++ tests/tcg/mips/mips64-dsp/maq_s_w_qhrl.c | 63 +++++ tests/tcg/mips/mips64-dsp/maq_s_w_qhrr.c | 63 +++++ tests/tcg/mips/mips64-dsp/maq_sa_w_phl.c | 33 +++ tests/tcg/mips/mips64-dsp/maq_sa_w_phr.c | 33 +++ tests/tcg/mips/mips64-dsp/maq_sa_w_qhll.c | 62 +++++ tests/tcg/mips/mips64-dsp/maq_sa_w_qhlr.c | 64 +++++ tests/tcg/mips/mips64-dsp/maq_sa_w_qhrl.c | 64 +++++ tests/tcg/mips/mips64-dsp/maq_sa_w_qhrr.c | 64 +++++ tests/tcg/mips/mips64-dsp/mfhi.c | 24 ++ tests/tcg/mips/mips64-dsp/mflo.c | 24 ++ tests/tcg/mips/mips64-dsp/mips_boot.lds | 31 +++ tests/tcg/mips/mips64-dsp/modsub.c | 37 +++ tests/tcg/mips/mips64-dsp/msub.c | 32 +++ tests/tcg/mips/mips64-dsp/msubu.c | 32 +++ tests/tcg/mips/mips64-dsp/mthi.c | 24 ++ tests/tcg/mips/mips64-dsp/mthlip.c | 35 +++ tests/tcg/mips/mips64-dsp/mtlo.c | 22 ++ tests/tcg/mips/mips64-dsp/muleq_s_pw_qhl.c | 55 +++++ tests/tcg/mips/mips64-dsp/muleq_s_pw_qhr.c | 24 ++ tests/tcg/mips/mips64-dsp/muleq_s_w_phr.c | 45 ++++ tests/tcg/mips/mips64-dsp/muleu_s_ph_qbl.c | 27 +++ tests/tcg/mips/mips64-dsp/muleu_s_ph_qbr.c | 27 +++ tests/tcg/mips/mips64-dsp/muleu_s_qh_obl.c | 25 ++ tests/tcg/mips/mips64-dsp/muleu_s_qh_obr.c | 25 ++ tests/tcg/mips/mips64-dsp/mulq_rs_ph.c | 27 +++ tests/tcg/mips/mips64-dsp/mulq_rs_qh.c | 33 +++ tests/tcg/mips/mips64-dsp/mulsaq_s_l_pw.c | 59 +++++ tests/tcg/mips/mips64-dsp/mulsaq_s_w_qh.c | 57 +++++ tests/tcg/mips/mips64-dsp/mult.c | 26 ++ tests/tcg/mips/mips64-dsp/multu.c | 26 ++ tests/tcg/mips/mips64-dsp/packrl_ph.c | 24 ++ tests/tcg/mips/mips64-dsp/packrl_pw.c | 24 ++ tests/tcg/mips/mips64-dsp/pick_ob.c | 27 +++ tests/tcg/mips/mips64-dsp/pick_ph.c | 26 ++ tests/tcg/mips/mips64-dsp/pick_pw.c | 28 +++ tests/tcg/mips/mips64-dsp/pick_qb.c | 26 ++ tests/tcg/mips/mips64-dsp/pick_qh.c | 28 +++ tests/tcg/mips/mips64-dsp/preceq_l_pwl.c | 24 ++ tests/tcg/mips/mips64-dsp/preceq_l_pwr.c | 24 ++ tests/tcg/mips/mips64-dsp/preceq_pw_qhl.c | 21 ++ tests/tcg/mips/mips64-dsp/preceq_pw_qhla.c | 23 ++ tests/tcg/mips/mips64-dsp/preceq_pw_qhr.c | 21 ++ tests/tcg/mips/mips64-dsp/preceq_pw_qhra.c | 23 ++ tests/tcg/mips/mips64-dsp/preceq_w_phl.c | 23 ++ tests/tcg/mips/mips64-dsp/preceq_w_phr.c | 23 ++ tests/tcg/mips/mips64-dsp/precequ_ph_qbl.c | 23 ++ tests/tcg/mips/mips64-dsp/precequ_ph_qbla.c | 23 ++ tests/tcg/mips/mips64-dsp/precequ_ph_qbr.c | 23 ++ tests/tcg/mips/mips64-dsp/precequ_ph_qbra.c | 23 ++ tests/tcg/mips/mips64-dsp/precequ_qh_obl.c | 22 ++ tests/tcg/mips/mips64-dsp/precequ_qh_obla.c | 22 ++ tests/tcg/mips/mips64-dsp/precequ_qh_obr.c | 24 ++ tests/tcg/mips/mips64-dsp/precequ_qh_obra.c | 24 ++ tests/tcg/mips/mips64-dsp/preceu_ph_qbl.c | 23 ++ tests/tcg/mips/mips64-dsp/preceu_ph_qbla.c | 23 ++ tests/tcg/mips/mips64-dsp/preceu_ph_qbr.c | 23 ++ tests/tcg/mips/mips64-dsp/preceu_ph_qbra.c | 23 ++ tests/tcg/mips/mips64-dsp/preceu_qh_obl.c | 22 ++ tests/tcg/mips/mips64-dsp/preceu_qh_obla.c | 22 ++ tests/tcg/mips/mips64-dsp/preceu_qh_obr.c | 23 ++ tests/tcg/mips/mips64-dsp/preceu_qh_obra.c | 23 ++ tests/tcg/mips/mips64-dsp/precr_ob_qh.c | 25 ++ tests/tcg/mips/mips64-dsp/precr_sra_qh_pw.c | 40 ++++ tests/tcg/mips/mips64-dsp/precr_sra_r_qh_pw.c | 40 ++++ tests/tcg/mips/mips64-dsp/precrq_ob_qh.c | 25 ++ tests/tcg/mips/mips64-dsp/precrq_ph_w.c | 24 ++ tests/tcg/mips/mips64-dsp/precrq_pw_l.c | 25 ++ tests/tcg/mips/mips64-dsp/precrq_qb_ph.c | 24 ++ tests/tcg/mips/mips64-dsp/precrq_qh_pw.c | 25 ++ tests/tcg/mips/mips64-dsp/precrq_rs_ph_w.c | 24 ++ tests/tcg/mips/mips64-dsp/precrq_rs_qh_pw.c | 25 ++ tests/tcg/mips/mips64-dsp/precrqu_s_ob_qh.c | 27 +++ tests/tcg/mips/mips64-dsp/precrqu_s_qb_ph.c | 24 ++ tests/tcg/mips/mips64-dsp/prependd.c | 37 +++ tests/tcg/mips/mips64-dsp/prependw.c | 37 +++ tests/tcg/mips/mips64-dsp/printf.c | 266 +++++++++++++++++++++ tests/tcg/mips/mips64-dsp/raddu_l_ob.c | 22 ++ tests/tcg/mips/mips64-dsp/raddu_w_qb.c | 23 ++ tests/tcg/mips/mips64-dsp/rddsp.c | 53 +++++ tests/tcg/mips/mips64-dsp/repl_ob.c | 21 ++ tests/tcg/mips/mips64-dsp/repl_ph.c | 30 +++ tests/tcg/mips/mips64-dsp/repl_pw.c | 34 +++ tests/tcg/mips/mips64-dsp/repl_qb.c | 19 ++ tests/tcg/mips/mips64-dsp/repl_qh.c | 34 +++ tests/tcg/mips/mips64-dsp/replv_ob.c | 23 ++ tests/tcg/mips/mips64-dsp/replv_ph.c | 22 ++ tests/tcg/mips/mips64-dsp/replv_pw.c | 23 ++ tests/tcg/mips/mips64-dsp/replv_qb.c | 22 ++ tests/tcg/mips/mips64-dsp/shilo.c | 29 +++ tests/tcg/mips/mips64-dsp/shilov.c | 31 +++ tests/tcg/mips/mips64-dsp/shll_ob.c | 26 ++ tests/tcg/mips/mips64-dsp/shll_ph.c | 26 ++ tests/tcg/mips/mips64-dsp/shll_pw.c | 26 ++ tests/tcg/mips/mips64-dsp/shll_qb.c | 26 ++ tests/tcg/mips/mips64-dsp/shll_qh.c | 26 ++ tests/tcg/mips/mips64-dsp/shll_s_ph.c | 26 ++ tests/tcg/mips/mips64-dsp/shll_s_pw.c | 26 ++ tests/tcg/mips/mips64-dsp/shll_s_qh.c | 26 ++ tests/tcg/mips/mips64-dsp/shll_s_w.c | 26 ++ tests/tcg/mips/mips64-dsp/shllv_ob.c | 27 +++ tests/tcg/mips/mips64-dsp/shllv_ph.c | 27 +++ tests/tcg/mips/mips64-dsp/shllv_pw.c | 27 +++ tests/tcg/mips/mips64-dsp/shllv_qb.c | 27 +++ tests/tcg/mips/mips64-dsp/shllv_qh.c | 27 +++ tests/tcg/mips/mips64-dsp/shllv_s_ph.c | 27 +++ tests/tcg/mips/mips64-dsp/shllv_s_pw.c | 27 +++ tests/tcg/mips/mips64-dsp/shllv_s_qh.c | 27 +++ tests/tcg/mips/mips64-dsp/shllv_s_w.c | 27 +++ tests/tcg/mips/mips64-dsp/shra_ob.c | 22 ++ tests/tcg/mips/mips64-dsp/shra_ph.c | 23 ++ tests/tcg/mips/mips64-dsp/shra_pw.c | 22 ++ tests/tcg/mips/mips64-dsp/shra_qh.c | 24 ++ tests/tcg/mips/mips64-dsp/shra_r_ob.c | 22 ++ tests/tcg/mips/mips64-dsp/shra_r_ph.c | 23 ++ tests/tcg/mips/mips64-dsp/shra_r_pw.c | 22 ++ tests/tcg/mips/mips64-dsp/shra_r_qh.c | 23 ++ tests/tcg/mips/mips64-dsp/shra_r_w.c | 23 ++ tests/tcg/mips/mips64-dsp/shrav_ph.c | 24 ++ tests/tcg/mips/mips64-dsp/shrav_pw.c | 23 ++ tests/tcg/mips/mips64-dsp/shrav_qh.c | 24 ++ tests/tcg/mips/mips64-dsp/shrav_r_ph.c | 24 ++ tests/tcg/mips/mips64-dsp/shrav_r_pw.c | 23 ++ tests/tcg/mips/mips64-dsp/shrav_r_qh.c | 24 ++ tests/tcg/mips/mips64-dsp/shrav_r_w.c | 24 ++ tests/tcg/mips/mips64-dsp/shrl_ob.c | 23 ++ tests/tcg/mips/mips64-dsp/shrl_qb.c | 23 ++ tests/tcg/mips/mips64-dsp/shrl_qh.c | 22 ++ tests/tcg/mips/mips64-dsp/shrlv_ob.c | 24 ++ tests/tcg/mips/mips64-dsp/shrlv_qb.c | 24 ++ tests/tcg/mips/mips64-dsp/shrlv_qh.c | 23 ++ tests/tcg/mips/mips64-dsp/subq_ph.c | 27 +++ tests/tcg/mips/mips64-dsp/subq_pw.c | 44 ++++ tests/tcg/mips/mips64-dsp/subq_qh.c | 26 ++ tests/tcg/mips/mips64-dsp/subq_s_ph.c | 27 +++ tests/tcg/mips/mips64-dsp/subq_s_pw.c | 45 ++++ tests/tcg/mips/mips64-dsp/subq_s_qh.c | 44 ++++ tests/tcg/mips/mips64-dsp/subq_s_w.c | 27 +++ tests/tcg/mips/mips64-dsp/subu_ob.c | 26 ++ tests/tcg/mips/mips64-dsp/subu_qb.c | 27 +++ tests/tcg/mips/mips64-dsp/subu_s_ob.c | 26 ++ tests/tcg/mips/mips64-dsp/subu_s_qb.c | 27 +++ tests/tcg/mips/mips64-dsp/wrdsp.c | 48 ++++ tests/tcg/mips/mips64-dspr2/.directory | 2 + tests/tcg/mips/mips64-dspr2/Makefile | 117 +++++++++ tests/tcg/mips/mips64-dspr2/absq_s_qb.c | 42 ++++ tests/tcg/mips/mips64-dspr2/addqh_ph.c | 35 +++ tests/tcg/mips/mips64-dspr2/addqh_r_ph.c | 35 +++ tests/tcg/mips/mips64-dspr2/addqh_r_w.c | 38 +++ tests/tcg/mips/mips64-dspr2/addqh_w.c | 39 +++ tests/tcg/mips/mips64-dspr2/addu_ph.c | 35 +++ tests/tcg/mips/mips64-dspr2/addu_qh.c | 41 ++++ tests/tcg/mips/mips64-dspr2/addu_s_ph.c | 35 +++ tests/tcg/mips/mips64-dspr2/addu_s_qh.c | 41 ++++ tests/tcg/mips/mips64-dspr2/adduh_ob.c | 21 ++ tests/tcg/mips/mips64-dspr2/adduh_qb.c | 35 +++ tests/tcg/mips/mips64-dspr2/adduh_r_ob.c | 21 ++ tests/tcg/mips/mips64-dspr2/adduh_r_qb.c | 35 +++ tests/tcg/mips/mips64-dspr2/append.c | 35 +++ tests/tcg/mips/mips64-dspr2/balign.c | 35 +++ tests/tcg/mips/mips64-dspr2/cmpgdu_eq_ob.c | 26 ++ tests/tcg/mips/mips64-dspr2/cmpgdu_eq_qb.c | 41 ++++ tests/tcg/mips/mips64-dspr2/cmpgdu_le_ob.c | 26 ++ tests/tcg/mips/mips64-dspr2/cmpgdu_le_qb.c | 48 ++++ tests/tcg/mips/mips64-dspr2/cmpgdu_lt_ob.c | 26 ++ tests/tcg/mips/mips64-dspr2/cmpgdu_lt_qb.c | 48 ++++ tests/tcg/mips/mips64-dspr2/dbalign.c | 23 ++ tests/tcg/mips/mips64-dspr2/dpa_w_ph.c | 32 +++ tests/tcg/mips/mips64-dspr2/dpa_w_qh.c | 56 +++++ tests/tcg/mips/mips64-dspr2/dpaqx_s_w_ph.c | 74 ++++++ tests/tcg/mips/mips64-dspr2/dpaqx_sa_w_ph.c | 42 ++++ tests/tcg/mips/mips64-dspr2/dpax_w_ph.c | 32 +++ tests/tcg/mips/mips64-dspr2/dps_w_ph.c | 28 +++ tests/tcg/mips/mips64-dspr2/dps_w_qh.c | 55 +++++ tests/tcg/mips/mips64-dspr2/dpsqx_s_w_ph.c | 31 +++ tests/tcg/mips/mips64-dspr2/dpsqx_sa_w_ph.c | 30 +++ tests/tcg/mips/mips64-dspr2/dpsx_w_ph.c | 28 +++ tests/tcg/mips/mips64-dspr2/head.S | 16 ++ tests/tcg/mips/mips64-dspr2/io.h | 22 ++ tests/tcg/mips/mips64-dspr2/mips_boot.lds | 31 +++ tests/tcg/mips/mips64-dspr2/mul_ph.c | 26 ++ tests/tcg/mips/mips64-dspr2/mul_s_ph.c | 26 ++ tests/tcg/mips/mips64-dspr2/muleq_s_w_phl.c | 42 ++++ tests/tcg/mips/mips64-dspr2/mulq_rs_w.c | 40 ++++ tests/tcg/mips/mips64-dspr2/mulq_s_ph.c | 26 ++ tests/tcg/mips/mips64-dspr2/mulq_s_w.c | 40 ++++ tests/tcg/mips/mips64-dspr2/mulsa_w_ph.c | 30 +++ tests/tcg/mips/mips64-dspr2/mulsaq_s_w_ph.c | 30 +++ tests/tcg/mips/mips64-dspr2/precr_qb_ph.c | 23 ++ tests/tcg/mips/mips64-dspr2/precr_sra_ph_w.c | 37 +++ tests/tcg/mips/mips64-dspr2/precr_sra_r_ph_w.c | 37 +++ tests/tcg/mips/mips64-dspr2/prepend.c | 35 +++ tests/tcg/mips/mips64-dspr2/printf.c | 266 +++++++++++++++++++++ tests/tcg/mips/mips64-dspr2/shra_qb.c | 35 +++ tests/tcg/mips/mips64-dspr2/shra_r_qb.c | 35 +++ tests/tcg/mips/mips64-dspr2/shrav_ob.c | 22 ++ tests/tcg/mips/mips64-dspr2/shrav_qb.c | 37 +++ tests/tcg/mips/mips64-dspr2/shrav_r_ob.c | 22 ++ tests/tcg/mips/mips64-dspr2/shrav_r_qb.c | 37 +++ tests/tcg/mips/mips64-dspr2/shrl_ph.c | 22 ++ tests/tcg/mips/mips64-dspr2/shrlv_ph.c | 23 ++ tests/tcg/mips/mips64-dspr2/subqh_ph.c | 23 ++ tests/tcg/mips/mips64-dspr2/subqh_r_ph.c | 23 ++ tests/tcg/mips/mips64-dspr2/subqh_r_w.c | 23 ++ tests/tcg/mips/mips64-dspr2/subqh_w.c | 23 ++ tests/tcg/mips/mips64-dspr2/subu_ph.c | 26 ++ tests/tcg/mips/mips64-dspr2/subu_qh.c | 24 ++ tests/tcg/mips/mips64-dspr2/subu_s_ph.c | 25 ++ tests/tcg/mips/mips64-dspr2/subu_s_qh.c | 24 ++ tests/tcg/mips/mips64-dspr2/subuh_ob.c | 23 ++ tests/tcg/mips/mips64-dspr2/subuh_qb.c | 23 ++ tests/tcg/mips/mips64-dspr2/subuh_r_ob.c | 23 ++ tests/tcg/mips/mips64-dspr2/subuh_r_qb.c | 23 ++ 485 files changed, 15781 insertions(+) create mode 100644 tests/tcg/mips/mips32-dsp/Makefile create mode 100644 tests/tcg/mips/mips32-dsp/absq_s_ph.c create mode 100644 tests/tcg/mips/mips32-dsp/absq_s_w.c create mode 100644 tests/tcg/mips/mips32-dsp/addq_ph.c create mode 100644 tests/tcg/mips/mips32-dsp/addq_s_ph.c create mode 100644 tests/tcg/mips/mips32-dsp/addsc.c create mode 100644 tests/tcg/mips/mips32-dsp/addu_qb.c create mode 100644 tests/tcg/mips/mips32-dsp/addu_s_qb.c create mode 100644 tests/tcg/mips/mips32-dsp/addwc.c create mode 100644 tests/tcg/mips/mips32-dsp/bitrev.c create mode 100644 tests/tcg/mips/mips32-dsp/bposge32.c create mode 100644 tests/tcg/mips/mips32-dsp/cmp_eq_ph.c create mode 100644 tests/tcg/mips/mips32-dsp/cmp_le_ph.c create mode 100644 tests/tcg/mips/mips32-dsp/cmp_lt_ph.c create mode 100644 tests/tcg/mips/mips32-dsp/cmpgu_eq_qb.c create mode 100644 tests/tcg/mips/mips32-dsp/cmpgu_le_qb.c create mode 100644 tests/tcg/mips/mips32-dsp/cmpgu_lt_qb.c create mode 100644 tests/tcg/mips/mips32-dsp/cmpu_eq_qb.c create mode 100644 tests/tcg/mips/mips32-dsp/cmpu_le_qb.c create mode 100644 tests/tcg/mips/mips32-dsp/cmpu_lt_qb.c create mode 100644 tests/tcg/mips/mips32-dsp/dpaq_s_w_ph.c create mode 100644 tests/tcg/mips/mips32-dsp/dpaq_sa_l_w.c create mode 100644 tests/tcg/mips/mips32-dsp/dpau_h_qbl.c create mode 100644 tests/tcg/mips/mips32-dsp/dpau_h_qbr.c create mode 100644 tests/tcg/mips/mips32-dsp/dpsq_s_w_ph.c create mode 100644 tests/tcg/mips/mips32-dsp/dpsq_sa_l_w.c create mode 100644 tests/tcg/mips/mips32-dsp/dpsu_h_qbl.c create mode 100644 tests/tcg/mips/mips32-dsp/dpsu_h_qbr.c create mode 100644 tests/tcg/mips/mips32-dsp/extp.c create mode 100644 tests/tcg/mips/mips32-dsp/extpdp.c create mode 100644 tests/tcg/mips/mips32-dsp/extpdpv.c create mode 100644 tests/tcg/mips/mips32-dsp/extpv.c create mode 100644 tests/tcg/mips/mips32-dsp/extr_r_w.c create mode 100644 tests/tcg/mips/mips32-dsp/extr_rs_w.c create mode 100644 tests/tcg/mips/mips32-dsp/extr_s_h.c create mode 100644 tests/tcg/mips/mips32-dsp/extr_w.c create mode 100644 tests/tcg/mips/mips32-dsp/extrv_r_w.c create mode 100644 tests/tcg/mips/mips32-dsp/extrv_rs_w.c create mode 100644 tests/tcg/mips/mips32-dsp/extrv_s_h.c create mode 100644 tests/tcg/mips/mips32-dsp/extrv_w.c create mode 100644 tests/tcg/mips/mips32-dsp/insv.c create mode 100644 tests/tcg/mips/mips32-dsp/lbux.c create mode 100644 tests/tcg/mips/mips32-dsp/lhx.c create mode 100644 tests/tcg/mips/mips32-dsp/lwx.c create mode 100644 tests/tcg/mips/mips32-dsp/madd.c create mode 100644 tests/tcg/mips/mips32-dsp/maddu.c create mode 100644 tests/tcg/mips/mips32-dsp/main.c create mode 100644 tests/tcg/mips/mips32-dsp/maq_s_w_phl.c create mode 100644 tests/tcg/mips/mips32-dsp/maq_s_w_phr.c create mode 100644 tests/tcg/mips/mips32-dsp/maq_sa_w_phl.c create mode 100644 tests/tcg/mips/mips32-dsp/maq_sa_w_phr.c create mode 100644 tests/tcg/mips/mips32-dsp/mfhi.c create mode 100644 tests/tcg/mips/mips32-dsp/mflo.c create mode 100644 tests/tcg/mips/mips32-dsp/modsub.c create mode 100644 tests/tcg/mips/mips32-dsp/msub.c create mode 100644 tests/tcg/mips/mips32-dsp/msubu.c create mode 100644 tests/tcg/mips/mips32-dsp/mthi.c create mode 100644 tests/tcg/mips/mips32-dsp/mthlip.c create mode 100644 tests/tcg/mips/mips32-dsp/mtlo.c create mode 100644 tests/tcg/mips/mips32-dsp/muleq_s_w_phr.c create mode 100644 tests/tcg/mips/mips32-dsp/muleu_s_ph_qbl.c create mode 100644 tests/tcg/mips/mips32-dsp/muleu_s_ph_qbr.c create mode 100644 tests/tcg/mips/mips32-dsp/mulq_rs_ph.c create mode 100644 tests/tcg/mips/mips32-dsp/mult.c create mode 100644 tests/tcg/mips/mips32-dsp/multu.c create mode 100644 tests/tcg/mips/mips32-dsp/packrl_ph.c create mode 100644 tests/tcg/mips/mips32-dsp/pick_ph.c create mode 100644 tests/tcg/mips/mips32-dsp/pick_qb.c create mode 100644 tests/tcg/mips/mips32-dsp/preceq_w_phl.c create mode 100644 tests/tcg/mips/mips32-dsp/preceq_w_phr.c create mode 100644 tests/tcg/mips/mips32-dsp/precequ_ph_qbl.c create mode 100644 tests/tcg/mips/mips32-dsp/precequ_ph_qbla.c create mode 100644 tests/tcg/mips/mips32-dsp/precequ_ph_qbr.c create mode 100644 tests/tcg/mips/mips32-dsp/precequ_ph_qbra.c create mode 100644 tests/tcg/mips/mips32-dsp/preceu_ph_qbl.c create mode 100644 tests/tcg/mips/mips32-dsp/preceu_ph_qbla.c create mode 100644 tests/tcg/mips/mips32-dsp/preceu_ph_qbr.c create mode 100644 tests/tcg/mips/mips32-dsp/preceu_ph_qbra.c create mode 100644 tests/tcg/mips/mips32-dsp/precrq_ph_w.c create mode 100644 tests/tcg/mips/mips32-dsp/precrq_qb_ph.c create mode 100644 tests/tcg/mips/mips32-dsp/precrq_rs_ph_w.c create mode 100644 tests/tcg/mips/mips32-dsp/precrqu_s_qb_ph.c create mode 100644 tests/tcg/mips/mips32-dsp/raddu_w_qb.c create mode 100644 tests/tcg/mips/mips32-dsp/rddsp.c create mode 100644 tests/tcg/mips/mips32-dsp/repl_ph.c create mode 100644 tests/tcg/mips/mips32-dsp/repl_qb.c create mode 100644 tests/tcg/mips/mips32-dsp/replv_ph.c create mode 100644 tests/tcg/mips/mips32-dsp/replv_qb.c create mode 100644 tests/tcg/mips/mips32-dsp/shilo.c create mode 100644 tests/tcg/mips/mips32-dsp/shilov.c create mode 100644 tests/tcg/mips/mips32-dsp/shll_ph.c create mode 100644 tests/tcg/mips/mips32-dsp/shll_qb.c create mode 100644 tests/tcg/mips/mips32-dsp/shll_s_ph.c create mode 100644 tests/tcg/mips/mips32-dsp/shll_s_w.c create mode 100644 tests/tcg/mips/mips32-dsp/shllv_ph.c create mode 100644 tests/tcg/mips/mips32-dsp/shllv_qb.c create mode 100644 tests/tcg/mips/mips32-dsp/shllv_s_ph.c create mode 100644 tests/tcg/mips/mips32-dsp/shllv_s_w.c create mode 100644 tests/tcg/mips/mips32-dsp/shra_ph.c create mode 100644 tests/tcg/mips/mips32-dsp/shra_r_ph.c create mode 100644 tests/tcg/mips/mips32-dsp/shra_r_w.c create mode 100644 tests/tcg/mips/mips32-dsp/shrav_ph.c create mode 100644 tests/tcg/mips/mips32-dsp/shrav_r_ph.c create mode 100644 tests/tcg/mips/mips32-dsp/shrav_r_w.c create mode 100644 tests/tcg/mips/mips32-dsp/shrl_qb.c create mode 100644 tests/tcg/mips/mips32-dsp/shrlv_qb.c create mode 100644 tests/tcg/mips/mips32-dsp/subq_ph.c create mode 100644 tests/tcg/mips/mips32-dsp/subq_s_ph.c create mode 100644 tests/tcg/mips/mips32-dsp/subq_s_w.c create mode 100644 tests/tcg/mips/mips32-dsp/subu_qb.c create mode 100644 tests/tcg/mips/mips32-dsp/subu_s_qb.c create mode 100644 tests/tcg/mips/mips32-dsp/wrdsp.c create mode 100644 tests/tcg/mips/mips32-dspr2/Makefile create mode 100644 tests/tcg/mips/mips32-dspr2/absq_s_qb.c create mode 100644 tests/tcg/mips/mips32-dspr2/addqh_ph.c create mode 100644 tests/tcg/mips/mips32-dspr2/addqh_r_ph.c create mode 100644 tests/tcg/mips/mips32-dspr2/addqh_r_w.c create mode 100644 tests/tcg/mips/mips32-dspr2/addqh_w.c create mode 100644 tests/tcg/mips/mips32-dspr2/addu_ph.c create mode 100644 tests/tcg/mips/mips32-dspr2/addu_s_ph.c create mode 100644 tests/tcg/mips/mips32-dspr2/adduh_qb.c create mode 100644 tests/tcg/mips/mips32-dspr2/adduh_r_qb.c create mode 100644 tests/tcg/mips/mips32-dspr2/append.c create mode 100644 tests/tcg/mips/mips32-dspr2/balign.c create mode 100644 tests/tcg/mips/mips32-dspr2/cmpgdu_eq_qb.c create mode 100644 tests/tcg/mips/mips32-dspr2/cmpgdu_le_qb.c create mode 100644 tests/tcg/mips/mips32-dspr2/cmpgdu_lt_qb.c create mode 100644 tests/tcg/mips/mips32-dspr2/dpa_w_ph.c create mode 100644 tests/tcg/mips/mips32-dspr2/dpaqx_s_w_ph.c create mode 100644 tests/tcg/mips/mips32-dspr2/dpaqx_sa_w_ph.c create mode 100644 tests/tcg/mips/mips32-dspr2/dpax_w_ph.c create mode 100644 tests/tcg/mips/mips32-dspr2/dps_w_ph.c create mode 100644 tests/tcg/mips/mips32-dspr2/dpsqx_s_w_ph.c create mode 100644 tests/tcg/mips/mips32-dspr2/dpsqx_sa_w_ph.c create mode 100644 tests/tcg/mips/mips32-dspr2/dpsx_w_ph.c create mode 100644 tests/tcg/mips/mips32-dspr2/mul_ph.c create mode 100644 tests/tcg/mips/mips32-dspr2/mul_s_ph.c create mode 100644 tests/tcg/mips/mips32-dspr2/muleq_s_w_phl.c create mode 100644 tests/tcg/mips/mips32-dspr2/mulq_rs_w.c create mode 100644 tests/tcg/mips/mips32-dspr2/mulq_s_ph.c create mode 100644 tests/tcg/mips/mips32-dspr2/mulq_s_w.c create mode 100644 tests/tcg/mips/mips32-dspr2/mulsa_w_ph.c create mode 100644 tests/tcg/mips/mips32-dspr2/mulsaq_s_w_ph.c create mode 100644 tests/tcg/mips/mips32-dspr2/precr_qb_ph.c create mode 100644 tests/tcg/mips/mips32-dspr2/precr_sra_ph_w.c create mode 100644 tests/tcg/mips/mips32-dspr2/precr_sra_r_ph_w.c create mode 100644 tests/tcg/mips/mips32-dspr2/prepend.c create mode 100644 tests/tcg/mips/mips32-dspr2/shra_qb.c create mode 100644 tests/tcg/mips/mips32-dspr2/shra_r_qb.c create mode 100644 tests/tcg/mips/mips32-dspr2/shrav_qb.c create mode 100644 tests/tcg/mips/mips32-dspr2/shrav_r_qb.c create mode 100644 tests/tcg/mips/mips32-dspr2/shrl_ph.c create mode 100644 tests/tcg/mips/mips32-dspr2/shrlv_ph.c create mode 100644 tests/tcg/mips/mips32-dspr2/subqh_ph.c create mode 100644 tests/tcg/mips/mips32-dspr2/subqh_r_ph.c create mode 100644 tests/tcg/mips/mips32-dspr2/subqh_r_w.c create mode 100644 tests/tcg/mips/mips32-dspr2/subqh_w.c create mode 100644 tests/tcg/mips/mips32-dspr2/subu_ph.c create mode 100644 tests/tcg/mips/mips32-dspr2/subu_s_ph.c create mode 100644 tests/tcg/mips/mips32-dspr2/subuh_qb.c create mode 100644 tests/tcg/mips/mips32-dspr2/subuh_r_qb.c create mode 100644 tests/tcg/mips/mips64-dsp/Makefile create mode 100644 tests/tcg/mips/mips64-dsp/absq_s_ob.c create mode 100644 tests/tcg/mips/mips64-dsp/absq_s_ph.c create mode 100644 tests/tcg/mips/mips64-dsp/absq_s_pw.c create mode 100644 tests/tcg/mips/mips64-dsp/absq_s_qh.c create mode 100644 tests/tcg/mips/mips64-dsp/absq_s_w.c create mode 100644 tests/tcg/mips/mips64-dsp/addq_ph.c create mode 100644 tests/tcg/mips/mips64-dsp/addq_pw.c create mode 100644 tests/tcg/mips/mips64-dsp/addq_qh.c create mode 100644 tests/tcg/mips/mips64-dsp/addq_s_ph.c create mode 100644 tests/tcg/mips/mips64-dsp/addq_s_pw.c create mode 100644 tests/tcg/mips/mips64-dsp/addq_s_qh.c create mode 100644 tests/tcg/mips/mips64-dsp/addsc.c create mode 100644 tests/tcg/mips/mips64-dsp/addu_ob.c create mode 100644 tests/tcg/mips/mips64-dsp/addu_qb.c create mode 100644 tests/tcg/mips/mips64-dsp/addu_s_ob.c create mode 100644 tests/tcg/mips/mips64-dsp/addu_s_qb.c create mode 100644 tests/tcg/mips/mips64-dsp/addwc.c create mode 100644 tests/tcg/mips/mips64-dsp/bitrev.c create mode 100644 tests/tcg/mips/mips64-dsp/bposge32.c create mode 100644 tests/tcg/mips/mips64-dsp/bposge64.c create mode 100644 tests/tcg/mips/mips64-dsp/cmp_eq_ph.c create mode 100644 tests/tcg/mips/mips64-dsp/cmp_eq_pw.c create mode 100644 tests/tcg/mips/mips64-dsp/cmp_eq_qh.c create mode 100644 tests/tcg/mips/mips64-dsp/cmp_le_ph.c create mode 100644 tests/tcg/mips/mips64-dsp/cmp_le_pw.c create mode 100644 tests/tcg/mips/mips64-dsp/cmp_le_qh.c create mode 100644 tests/tcg/mips/mips64-dsp/cmp_lt_ph.c create mode 100644 tests/tcg/mips/mips64-dsp/cmp_lt_pw.c create mode 100644 tests/tcg/mips/mips64-dsp/cmp_lt_qh.c create mode 100644 tests/tcg/mips/mips64-dsp/cmpgu_eq_ob.c create mode 100644 tests/tcg/mips/mips64-dsp/cmpgu_eq_qb.c create mode 100644 tests/tcg/mips/mips64-dsp/cmpgu_le_ob.c create mode 100644 tests/tcg/mips/mips64-dsp/cmpgu_le_qb.c create mode 100644 tests/tcg/mips/mips64-dsp/cmpgu_lt_ob.c create mode 100644 tests/tcg/mips/mips64-dsp/cmpgu_lt_qb.c create mode 100644 tests/tcg/mips/mips64-dsp/cmpu_eq_ob.c create mode 100644 tests/tcg/mips/mips64-dsp/cmpu_eq_qb.c create mode 100644 tests/tcg/mips/mips64-dsp/cmpu_le_ob.c create mode 100644 tests/tcg/mips/mips64-dsp/cmpu_le_qb.c create mode 100644 tests/tcg/mips/mips64-dsp/cmpu_lt_ob.c create mode 100644 tests/tcg/mips/mips64-dsp/cmpu_lt_qb.c create mode 100644 tests/tcg/mips/mips64-dsp/dappend.c create mode 100644 tests/tcg/mips/mips64-dsp/dextp.c create mode 100644 tests/tcg/mips/mips64-dsp/dextpdp.c create mode 100644 tests/tcg/mips/mips64-dsp/dextpdpv.c create mode 100644 tests/tcg/mips/mips64-dsp/dextpv.c create mode 100644 tests/tcg/mips/mips64-dsp/dextr_l.c create mode 100644 tests/tcg/mips/mips64-dsp/dextr_r_l.c create mode 100644 tests/tcg/mips/mips64-dsp/dextr_r_w.c create mode 100644 tests/tcg/mips/mips64-dsp/dextr_rs_l.c create mode 100644 tests/tcg/mips/mips64-dsp/dextr_rs_w.c create mode 100644 tests/tcg/mips/mips64-dsp/dextr_s_h.c create mode 100644 tests/tcg/mips/mips64-dsp/dextr_w.c create mode 100644 tests/tcg/mips/mips64-dsp/dextrv_l.c create mode 100644 tests/tcg/mips/mips64-dsp/dextrv_r_l.c create mode 100644 tests/tcg/mips/mips64-dsp/dextrv_r_w.c create mode 100644 tests/tcg/mips/mips64-dsp/dextrv_rs_l.c create mode 100644 tests/tcg/mips/mips64-dsp/dextrv_rs_w.c create mode 100644 tests/tcg/mips/mips64-dsp/dextrv_s_h.c create mode 100644 tests/tcg/mips/mips64-dsp/dextrv_w.c create mode 100644 tests/tcg/mips/mips64-dsp/dinsv.c create mode 100644 tests/tcg/mips/mips64-dsp/dmadd.c create mode 100644 tests/tcg/mips/mips64-dsp/dmaddu.c create mode 100644 tests/tcg/mips/mips64-dsp/dmsub.c create mode 100644 tests/tcg/mips/mips64-dsp/dmsubu.c create mode 100644 tests/tcg/mips/mips64-dsp/dmthlip.c create mode 100644 tests/tcg/mips/mips64-dsp/dpaq_s_w_ph.c create mode 100644 tests/tcg/mips/mips64-dsp/dpaq_s_w_qh.c create mode 100644 tests/tcg/mips/mips64-dsp/dpaq_sa_l_pw.c create mode 100644 tests/tcg/mips/mips64-dsp/dpaq_sa_l_w.c create mode 100644 tests/tcg/mips/mips64-dsp/dpau_h_obl.c create mode 100644 tests/tcg/mips/mips64-dsp/dpau_h_obr.c create mode 100644 tests/tcg/mips/mips64-dsp/dpau_h_qbl.c create mode 100644 tests/tcg/mips/mips64-dsp/dpau_h_qbr.c create mode 100644 tests/tcg/mips/mips64-dsp/dpsq_s_w_ph.c create mode 100644 tests/tcg/mips/mips64-dsp/dpsq_s_w_qh.c create mode 100644 tests/tcg/mips/mips64-dsp/dpsq_sa_l_pw.c create mode 100644 tests/tcg/mips/mips64-dsp/dpsq_sa_l_w.c create mode 100644 tests/tcg/mips/mips64-dsp/dpsu_h_obl.c create mode 100644 tests/tcg/mips/mips64-dsp/dpsu_h_obr.c create mode 100644 tests/tcg/mips/mips64-dsp/dpsu_h_qbl.c create mode 100644 tests/tcg/mips/mips64-dsp/dpsu_h_qbr.c create mode 100644 tests/tcg/mips/mips64-dsp/dshilo.c create mode 100644 tests/tcg/mips/mips64-dsp/dshilov.c create mode 100644 tests/tcg/mips/mips64-dsp/extp.c create mode 100644 tests/tcg/mips/mips64-dsp/extpdp.c create mode 100644 tests/tcg/mips/mips64-dsp/extpdpv.c create mode 100644 tests/tcg/mips/mips64-dsp/extpv.c create mode 100644 tests/tcg/mips/mips64-dsp/extr_r_w.c create mode 100644 tests/tcg/mips/mips64-dsp/extr_rs_w.c create mode 100644 tests/tcg/mips/mips64-dsp/extr_s_h.c create mode 100644 tests/tcg/mips/mips64-dsp/extr_w.c create mode 100644 tests/tcg/mips/mips64-dsp/extrv_r_w.c create mode 100644 tests/tcg/mips/mips64-dsp/extrv_rs_w.c create mode 100644 tests/tcg/mips/mips64-dsp/extrv_s_h.c create mode 100644 tests/tcg/mips/mips64-dsp/extrv_w.c create mode 100644 tests/tcg/mips/mips64-dsp/head.S create mode 100644 tests/tcg/mips/mips64-dsp/insv.c create mode 100644 tests/tcg/mips/mips64-dsp/io.h create mode 100644 tests/tcg/mips/mips64-dsp/lbux.c create mode 100644 tests/tcg/mips/mips64-dsp/ldx.c create mode 100644 tests/tcg/mips/mips64-dsp/lhx.c create mode 100644 tests/tcg/mips/mips64-dsp/lwx.c create mode 100644 tests/tcg/mips/mips64-dsp/madd.c create mode 100644 tests/tcg/mips/mips64-dsp/maddu.c create mode 100644 tests/tcg/mips/mips64-dsp/maq_s_l_pwl.c create mode 100644 tests/tcg/mips/mips64-dsp/maq_s_l_pwr.c create mode 100644 tests/tcg/mips/mips64-dsp/maq_s_w_phl.c create mode 100644 tests/tcg/mips/mips64-dsp/maq_s_w_phr.c create mode 100644 tests/tcg/mips/mips64-dsp/maq_s_w_qhll.c create mode 100644 tests/tcg/mips/mips64-dsp/maq_s_w_qhlr.c create mode 100644 tests/tcg/mips/mips64-dsp/maq_s_w_qhrl.c create mode 100644 tests/tcg/mips/mips64-dsp/maq_s_w_qhrr.c create mode 100644 tests/tcg/mips/mips64-dsp/maq_sa_w_phl.c create mode 100644 tests/tcg/mips/mips64-dsp/maq_sa_w_phr.c create mode 100644 tests/tcg/mips/mips64-dsp/maq_sa_w_qhll.c create mode 100644 tests/tcg/mips/mips64-dsp/maq_sa_w_qhlr.c create mode 100644 tests/tcg/mips/mips64-dsp/maq_sa_w_qhrl.c create mode 100644 tests/tcg/mips/mips64-dsp/maq_sa_w_qhrr.c create mode 100644 tests/tcg/mips/mips64-dsp/mfhi.c create mode 100644 tests/tcg/mips/mips64-dsp/mflo.c create mode 100644 tests/tcg/mips/mips64-dsp/mips_boot.lds create mode 100644 tests/tcg/mips/mips64-dsp/modsub.c create mode 100644 tests/tcg/mips/mips64-dsp/msub.c create mode 100644 tests/tcg/mips/mips64-dsp/msubu.c create mode 100644 tests/tcg/mips/mips64-dsp/mthi.c create mode 100644 tests/tcg/mips/mips64-dsp/mthlip.c create mode 100644 tests/tcg/mips/mips64-dsp/mtlo.c create mode 100644 tests/tcg/mips/mips64-dsp/muleq_s_pw_qhl.c create mode 100644 tests/tcg/mips/mips64-dsp/muleq_s_pw_qhr.c create mode 100644 tests/tcg/mips/mips64-dsp/muleq_s_w_phr.c create mode 100644 tests/tcg/mips/mips64-dsp/muleu_s_ph_qbl.c create mode 100644 tests/tcg/mips/mips64-dsp/muleu_s_ph_qbr.c create mode 100644 tests/tcg/mips/mips64-dsp/muleu_s_qh_obl.c create mode 100644 tests/tcg/mips/mips64-dsp/muleu_s_qh_obr.c create mode 100644 tests/tcg/mips/mips64-dsp/mulq_rs_ph.c create mode 100644 tests/tcg/mips/mips64-dsp/mulq_rs_qh.c create mode 100644 tests/tcg/mips/mips64-dsp/mulsaq_s_l_pw.c create mode 100644 tests/tcg/mips/mips64-dsp/mulsaq_s_w_qh.c create mode 100644 tests/tcg/mips/mips64-dsp/mult.c create mode 100644 tests/tcg/mips/mips64-dsp/multu.c create mode 100644 tests/tcg/mips/mips64-dsp/packrl_ph.c create mode 100644 tests/tcg/mips/mips64-dsp/packrl_pw.c create mode 100644 tests/tcg/mips/mips64-dsp/pick_ob.c create mode 100644 tests/tcg/mips/mips64-dsp/pick_ph.c create mode 100644 tests/tcg/mips/mips64-dsp/pick_pw.c create mode 100644 tests/tcg/mips/mips64-dsp/pick_qb.c create mode 100644 tests/tcg/mips/mips64-dsp/pick_qh.c create mode 100644 tests/tcg/mips/mips64-dsp/preceq_l_pwl.c create mode 100644 tests/tcg/mips/mips64-dsp/preceq_l_pwr.c create mode 100644 tests/tcg/mips/mips64-dsp/preceq_pw_qhl.c create mode 100644 tests/tcg/mips/mips64-dsp/preceq_pw_qhla.c create mode 100644 tests/tcg/mips/mips64-dsp/preceq_pw_qhr.c create mode 100644 tests/tcg/mips/mips64-dsp/preceq_pw_qhra.c create mode 100644 tests/tcg/mips/mips64-dsp/preceq_w_phl.c create mode 100644 tests/tcg/mips/mips64-dsp/preceq_w_phr.c create mode 100644 tests/tcg/mips/mips64-dsp/precequ_ph_qbl.c create mode 100644 tests/tcg/mips/mips64-dsp/precequ_ph_qbla.c create mode 100644 tests/tcg/mips/mips64-dsp/precequ_ph_qbr.c create mode 100644 tests/tcg/mips/mips64-dsp/precequ_ph_qbra.c create mode 100644 tests/tcg/mips/mips64-dsp/precequ_qh_obl.c create mode 100644 tests/tcg/mips/mips64-dsp/precequ_qh_obla.c create mode 100644 tests/tcg/mips/mips64-dsp/precequ_qh_obr.c create mode 100644 tests/tcg/mips/mips64-dsp/precequ_qh_obra.c create mode 100644 tests/tcg/mips/mips64-dsp/preceu_ph_qbl.c create mode 100644 tests/tcg/mips/mips64-dsp/preceu_ph_qbla.c create mode 100644 tests/tcg/mips/mips64-dsp/preceu_ph_qbr.c create mode 100644 tests/tcg/mips/mips64-dsp/preceu_ph_qbra.c create mode 100644 tests/tcg/mips/mips64-dsp/preceu_qh_obl.c create mode 100644 tests/tcg/mips/mips64-dsp/preceu_qh_obla.c create mode 100644 tests/tcg/mips/mips64-dsp/preceu_qh_obr.c create mode 100644 tests/tcg/mips/mips64-dsp/preceu_qh_obra.c create mode 100644 tests/tcg/mips/mips64-dsp/precr_ob_qh.c create mode 100644 tests/tcg/mips/mips64-dsp/precr_sra_qh_pw.c create mode 100644 tests/tcg/mips/mips64-dsp/precr_sra_r_qh_pw.c create mode 100644 tests/tcg/mips/mips64-dsp/precrq_ob_qh.c create mode 100644 tests/tcg/mips/mips64-dsp/precrq_ph_w.c create mode 100644 tests/tcg/mips/mips64-dsp/precrq_pw_l.c create mode 100644 tests/tcg/mips/mips64-dsp/precrq_qb_ph.c create mode 100644 tests/tcg/mips/mips64-dsp/precrq_qh_pw.c create mode 100644 tests/tcg/mips/mips64-dsp/precrq_rs_ph_w.c create mode 100644 tests/tcg/mips/mips64-dsp/precrq_rs_qh_pw.c create mode 100644 tests/tcg/mips/mips64-dsp/precrqu_s_ob_qh.c create mode 100644 tests/tcg/mips/mips64-dsp/precrqu_s_qb_ph.c create mode 100644 tests/tcg/mips/mips64-dsp/prependd.c create mode 100644 tests/tcg/mips/mips64-dsp/prependw.c create mode 100644 tests/tcg/mips/mips64-dsp/printf.c create mode 100644 tests/tcg/mips/mips64-dsp/raddu_l_ob.c create mode 100644 tests/tcg/mips/mips64-dsp/raddu_w_qb.c create mode 100644 tests/tcg/mips/mips64-dsp/rddsp.c create mode 100644 tests/tcg/mips/mips64-dsp/repl_ob.c create mode 100644 tests/tcg/mips/mips64-dsp/repl_ph.c create mode 100644 tests/tcg/mips/mips64-dsp/repl_pw.c create mode 100644 tests/tcg/mips/mips64-dsp/repl_qb.c create mode 100644 tests/tcg/mips/mips64-dsp/repl_qh.c create mode 100644 tests/tcg/mips/mips64-dsp/replv_ob.c create mode 100644 tests/tcg/mips/mips64-dsp/replv_ph.c create mode 100644 tests/tcg/mips/mips64-dsp/replv_pw.c create mode 100644 tests/tcg/mips/mips64-dsp/replv_qb.c create mode 100644 tests/tcg/mips/mips64-dsp/shilo.c create mode 100644 tests/tcg/mips/mips64-dsp/shilov.c create mode 100644 tests/tcg/mips/mips64-dsp/shll_ob.c create mode 100644 tests/tcg/mips/mips64-dsp/shll_ph.c create mode 100644 tests/tcg/mips/mips64-dsp/shll_pw.c create mode 100644 tests/tcg/mips/mips64-dsp/shll_qb.c create mode 100644 tests/tcg/mips/mips64-dsp/shll_qh.c create mode 100644 tests/tcg/mips/mips64-dsp/shll_s_ph.c create mode 100644 tests/tcg/mips/mips64-dsp/shll_s_pw.c create mode 100644 tests/tcg/mips/mips64-dsp/shll_s_qh.c create mode 100644 tests/tcg/mips/mips64-dsp/shll_s_w.c create mode 100644 tests/tcg/mips/mips64-dsp/shllv_ob.c create mode 100644 tests/tcg/mips/mips64-dsp/shllv_ph.c create mode 100644 tests/tcg/mips/mips64-dsp/shllv_pw.c create mode 100644 tests/tcg/mips/mips64-dsp/shllv_qb.c create mode 100644 tests/tcg/mips/mips64-dsp/shllv_qh.c create mode 100644 tests/tcg/mips/mips64-dsp/shllv_s_ph.c create mode 100644 tests/tcg/mips/mips64-dsp/shllv_s_pw.c create mode 100644 tests/tcg/mips/mips64-dsp/shllv_s_qh.c create mode 100644 tests/tcg/mips/mips64-dsp/shllv_s_w.c create mode 100644 tests/tcg/mips/mips64-dsp/shra_ob.c create mode 100644 tests/tcg/mips/mips64-dsp/shra_ph.c create mode 100644 tests/tcg/mips/mips64-dsp/shra_pw.c create mode 100644 tests/tcg/mips/mips64-dsp/shra_qh.c create mode 100644 tests/tcg/mips/mips64-dsp/shra_r_ob.c create mode 100644 tests/tcg/mips/mips64-dsp/shra_r_ph.c create mode 100644 tests/tcg/mips/mips64-dsp/shra_r_pw.c create mode 100644 tests/tcg/mips/mips64-dsp/shra_r_qh.c create mode 100644 tests/tcg/mips/mips64-dsp/shra_r_w.c create mode 100644 tests/tcg/mips/mips64-dsp/shrav_ph.c create mode 100644 tests/tcg/mips/mips64-dsp/shrav_pw.c create mode 100644 tests/tcg/mips/mips64-dsp/shrav_qh.c create mode 100644 tests/tcg/mips/mips64-dsp/shrav_r_ph.c create mode 100644 tests/tcg/mips/mips64-dsp/shrav_r_pw.c create mode 100644 tests/tcg/mips/mips64-dsp/shrav_r_qh.c create mode 100644 tests/tcg/mips/mips64-dsp/shrav_r_w.c create mode 100644 tests/tcg/mips/mips64-dsp/shrl_ob.c create mode 100644 tests/tcg/mips/mips64-dsp/shrl_qb.c create mode 100644 tests/tcg/mips/mips64-dsp/shrl_qh.c create mode 100644 tests/tcg/mips/mips64-dsp/shrlv_ob.c create mode 100644 tests/tcg/mips/mips64-dsp/shrlv_qb.c create mode 100644 tests/tcg/mips/mips64-dsp/shrlv_qh.c create mode 100644 tests/tcg/mips/mips64-dsp/subq_ph.c create mode 100644 tests/tcg/mips/mips64-dsp/subq_pw.c create mode 100644 tests/tcg/mips/mips64-dsp/subq_qh.c create mode 100644 tests/tcg/mips/mips64-dsp/subq_s_ph.c create mode 100644 tests/tcg/mips/mips64-dsp/subq_s_pw.c create mode 100644 tests/tcg/mips/mips64-dsp/subq_s_qh.c create mode 100644 tests/tcg/mips/mips64-dsp/subq_s_w.c create mode 100644 tests/tcg/mips/mips64-dsp/subu_ob.c create mode 100644 tests/tcg/mips/mips64-dsp/subu_qb.c create mode 100644 tests/tcg/mips/mips64-dsp/subu_s_ob.c create mode 100644 tests/tcg/mips/mips64-dsp/subu_s_qb.c create mode 100644 tests/tcg/mips/mips64-dsp/wrdsp.c create mode 100644 tests/tcg/mips/mips64-dspr2/.directory create mode 100644 tests/tcg/mips/mips64-dspr2/Makefile create mode 100644 tests/tcg/mips/mips64-dspr2/absq_s_qb.c create mode 100644 tests/tcg/mips/mips64-dspr2/addqh_ph.c create mode 100644 tests/tcg/mips/mips64-dspr2/addqh_r_ph.c create mode 100644 tests/tcg/mips/mips64-dspr2/addqh_r_w.c create mode 100644 tests/tcg/mips/mips64-dspr2/addqh_w.c create mode 100644 tests/tcg/mips/mips64-dspr2/addu_ph.c create mode 100644 tests/tcg/mips/mips64-dspr2/addu_qh.c create mode 100644 tests/tcg/mips/mips64-dspr2/addu_s_ph.c create mode 100644 tests/tcg/mips/mips64-dspr2/addu_s_qh.c create mode 100644 tests/tcg/mips/mips64-dspr2/adduh_ob.c create mode 100644 tests/tcg/mips/mips64-dspr2/adduh_qb.c create mode 100644 tests/tcg/mips/mips64-dspr2/adduh_r_ob.c create mode 100644 tests/tcg/mips/mips64-dspr2/adduh_r_qb.c create mode 100644 tests/tcg/mips/mips64-dspr2/append.c create mode 100644 tests/tcg/mips/mips64-dspr2/balign.c create mode 100644 tests/tcg/mips/mips64-dspr2/cmpgdu_eq_ob.c create mode 100644 tests/tcg/mips/mips64-dspr2/cmpgdu_eq_qb.c create mode 100644 tests/tcg/mips/mips64-dspr2/cmpgdu_le_ob.c create mode 100644 tests/tcg/mips/mips64-dspr2/cmpgdu_le_qb.c create mode 100644 tests/tcg/mips/mips64-dspr2/cmpgdu_lt_ob.c create mode 100644 tests/tcg/mips/mips64-dspr2/cmpgdu_lt_qb.c create mode 100644 tests/tcg/mips/mips64-dspr2/dbalign.c create mode 100644 tests/tcg/mips/mips64-dspr2/dpa_w_ph.c create mode 100644 tests/tcg/mips/mips64-dspr2/dpa_w_qh.c create mode 100644 tests/tcg/mips/mips64-dspr2/dpaqx_s_w_ph.c create mode 100644 tests/tcg/mips/mips64-dspr2/dpaqx_sa_w_ph.c create mode 100644 tests/tcg/mips/mips64-dspr2/dpax_w_ph.c create mode 100644 tests/tcg/mips/mips64-dspr2/dps_w_ph.c create mode 100644 tests/tcg/mips/mips64-dspr2/dps_w_qh.c create mode 100644 tests/tcg/mips/mips64-dspr2/dpsqx_s_w_ph.c create mode 100644 tests/tcg/mips/mips64-dspr2/dpsqx_sa_w_ph.c create mode 100644 tests/tcg/mips/mips64-dspr2/dpsx_w_ph.c create mode 100644 tests/tcg/mips/mips64-dspr2/head.S create mode 100644 tests/tcg/mips/mips64-dspr2/io.h create mode 100644 tests/tcg/mips/mips64-dspr2/mips_boot.lds create mode 100644 tests/tcg/mips/mips64-dspr2/mul_ph.c create mode 100644 tests/tcg/mips/mips64-dspr2/mul_s_ph.c create mode 100644 tests/tcg/mips/mips64-dspr2/muleq_s_w_phl.c create mode 100644 tests/tcg/mips/mips64-dspr2/mulq_rs_w.c create mode 100644 tests/tcg/mips/mips64-dspr2/mulq_s_ph.c create mode 100644 tests/tcg/mips/mips64-dspr2/mulq_s_w.c create mode 100644 tests/tcg/mips/mips64-dspr2/mulsa_w_ph.c create mode 100644 tests/tcg/mips/mips64-dspr2/mulsaq_s_w_ph.c create mode 100644 tests/tcg/mips/mips64-dspr2/precr_qb_ph.c create mode 100644 tests/tcg/mips/mips64-dspr2/precr_sra_ph_w.c create mode 100644 tests/tcg/mips/mips64-dspr2/precr_sra_r_ph_w.c create mode 100644 tests/tcg/mips/mips64-dspr2/prepend.c create mode 100644 tests/tcg/mips/mips64-dspr2/printf.c create mode 100644 tests/tcg/mips/mips64-dspr2/shra_qb.c create mode 100644 tests/tcg/mips/mips64-dspr2/shra_r_qb.c create mode 100644 tests/tcg/mips/mips64-dspr2/shrav_ob.c create mode 100644 tests/tcg/mips/mips64-dspr2/shrav_qb.c create mode 100644 tests/tcg/mips/mips64-dspr2/shrav_r_ob.c create mode 100644 tests/tcg/mips/mips64-dspr2/shrav_r_qb.c create mode 100644 tests/tcg/mips/mips64-dspr2/shrl_ph.c create mode 100644 tests/tcg/mips/mips64-dspr2/shrlv_ph.c create mode 100644 tests/tcg/mips/mips64-dspr2/subqh_ph.c create mode 100644 tests/tcg/mips/mips64-dspr2/subqh_r_ph.c create mode 100644 tests/tcg/mips/mips64-dspr2/subqh_r_w.c create mode 100644 tests/tcg/mips/mips64-dspr2/subqh_w.c create mode 100644 tests/tcg/mips/mips64-dspr2/subu_ph.c create mode 100644 tests/tcg/mips/mips64-dspr2/subu_qh.c create mode 100644 tests/tcg/mips/mips64-dspr2/subu_s_ph.c create mode 100644 tests/tcg/mips/mips64-dspr2/subu_s_qh.c create mode 100644 tests/tcg/mips/mips64-dspr2/subuh_ob.c create mode 100644 tests/tcg/mips/mips64-dspr2/subuh_qb.c create mode 100644 tests/tcg/mips/mips64-dspr2/subuh_r_ob.c create mode 100644 tests/tcg/mips/mips64-dspr2/subuh_r_qb.c
tests/tcg/mips/mips32-dsp/Makefile new file +134 -0
@@ -0,0 +1,134 @@ +-include ../../config-host.mak + +CROSS=mips64el-unknown-linux-gnu- + +SIM=qemu-mipsel +SIM_FLAGS=-cpu mips32dspr2 + +CC = $(CROSS)gcc +CFLAGS = -mabi=32 -march=mips32r2 -mgp32 -mdsp -static + +TESTCASES = absq_s_ph.tst +TESTCASES += absq_s_w.tst +TESTCASES += addq_ph.tst +TESTCASES += addq_s_ph.tst +TESTCASES += addsc.tst +TESTCASES += addu_qb.tst +TESTCASES += addu_s_qb.tst +TESTCASES += addwc.tst +TESTCASES += bitrev.tst +TESTCASES += bposge32.tst +TESTCASES += cmp_eq_ph.tst +TESTCASES += cmpgu_eq_qb.tst +TESTCASES += cmpgu_le_qb.tst +TESTCASES += cmpgu_lt_qb.tst +TESTCASES += cmp_le_ph.tst +TESTCASES += cmp_lt_ph.tst +TESTCASES += cmpu_eq_qb.tst +TESTCASES += cmpu_le_qb.tst +TESTCASES += cmpu_lt_qb.tst +TESTCASES += dpaq_sa_l_w.tst +TESTCASES += dpaq_s_w_ph.tst +TESTCASES += dpau_h_qbl.tst +TESTCASES += dpau_h_qbr.tst +TESTCASES += dpsq_sa_l_w.tst +TESTCASES += dpsq_s_w_ph.tst +TESTCASES += dpsu_h_qbl.tst +TESTCASES += dpsu_h_qbr.tst +TESTCASES += extp.tst +TESTCASES += extpdp.tst +TESTCASES += extpdpv.tst +TESTCASES += extpv.tst +TESTCASES += extr_rs_w.tst +TESTCASES += extr_r_w.tst +TESTCASES += extr_s_h.tst +TESTCASES += extrv_rs_w.tst +TESTCASES += extrv_r_w.tst +TESTCASES += extrv_s_h.tst +TESTCASES += extrv_w.tst +TESTCASES += extr_w.tst +TESTCASES += insv.tst +TESTCASES += lbux.tst +TESTCASES += lhx.tst +TESTCASES += lwx.tst +TESTCASES += madd.tst +TESTCASES += maddu.tst +TESTCASES += maq_sa_w_phl.tst +TESTCASES += maq_sa_w_phr.tst +TESTCASES += maq_s_w_phl.tst +TESTCASES += maq_s_w_phr.tst +TESTCASES += mfhi.tst +TESTCASES += mflo.tst +TESTCASES += modsub.tst +TESTCASES += msub.tst +TESTCASES += msubu.tst +TESTCASES += mthi.tst +TESTCASES += mthlip.tst +TESTCASES += mtlo.tst +TESTCASES += muleq_s_w_phr.tst +TESTCASES += muleu_s_ph_qbl.tst +TESTCASES += muleu_s_ph_qbr.tst +TESTCASES += mulq_rs_ph.tst +TESTCASES += mult.tst +TESTCASES += multu.tst +TESTCASES += packrl_ph.tst +TESTCASES += pick_ph.tst +TESTCASES += pick_qb.tst +TESTCASES += precequ_ph_qbla.tst +TESTCASES += precequ_ph_qbl.tst +TESTCASES += precequ_ph_qbra.tst +TESTCASES += precequ_ph_qbr.tst +TESTCASES += preceq_w_phl.tst +TESTCASES += preceq_w_phr.tst +TESTCASES += preceu_ph_qbla.tst +TESTCASES += preceu_ph_qbl.tst +TESTCASES += preceu_ph_qbra.tst +TESTCASES += preceu_ph_qbr.tst +TESTCASES += precrq_ph_w.tst +TESTCASES += precrq_qb_ph.tst +TESTCASES += precrq_rs_ph_w.tst +TESTCASES += precrqu_s_qb_ph.tst +TESTCASES += raddu_w_qb.tst +TESTCASES += rddsp.tst +TESTCASES += repl_ph.tst +TESTCASES += repl_qb.tst +TESTCASES += replv_ph.tst +TESTCASES += replv_qb.tst +TESTCASES += shilo.tst +TESTCASES += shilov.tst +TESTCASES += shll_ph.tst +TESTCASES += shll_qb.tst +TESTCASES += shll_s_ph.tst +TESTCASES += shll_s_w.tst +TESTCASES += shllv_ph.tst +TESTCASES += shllv_qb.tst +TESTCASES += shllv_s_ph.tst +TESTCASES += shllv_s_w.tst +TESTCASES += shra_ph.tst +TESTCASES += shra_r_ph.tst +TESTCASES += shra_r_w.tst +TESTCASES += shrav_ph.tst +TESTCASES += shrav_r_ph.tst +TESTCASES += shrav_r_w.tst +TESTCASES += shrl_qb.tst +TESTCASES += shrlv_qb.tst +TESTCASES += subq_ph.tst +TESTCASES += subq_s_ph.tst +TESTCASES += subq_s_w.tst +TESTCASES += subu_qb.tst +TESTCASES += subu_s_qb.tst +TESTCASES += wrdsp.tst + +all: $(TESTCASES) + +%.tst: %.c + $(CC) $(CFLAGS) $< -o $@ + +check: $(TESTCASES) + @for case in $(TESTCASES); do \ + echo $(SIM) $(SIM_FLAGS) ./$$case;\ + $(SIM) $(SIM_FLAGS) ./$$case; \ + done + +clean: + $(RM) -rf $(TESTCASES)
tests/tcg/mips/mips32-dsp/absq_s_ph.c new file +31 -0
@@ -0,0 +1,31 @@ +#include <stdio.h> +#include <assert.h> + + +int main () +{ +int rd, rt; +int result; + + rt =0x10017EFD ; + result =0x10017EFD ; + + __asm + ("absq_s.ph %0, %1\n\t" + :"=r" (rd) + :"r" (rt) + ); +assert (rd == result); + + rt =0x8000A536 ; + result =0x7FFF5ACA ; + + __asm + ("absq_s.ph %0, %1\n\t" + :"=r" (rd) + :"r" (rt) + ); +assert (rd == result); + +return 0 ; +}
tests/tcg/mips/mips32-dsp/absq_s_w.c new file +37 -0
@@ -0,0 +1,37 @@ +#include <stdio.h> +#include <assert.h> + +int main () +{ +int rd, rt; +int result; + + rt =0x80000000 ; + result =0x7FFFFFFF ; + __asm + ("absq_s.w %0, %1\n\t" + :"=r" (rd) + :"r" (rt) + ); +assert (rd == result); + + rt =0x80030000 ; + result =0x7FFD0000 ; + __asm + ("absq_s.w %0, %1\n\t" + :"=r" (rd) + :"r" (rt) + ); +assert (rd == result); + + rt =0x31036080 ; + result =0x31036080 ; + __asm + ("absq_s.w %0, %1\n\t" + :"=r" (rd) + :"r" (rt) + ); +assert (rd == result); + +return 0 ; +}
tests/tcg/mips/mips32-dsp/addq_ph.c new file +30 -0
@@ -0,0 +1,30 @@ +#include <stdio.h> +#include <assert.h> + +int main () +{ +int rd, rs, rt; +int result; + + rs =0xFFFFFFFF ; + rt =0x10101010 ; + result =0x100F100F ; + __asm + ("addq.ph %0, %1, %2\n\t" + :"=r" (rd) + :"r" (rs),"r" (rt) + ); +assert (result == rd); + + rs =0x3712847D ; + rt =0x0031AF2D ; + result =0x374333AA ; + __asm + ("addq.ph %0, %1, %2\n\t" + :"=r" (rd) + :"r" (rs),"r" (rt) + ); +assert (result == rd); + +return 0 ; +}
tests/tcg/mips/mips32-dsp/addq_s_ph.c new file +30 -0
@@ -0,0 +1,30 @@ +#include <stdio.h> +#include <assert.h> + +int main () +{ +int rd, rs, rt; +int result; + + rs =0xFFFFFFFF ; + rt =0x10101010 ; + result =0x100F100F ; + __asm + ("addq_s.ph %0, %1, %2\n\t" + :"=r" (rd) + :"r" (rs),"r" (rt) + ); +assert (result == rd); + + rs =0x3712847D ; + rt =0x0031AF2D ; + result =0x37438000 ; + __asm + ("addq_s.ph %0, %1, %2\n\t" + :"=r" (rd) + :"r" (rs),"r" (rt) + ); +assert (result == rd); + +return 0 ; +}
tests/tcg/mips/mips32-dsp/addsc.c new file +30 -0
@@ -0,0 +1,30 @@ +#include <stdio.h> +#include <assert.h> + +int main () +{ +int rd, rs, rt; +int result; + + rs =0x0000000F ; + rt =0x00000001 ; + result =0x00000010 ; + __asm + ("addsc %0, %1, %2\n\t" + :"=r" (rd) + :"r" (rs),"r" (rt) + ); +assert (rd == result); + + rs =0xFFFF0FFF ; + rt =0x00010111 ; + result =0x00001110 ; + __asm + ("addsc %0, %1, %2\n\t" + :"=r" (rd) + :"r" (rs),"r" (rt) + ); +assert (rd == result); + +return 0 ; +}
tests/tcg/mips/mips32-dsp/addu_qb.c new file +30 -0
@@ -0,0 +1,30 @@ +#include <stdio.h> +#include <assert.h> + +int main () +{ +int rd, rs, rt; +int result; + + rs =0x00FF00FF ; + rt =0x00010001 ; + result =0x00000000 ; + __asm + ("addu.qb %0, %1, %2\n\t" + :"=r" (rd) + :"r" (rs),"r" (rt) + ); +assert (rd == result); + + rs =0xFFFF1111 ; + rt =0x00020001 ; + result =0xFF011112 ; + __asm + ("addu.qb %0, %1, %2\n\t" + :"=r" (rd) + :"r" (rs),"r" (rt) + ); +assert (rd == result); + +return 0 ; +}
tests/tcg/mips/mips32-dsp/addu_s_qb.c new file +30 -0
@@ -0,0 +1,30 @@ +#include <stdio.h> +#include <assert.h> + +int main () +{ +int rd, rs, rt; +int result; + + rs =0x10FF01FF ; + rt =0x10010001 ; + result =0x20FF01FF ; + __asm + ("addu_s.qb %0, %1, %2\n\t" + :"=r" (rd) + :"r" (rs),"r" (rt) + ); +assert (rd == result); + + rs =0xFFFF1111 ; + rt =0x00020001 ; + result =0xFFFF1112 ; + __asm + ("addu_s.qb %0, %1, %2\n\t" + :"=r" (rd) + :"r" (rs),"r" (rt) + ); +assert (rd == result); + +return 0 ; +}
tests/tcg/mips/mips32-dsp/addwc.c new file +30 -0
@@ -0,0 +1,30 @@ +#include <stdio.h> +#include <assert.h> + +int main () +{ +int rd, rs, rt; +int result; + + rs =0x10FF01FF ; + rt =0x10010001 ; + result =0x21000200 ; + __asm + ("addwc %0, %1, %2\n\t" + :"=r" (rd) + :"r" (rs),"r" (rt) + ); +assert (rd == result); + + rs =0xFFFF1111 ; + rt =0x00020001 ; + result =0x00011112 ; + __asm + ("addwc %0, %1, %2\n\t" + :"=r" (rd) + :"r" (rs),"r" (rt) + ); +assert (rd == result); + +return 0 ; +}
tests/tcg/mips/mips32-dsp/bitrev.c new file +20 -0
@@ -0,0 +1,20 @@ +#include <stdio.h> +#include <assert.h> + +int main () +{ +int rd, rt; +int result; + + rt =0x12345678 ; + result =0x00001E6A ; + + __asm + ("bitrev %0, %1\n\t" + :"=r" (rd) + :"r" (rt) + ); +assert (rd == result); + +return 0 ; +}
tests/tcg/mips/mips32-dsp/bposge32.c new file +44 -0
44 lines not on this page · raw message
tests/tcg/mips/mips32-dsp/cmp_eq_ph.c new file +35 -0
@@ -0,0 +1,35 @@ +#include <stdio.h> +#include <assert.h> + +int main () +{ +int rd, rs, rt; +int result; + + rs =0x11777066 ; + rt =0x55AA33FF ; + result =0x00 ; + __asm + ("cmp.eq.ph %1, %2\n\t" +"rddsp %0\n\t" + :"=r" (rd) + :"r" (rs),"r" (rt) + ); + + rd = (rd >>24 ) &0x03 ; +assert (rd == result); + + rs =0x11777066 ; + rt =0x11777066 ; + result =0x03 ; + __asm + ("cmp.eq.ph %1, %2\n\t" +"rddsp %0\n\t" + :"=r" (rd) + :"r" (rs),"r" (rt) + ); + rd = (rd >>24 ) &0x03 ; +assert (rd == result); + +return 0 ; +}
tests/tcg/mips/mips32-dsp/cmp_le_ph.c new file +35 -0
@@ -0,0 +1,35 @@ +#include <stdio.h> +#include <assert.h> + +int main () +{ +int rd, rs, rt; +int result; + + rs =0x11777066 ; + rt =0x55AA33FF ; + result =0x02 ; + __asm + ("cmp.le.ph %1, %2\n\t" +"rddsp %0\n\t" + :"=r" (rd) + :"r" (rs),"r" (rt) + ); + + rd = (rd >>24 ) &0x03 ; +assert (rd == result); + + rs =0x11777066 ; + rt =0x11777066 ; + result =0x03 ; + __asm + ("cmp.le.ph %1, %2\n\t" +"rddsp %0\n\t" + :"=r" (rd) + :"r" (rs),"r" (rt) + ); + rd = (rd >>24 ) &0x03 ; +assert (rd == result); + +return 0 ; +}
tests/tcg/mips/mips32-dsp/cmp_lt_ph.c new file +35 -0
@@ -0,0 +1,35 @@ +#include <stdio.h> +#include <assert.h> + +int main () +{ +int rd, rs, rt; +int result; + + rs =0x11777066 ; + rt =0x55AA33FF ; + result =0x02 ; + __asm + ("cmp.lt.ph %1, %2\n\t" +"rddsp %0\n\t" + :"=r" (rd) + :"r" (rs),"r" (rt) + ); + + rd = (rd >>24 ) &0x03 ; +assert (rd == result); + + rs =0x11777066 ; + rt =0x11777066 ; + result =0x00 ; + __asm + ("cmp.lt.ph %1, %2\n\t" +"rddsp %0\n\t" + :"=r" (rd) + :"r" (rs),"r" (rt) + ); + rd = (rd >>24 ) &0x03 ; +assert (rd == result); + +return 0 ; +}
tests/tcg/mips/mips32-dsp/cmpgu_eq_qb.c new file +31 -0
@@ -0,0 +1,31 @@ +#include <stdio.h> +#include <assert.h> + +int main () +{ +int rd, rs, rt; +int result; + + rs =0x11777066 ; + rt =0x55AA70FF ; + result =0x02 ; + __asm + ("cmpgu.eq.qb %0, %1, %2\n\t" + :"=r" (rd) + :"r" (rs),"r" (rt) + ); + +assert (rd == result); + + rs =0x11777066 ; + rt =0x11777066 ; + result =0x0F ; + __asm + ("cmpgu.eq.qb %0, %1, %2\n\t" + :"=r" (rd) + :"r" (rs),"r" (rt) + ); +assert (rd == result); + +return 0 ; +}
tests/tcg/mips/mips32-dsp/cmpgu_le_qb.c new file +31 -0
@@ -0,0 +1,31 @@ +#include <stdio.h> +#include <assert.h> + +int main () +{ +int rd, rs, rt; +int result; + + rs =0x11777066 ; + rt =0x55AA70FF ; + result =0x0F ; + __asm + ("cmpgu.le.qb %0, %1, %2\n\t" + :"=r" (rd) + :"r" (rs),"r" (rt) + ); + +assert (rd == result); + + rs =0x11777066 ; + rt =0x11766066 ; + result =0x09 ; + __asm + ("cmpgu.le.qb %0, %1, %2\n\t" + :"=r" (rd) + :"r" (rs),"r" (rt) + ); +assert (rd == result); + +return 0 ; +}
tests/tcg/mips/mips32-dsp/cmpgu_lt_qb.c new file +31 -0
@@ -0,0 +1,31 @@ +#include <stdio.h> +#include <assert.h> + +int main () +{ +int rd, rs, rt; +int result; + + rs =0x11777066 ; + rt =0x55AA70FF ; + result =0x0D ; + __asm + ("cmpgu.lt.qb %0, %1, %2\n\t" + :"=r" (rd) + :"r" (rs),"r" (rt) + ); + +assert (rd == result); + + rs =0x11777066 ; + rt =0x11766066 ; + result =0x00 ; + __asm + ("cmpgu.lt.qb %0, %1, %2\n\t" + :"=r" (rd) + :"r" (rs),"r" (rt) + ); +assert (rd == result); + +return 0 ; +}
tests/tcg/mips/mips32-dsp/cmpu_eq_qb.c new file +35 -0
@@ -0,0 +1,35 @@ +#include <stdio.h> +#include <assert.h> + +int main () +{ +int rs, rt; +int dsp; +int result; + + rs =0x11777066 ; + rt =0x55AA70FF ; + result =0x02 ; + __asm + ("cmpu.eq.qb %1, %2\n\t" +"rddsp %0\n\t" + :"=r" (dsp) + :"r" (rs),"r" (rt) + ); + dsp = (dsp >>24 ) &0x0F ; +assert (dsp == result); + + rs =0x11777066 ; + rt =0x11777066 ; + result =0x0F ; + __asm + ("cmpu.eq.qb %1, %2\n\t" +"rddsp %0\n\t" + :"=r" (dsp) + :"r" (rs),"r" (rt) + ); + dsp = (dsp >>24 ) &0x0F ; +assert (dsp == result); + +return 0 ; +}
tests/tcg/mips/mips32-dsp/cmpu_le_qb.c new file +35 -0
@@ -0,0 +1,35 @@ +#include <stdio.h> +#include <assert.h> + +int main () +{ +int rs, rt; +int dsp; +int result; + + rs =0x11777066 ; + rt =0x55AA70FF ; + result =0x0F ; + __asm + ("cmpu.le.qb %1, %2\n\t" +"rddsp %0\n\t" + :"=r" (dsp) + :"r" (rs),"r" (rt) + ); + dsp = (dsp >>24 ) &0x0F ; +assert (dsp == result); + + rs =0x11777066 ; + rt =0x11777066 ; + result =0x0F ; + __asm + ("cmpu.le.qb %1, %2\n\t" +"rddsp %0\n\t" + :"=r" (dsp) + :"r" (rs),"r" (rt) + ); + dsp = (dsp >>24 ) &0x0F ; +assert (dsp == result); + +return 0 ; +}
tests/tcg/mips/mips32-dsp/cmpu_lt_qb.c new file +35 -0
@@ -0,0 +1,35 @@ +#include <stdio.h> +#include <assert.h> + +int main () +{ +int rs, rt; +int dsp; +int result; + + rs =0x11777066 ; + rt =0x55AA70FF ; + result =0x0D ; + __asm + ("cmpu.lt.qb %1, %2\n\t" +"rddsp %0\n\t" + :"=r" (dsp) + :"r" (rs),"r" (rt) + ); + dsp = (dsp >>24 ) &0x0F ; +assert (dsp == result); + + rs =0x11777066 ; + rt =0x11777066 ; + result =0x00 ; + __asm + ("cmpu.lt.qb %1, %2\n\t" +"rddsp %0\n\t" + :"=r" (dsp) + :"r" (rs),"r" (rt) + ); + dsp = (dsp >>24 ) &0x0F ; +assert (dsp == result); + +return 0 ; +}
tests/tcg/mips/mips32-dsp/dpaq_s_w_ph.c new file +31 -0
@@ -0,0 +1,31 @@ +#include <stdio.h> +#include <assert.h> + +int main () +{ +int rs, rt, dsp; +int ach =0 , acl =0 ; +int resulth, resultl, resultdsp; + + rs =0x800000FF ; + rt =0x80000002 ; + resulth =0x00 ; + resultl =0x800003FB ; + resultdsp =0x01 ; + __asm + ("mthi %0, $ac1\n\t" +"mtlo %1, $ac1\n\t" +"dpaq_s.w.ph $ac1, %3, %4\n\t" +"mfhi %0, $ac1\n\t" +"mflo %1, $ac1\n\t" +"rddsp %2\n\t" + :"+r" (ach),"+r" (acl),"=r" (dsp) + :"r" (rs),"r" (rt) + ); + dsp = dsp >>17 &0x01 ; +assert (dsp == resultdsp); +assert (ach == resulth); +assert (acl == resultl); + +return 0 ; +}
tests/tcg/mips/mips32-dsp/dpaq_sa_l_w.c new file +31 -0
@@ -0,0 +1,31 @@ +#include <stdio.h> +#include <assert.h> + +int main () +{ +int rs, rt, dsp; +int ach =0 , acl =0 ; +int resulth, resultl, resultdsp; + + rs =0x800000FF ; + rt =0x80000002 ; + resulth =0x7FFFFFFF ; + resultl =0xFFFFFFFF ; + resultdsp =0x01 ; + __asm + ("mthi %0, $ac1\n\t" +"mtlo %0, $ac1\n\t" +"dpaq_sa.l.w $ac1, %3, %4\n\t" +"mfhi %0, $ac1\n\t" +"mflo %1, $ac1\n\t" +"rddsp %2\n\t" + :"+r" (ach),"+r" (acl),"=r" (dsp) + :"r" (rs),"r" (rt) + ); + dsp = (dsp >>17 ) &0x01 ; +assert (dsp == resultdsp); +assert (ach == resulth); +assert (acl == resultl); + +return 0 ; +}
tests/tcg/mips/mips32-dsp/dpau_h_qbl.c new file +27 -0
@@ -0,0 +1,27 @@ +#include <stdio.h> +#include <assert.h> + +int main () +{ +int rs, rt; +int ach =5 , acl =3 ; +int resulth, resultl; + + rs =0x800000FF ; + rt =0x80000002 ; + resulth =0x05 ; + resultl =0x4003 ; + __asm + ("mthi %0, $ac1\n\t" +"mtlo %1, $ac1\n\t" +"dpau.h.qbl $ac1, %2, %3\n\t" +"mfhi %0, $ac1\n\t" +"mflo %1, $ac1\n\t" + :"+r" (ach),"+r" (acl) + :"r" (rs),"r" (rt) + ); +assert (ach == resulth); +assert (acl == resultl); + +return 0 ; +}
tests/tcg/mips/mips32-dsp/dpau_h_qbr.c new file +27 -0
@@ -0,0 +1,27 @@ +#include <stdio.h> +#include <assert.h> + +int main () +{ +int rs, rt; +int ach =5 , acl =3 ; +int resulth, resultl; + + rs =0x800000FF ; + rt =0x80000002 ; + resulth =0x05 ; + resultl =0x0201 ; + __asm + ("mthi %0, $ac1\n\t" +"mtlo %1, $ac1\n\t" +"dpau.h.qbr $ac1, %2, %3\n\t" +"mfhi %0, $ac1\n\t" +"mflo %1, $ac1\n\t" + :"+r" (ach),"+r" (acl) + :"r" (rs),"r" (rt) + ); +assert (ach == resulth); +assert (acl == resultl); + +return 0 ; +}
tests/tcg/mips/mips32-dsp/dpsq_s_w_ph.c new file +27 -0
@@ -0,0 +1,27 @@ +#include <stdio.h> +#include <assert.h> + +int main () +{ +int rs, rt; +int ach =5 , acl =5 ; +int resulth, resultl; + + rs =0xBC0123AD ; + rt =0x01643721 ; + resulth =0x04 ; + resultl =0xEE9794A3 ; + __asm + ("mthi %0, $ac1\n\t" +"mtlo %1, $ac1\n\t" +"dpsq_s.w.ph $ac1, %2, %3\n\t" +"mfhi %0, $ac1\n\t" +"mflo %1, $ac1\n\t" + :"+r" (ach),"+r" (acl) + :"r" (rs),"r" (rt) + ); +assert (ach == resulth); +assert (acl == resultl); + +return 0 ; +}
tests/tcg/mips/mips32-dsp/dpsq_sa_l_w.c new file +31 -0
@@ -0,0 +1,31 @@ +#include <stdio.h> +#include <assert.h> + +int main () +{ +int rs, rt, dsp; +int ach =5 , acl =5 ; +int resulth, resultl, resultdsp; + + rs =0xBC0123AD ; + rt =0x01643721 ; + resulth =0x7FFFFFFF ; + resultl =0xFFFFFFFF ; + resultdsp =0x01 ; + __asm + ("mthi %0, $ac1\n\t" +"mtlo %1, $ac1\n\t" +"dpsq_sa.l.w $ac1, %3, %4\n\t" +"mfhi %0, $ac1\n\t" +"mflo %1, $ac1\n\t" +"rddsp %2\n\t" + :"+r" (ach),"+r" (acl),"=r" (dsp) + :"r" (rs),"r" (rt) + ); + dsp = (dsp >>17 ) &0x01 ; +assert (dsp == resultdsp); +assert (ach == resulth); +assert (acl == resultl); + +return 0 ; +}
tests/tcg/mips/mips32-dsp/dpsu_h_qbl.c new file +27 -0
@@ -0,0 +1,27 @@ +#include <stdio.h> +#include <assert.h> + +int main () +{ +int rs, rt; +int ach =5 , acl =5 ; +int resulth, resultl; + + rs =0xBC0123AD ; + rt =0x01643721 ; + resulth =0x04 ; + resultl =0xFFFFFEE5 ; + __asm + ("mthi %0, $ac1\n\t" +"mtlo %1, $ac1\n\t" +"dpsu.h.qbl $ac1, %2, %3\n\t" +"mfhi %0, $ac1\n\t" +"mflo %1, $ac1\n\t" + :"+r" (ach),"+r" (acl) + :"r" (rs),"r" (rt) + ); +assert (ach == resulth); +assert (acl == resultl); + +return 0 ; +}
tests/tcg/mips/mips32-dsp/dpsu_h_qbr.c new file +27 -0
@@ -0,0 +1,27 @@ +#include <stdio.h> +#include <assert.h> + +int main () +{ +int rs, rt; +int ach =5 , acl =5 ; +int resulth, resultl; + + rs =0xBC0123AD ; + rt =0x01643721 ; + resulth =0x04 ; + resultl =0xFFFFE233 ; + __asm + ("mthi %0, $ac1\n\t" +"mtlo %1, $ac1\n\t" +"dpsu.h.qbr $ac1, %2, %3\n\t" +"mfhi %0, $ac1\n\t" +"mflo %1, $ac1\n\t" + :"+r" (ach),"+r" (acl) + :"r" (rs),"r" (rt) + ); +assert (ach == resulth); +assert (acl == resultl); + +return 0 ; +}
tests/tcg/mips/mips32-dsp/extp.c new file +44 -0
44 lines not on this page · raw message
tests/tcg/mips/mips32-dsp/extpdp.c new file +46 -0
46 lines not on this page · raw message
tests/tcg/mips/mips32-dsp/extpdpv.c new file +47 -0
47 lines not on this page · raw message
tests/tcg/mips/mips32-dsp/extpv.c new file +45 -0
45 lines not on this page · raw message
tests/tcg/mips/mips32-dsp/extr_r_w.c new file +25 -0
@@ -0,0 +1,25 @@ +#include <stdio.h> +#include <assert.h> + +int main () +{ +int rt, ach, acl, dsp; +int result; + + ach =0x05 ; + acl =0xB4CB ; + result =0xA0001699 ; + __asm + ("mthi %2, $ac1\n\t" +"mtlo %3, $ac1\n\t" +"extr_r.w %0, $ac1, 0x03\n\t" +"rddsp %1\n\t" + :"=r" (rt),"=r" (dsp) + :"r" (ach),"r" (acl) + ); + dsp = (dsp >>23 ) &0x01 ; +assert (dsp ==1 ); +assert (result == rt); + +return 0 ; +}
tests/tcg/mips/mips32-dsp/extr_rs_w.c new file +25 -0
@@ -0,0 +1,25 @@ +#include <stdio.h> +#include <assert.h> + +int main () +{ +int rt, ach, acl, dsp; +int result; + + ach =0x05 ; + acl =0xB4CB ; + result =0x7FFFFFFF ; + __asm + ("mthi %2, $ac1\n\t" +"mtlo %3, $ac1\n\t" +"extr_rs.w %0, $ac1, 0x03\n\t" +"rddsp %1\n\t" + :"=r" (rt),"=r" (dsp) + :"r" (ach),"r" (acl) + ); + dsp = (dsp >>23 ) &0x01 ; +assert (dsp ==1 ); +assert (result == rt); + +return 0 ; +}
tests/tcg/mips/mips32-dsp/extr_s_h.c new file +25 -0
@@ -0,0 +1,25 @@ +#include <stdio.h> +#include <assert.h> + +int main () +{ +int rt, ach, acl, dsp; +int result; + + ach =0x05 ; + acl =0xB4CB ; + result =0x00007FFF ; + __asm + ("mthi %2, $ac1\n\t" +"mtlo %3, $ac1\n\t" +"extr_s.h %0, $ac1, 0x03\n\t" +"rddsp %1\n\t" + :"=r" (rt),"=r" (dsp) + :"r" (ach),"r" (acl) + ); + dsp = (dsp >>23 ) &0x01 ; +assert (dsp ==1 ); +assert (result == rt); + +return 0 ; +}
tests/tcg/mips/mips32-dsp/extr_w.c new file +25 -0
@@ -0,0 +1,25 @@ +#include <stdio.h> +#include <assert.h> + +int main () +{ +int rt, ach, acl, dsp; +int result; + + ach =0x05 ; + acl =0xB4CB ; + result =0xA0001699 ; + __asm + ("mthi %2, $ac1\n\t" +"mtlo %3, $ac1\n\t" +"extr.w %0, $ac1, 0x03\n\t" +"rddsp %1\n\t" + :"=r" (rt),"=r" (dsp) + :"r" (ach),"r" (acl) + ); + dsp = (dsp >>23 ) &0x01 ; +assert (dsp ==1 ); +assert (result == rt); + +return 0 ; +}
tests/tcg/mips/mips32-dsp/extrv_r_w.c new file +29 -0
@@ -0,0 +1,29 @@ +#include <stdio.h> +#include <assert.h> + +int main () +{ +int rt, rs, ach, acl, dsp; +int result; + + ach =0x05 ; + acl =0xB4CB ; + dsp =0x07 ; + rs =0x03 ; + result =0xA0001699 ; + + __asm + ("wrdsp %1, 0x01\n\t" +"mthi %3, $ac1\n\t" +"mtlo %4, $ac1\n\t" +"extrv_r.w %0, $ac1, %2\n\t" +"rddsp %1\n\t" + :"=r" (rt),"+r" (dsp) + :"r" (rs),"r" (ach),"r" (acl) + ); + dsp = (dsp >>23 ) &0x01 ; +assert (dsp ==1 ); +assert (result == rt); + +return 0 ; +}
tests/tcg/mips/mips32-dsp/extrv_rs_w.c new file +29 -0
@@ -0,0 +1,29 @@ +#include <stdio.h> +#include <assert.h> + +int main () +{ +int rt, rs, ach, acl, dsp; +int result; + + ach =0x05 ; + acl =0xB4CB ; + dsp =0x07 ; + rs =0x03 ; + result =0x7FFFFFFF ; + + __asm + ("wrdsp %1, 0x01\n\t" +"mthi %3, $ac1\n\t" +"mtlo %4, $ac1\n\t" +"extrv_rs.w %0, $ac1, %2\n\t" +"rddsp %1\n\t" + :"=r" (rt),"+r" (dsp) + :"r" (rs),"r" (ach),"r" (acl) + ); + dsp = (dsp >>23 ) &0x01 ; +assert (dsp ==1 ); +assert (result == rt); + +return 0 ; +}
tests/tcg/mips/mips32-dsp/extrv_s_h.c new file +29 -0
@@ -0,0 +1,29 @@ +#include <stdio.h> +#include <assert.h> + +int main () +{ +int rt, rs, ach, acl, dsp; +int result; + + ach =0x05 ; + acl =0xB4CB ; + dsp =0x07 ; + rs =0x03 ; + result =0x00007FFF ; + + __asm + ("wrdsp %1, 0x01\n\t" +"mthi %3, $ac1\n\t" +"mtlo %4, $ac1\n\t" +"extrv_s.h %0, $ac1, %2\n\t" +"rddsp %1\n\t" + :"=r" (rt),"+r" (dsp) + :"r" (rs),"r" (ach),"r" (acl) + ); + dsp = (dsp >>23 ) &0x01 ; +assert (dsp ==1 ); +assert (result == rt); + +return 0 ; +}
tests/tcg/mips/mips32-dsp/extrv_w.c new file +29 -0
@@ -0,0 +1,29 @@ +#include <stdio.h> +#include <assert.h> + +int main () +{ +int rt, rs, ach, acl, dsp; +int result; + + ach =0x05 ; + acl =0xB4CB ; + dsp =0x07 ; + rs =0x03 ; + result =0xA0001699 ; + + __asm + ("wrdsp %1, 0x01\n\t" +"mthi %3, $ac1\n\t" +"mtlo %4, $ac1\n\t" +"extrv.w %0, $ac1, %2\n\t" +"rddsp %1\n\t" + :"=r" (rt),"+r" (dsp) + :"r" (rs),"r" (ach),"r" (acl) + ); + dsp = (dsp >>23 ) &0x01 ; +assert (dsp ==1 ); +assert (result == rt); + +return 0 ; +}
tests/tcg/mips/mips32-dsp/insv.c new file +23 -0
@@ -0,0 +1,23 @@ +#include <stdio.h> +#include <assert.h> + +int main () +{ +int rt, rs, dsp; +int result; + +/* msb = 10, lsb = 5 */ + dsp =0x305 ; + rt =0x12345678 ; + rs =0x87654321 ; + result =0x12345338 ; + __asm + ("wrdsp %2, 0x03\n\t" +"insv %0, %1\n\t" + :"+r" (rt) + :"r" (rs),"r" (dsp) + ); +assert (rt == result); + +return 0 ; +}
tests/tcg/mips/mips32-dsp/lbux.c new file +25 -0
@@ -0,0 +1,25 @@ +#include <stdio.h> +#include <assert.h> + +int main (void ) +{ +int value, rd; +int *p; +unsigned long addr, index; +int result; + + value =0xBCDEF389 ; + p = &value; + addr = (unsigned long )p; + index =0 ; + result = value &0xFF ; + __asm + ("lbux %0, %1(%2)\n\t" + :"=r" (rd) + :"r" (index),"r" (addr) + ); + +assert (rd == result); + +return 0 ; +}
tests/tcg/mips/mips32-dsp/lhx.c new file +25 -0
@@ -0,0 +1,25 @@ +#include <stdio.h> +#include <assert.h> + +int main (void ) +{ +int value, rd; +int *p; +unsigned long addr, index; +int result; + + value =0xBCDEF389 ; + p = &value; + addr = (unsigned long )p; + index =0 ; + result =0xFFFFF389 ; + __asm + ("lhx %0, %1(%2)\n\t" + :"=r" (rd) + :"r" (index),"r" (addr) + ); + +assert (rd == result); + +return 0 ; +}
tests/tcg/mips/mips32-dsp/lwx.c new file +25 -0
@@ -0,0 +1,25 @@ +#include <stdio.h> +#include <assert.h> + +int main (void ) +{ +int value, rd; +int *p; +unsigned long addr, index; +int result; + + value =0xBCDEF389 ; + p = &value; + addr = (unsigned long )p; + index =0 ; + result =0xBCDEF389 ; + __asm + ("lwx %0, %1(%2)\n\t" + :"=r" (rd) + :"r" (index),"r" (addr) + ); + +assert (rd == result); + +return 0 ; +}
tests/tcg/mips/mips32-dsp/madd.c new file +31 -0
@@ -0,0 +1,31 @@ +#include <stdio.h> +#include <assert.h> + +int main () +{ +int rt, rs; +int achi, acli; +int acho, aclo; +int resulth, resultl; + + achi =0x05 ; + acli =0xB4CB ; + rs =0x01 ; + rt =0x01 ; + resulth =0x05 ; + resultl =0xB4CC ; + + __asm + ("mthi %2, $ac1\n\t" +"mtlo %3, $ac1\n\t" +"madd $ac1, %4, %5\n\t" +"mfhi %0, $ac1\n\t" +"mflo %1, $ac1\n\t" + :"=r" (acho),"=r" (aclo) + :"r" (achi),"r" (acli),"r" (rs),"r" (rt) + ); +assert (resulth == acho); +assert (resultl == aclo); + +return 0 ; +}
tests/tcg/mips/mips32-dsp/maddu.c new file +31 -0
@@ -0,0 +1,31 @@ +#include <stdio.h> +#include <assert.h> + +int main () +{ +int rt, rs; +int achi, acli; +int acho, aclo; +int resulth, resultl; + + achi =0x05 ; + acli =0xB4CB ; + rs =0x01 ; + rt =0x01 ; + resulth =0x05 ; + resultl =0xB4CC ; + + __asm + ("mthi %2, $ac1\n\t" +"mtlo %3, $ac1\n\t" +"madd $ac1, %4, %5\n\t" +"mfhi %0, $ac1\n\t" +"mflo %1, $ac1\n\t" + :"=r" (acho),"=r" (aclo) + :"r" (achi),"r" (acli),"r" (rs),"r" (rt) + ); +assert (resulth == acho); +assert (resultl == aclo); + +return 0 ; +}
tests/tcg/mips/mips32-dsp/main.c new file +6 -0
@@ -0,0 +1,6 @@ +#include <stdio.h> + +int main () +{ +printf ("hello world\n" ); +}
tests/tcg/mips/mips32-dsp/maq_s_w_phl.c new file +31 -0
@@ -0,0 +1,31 @@ +#include <stdio.h> +#include <assert.h> + +int main () +{ +int rt, rs; +int achi, acli; +int acho, aclo; +int resulth, resultl; + + achi =0x05 ; + acli =0xB4CB ; + rs =0xFF060000 ; + rt =0xCB000000 ; + resulth =0x04 ; + resultl =0x947438CB ; + + __asm + ("mthi %2, $ac1\n\t" +"mtlo %3, $ac1\n\t" +"maq_s.w.phl $ac1, %4, %5\n\t" +"mfhi %0, $ac1\n\t" +"mflo %1, $ac1\n\t" + :"=r" (acho),"=r" (aclo) + :"r" (achi),"r" (acli),"r" (rs),"r" (rt) + ); +assert (resulth == acho); +assert (resultl == aclo); + +return 0 ; +}
tests/tcg/mips/mips32-dsp/maq_s_w_phr.c new file +31 -0
@@ -0,0 +1,31 @@ +#include <stdio.h> +#include <assert.h> + +int main () +{ +int rt, rs; +int achi, acli; +int acho, aclo; +int resulth, resultl; + + achi =0x05 ; + acli =0xB4CB ; + rs =0xFF06 ; + rt =0xCB00 ; + resulth =0x04 ; + resultl =0x947438CB ; + + __asm + ("mthi %2, $ac1\n\t" +"mtlo %3, $ac1\n\t" +"maq_s.w.phr $ac1, %4, %5\n\t" +"mfhi %0, $ac1\n\t" +"mflo %1, $ac1\n\t" + :"=r" (acho),"=r" (aclo) + :"r" (achi),"r" (acli),"r" (rs),"r" (rt) + ); +assert (resulth == acho); +assert (resultl == aclo); + +return 0 ; +}
tests/tcg/mips/mips32-dsp/maq_sa_w_phl.c new file +31 -0
@@ -0,0 +1,31 @@ +#include <stdio.h> +#include <assert.h> + +int main () +{ +int rt, rs; +int achi, acli; +int acho, aclo; +int resulth, resultl; + + achi =0x05 ; + acli =0xB4CB ; + rs =0xFF060000 ; + rt =0xCB000000 ; + resulth =0xFFFFFFFF ; + resultl =0x80000000 ; + + __asm + ("mthi %2, $ac1\n\t" +"mtlo %3, $ac1\n\t" +"maq_sa.w.phl $ac1, %4, %5\n\t" +"mfhi %0, $ac1\n\t" +"mflo %1, $ac1\n\t" + :"=r" (acho),"=r" (aclo) + :"r" (achi),"r" (acli),"r" (rs),"r" (rt) + ); +assert (resulth == acho); +assert (resultl == aclo); + +return 0 ; +}
tests/tcg/mips/mips32-dsp/maq_sa_w_phr.c new file +31 -0
@@ -0,0 +1,31 @@ +#include <stdio.h> +#include <assert.h> + +int main () +{ +int rt, rs; +int achi, acli; +int acho, aclo; +int resulth, resultl; + + achi =0x05 ; + acli =0xB4CB ; + rs =0xFF06 ; + rt =0xCB00 ; + resulth =0xFFFFFFFF ; + resultl =0x80000000 ; + + __asm + ("mthi %2, $ac1\n\t" +"mtlo %3, $ac1\n\t" +"maq_sa.w.phr $ac1, %4, %5\n\t" +"mfhi %0, $ac1\n\t" +"mflo %1, $ac1\n\t" + :"=r" (acho),"=r" (aclo) + :"r" (achi),"r" (acli),"r" (rs),"r" (rt) + ); +assert (resulth == acho); +assert (resultl == aclo); + +return 0 ; +}
tests/tcg/mips/mips32-dsp/mfhi.c new file +21 -0
@@ -0,0 +1,21 @@ +#include <stdio.h> +#include <assert.h> + +int main () +{ +int achi, acho; +int result; + + achi =0x004433 ; + result =0x004433 ; + + __asm + ("mthi %1, $ac1\n\t" +"mfhi %0, $ac1\n\t" + :"=r" (acho) + :"r" (achi) + ); +assert (result == acho); + +return 0 ; +}
tests/tcg/mips/mips32-dsp/mflo.c new file +21 -0
@@ -0,0 +1,21 @@ +#include <stdio.h> +#include <assert.h> + +int main () +{ +int acli, aclo; +int result; + + acli =0x004433 ; + result =0x004433 ; + + __asm + ("mthi %1, $ac1\n\t" +"mfhi %0, $ac1\n\t" + :"=r" (aclo) + :"r" (acli) + ); +assert (result == aclo); + +return 0 ; +}
tests/tcg/mips/mips32-dsp/modsub.c new file +30 -0
@@ -0,0 +1,30 @@ +#include <stdio.h> +#include <assert.h> + +int main () +{ +int rd, rs, rt; +int result; + + rs =0xFFFFFFFF ; + rt =0x000000FF ; + result =0xFFFFFF00 ; + __asm + ("modsub %0, %1, %2\n\t" + :"=r" (rd) + :"r" (rs),"r" (rt) + ); +assert (result == rd); + + rs =0x00000000 ; + rt =0x00CD1FFF ; + result =0x0000CD1F ; + __asm + ("modsub %0, %1, %2\n\t" + :"=r" (rd) + :"r" (rs),"r" (rt) + ); +assert (result == rd); + +return 0 ; +}
tests/tcg/mips/mips32-dsp/msub.c new file +30 -0
@@ -0,0 +1,30 @@ +#include <stdio.h> +#include <assert.h> + +int main () +{ +int achi, acli, rs, rt; +int acho, aclo; +int resulth, resultl; + + rs =0x00BBAACC ; + rt =0x0B1C3D2F ; + achi =0x00004433 ; + acli =0xFFCC0011 ; + resulth =0xFFF81F29 ; + resultl =0xB355089D ; + + __asm + ("mthi %2, $ac1\n\t" +"mtlo %3, $ac1\n\t" +"msub $ac1, %4, %5\n\t" +"mfhi %0, $ac1\n\t" +"mflo %1, $ac1\n\t" + :"=r" (acho),"=r" (aclo) + :"r" (achi),"r" (acli),"r" (rs),"r" (rt) + ); +assert (acho == resulth); +assert (aclo == resultl); + +return 0 ; +}
tests/tcg/mips/mips32-dsp/msubu.c new file +30 -0
@@ -0,0 +1,30 @@ +#include <stdio.h> +#include <assert.h> + +int main () +{ +int achi, acli, rs, rt; +int acho, aclo; +int resulth, resultl; + + rs =0x00BBAACC ; + rt =0x0B1C3D2F ; + achi =0x00004433 ; + acli =0xFFCC0011 ; + resulth =0xFFF81F29 ; + resultl =0xB355089D ; + + __asm + ("mthi %2, $ac1\n\t" +"mtlo %3, $ac1\n\t" +"msubu $ac1, %4, %5\n\t" +"mfhi %0, $ac1\n\t" +"mflo %1, $ac1\n\t" + :"=r" (acho),"=r" (aclo) + :"r" (achi),"r" (acli),"r" (rs),"r" (rt) + ); +assert (acho == resulth); +assert (aclo == resultl); + +return 0 ; +}
tests/tcg/mips/mips32-dsp/mthi.c new file +21 -0
@@ -0,0 +1,21 @@ +#include <stdio.h> +#include <assert.h> + +int main () +{ +int achi, acho; +int result; + + achi =0x004433 ; + result =0x004433 ; + + __asm + ("mthi %1, $ac1\n\t" +"mfhi %0, $ac1\n\t" + :"=r" (acho) + :"r" (achi) + ); +assert (result == acho); + +return 0 ; +}
tests/tcg/mips/mips32-dsp/mthlip.c new file +34 -0
@@ -0,0 +1,34 @@ +#include <stdio.h> +#include <assert.h> + +int main () +{ +int rs, ach, acl, dsp; +int result, resulth, resultl; + + dsp =0x07 ; + ach =0x05 ; + acl =0xB4CB ; + rs =0x00FFBBAA ; + resulth =0xB4CB ; + resultl =0x00FFBBAA ; + result =0x27 ; + + __asm + ("wrdsp %0, 0x01\n\t" +"mthi %1, $ac1\n\t" +"mtlo %2, $ac1\n\t" +"mthlip %3, $ac1\n\t" +"mfhi %1, $ac1\n\t" +"mflo %2, $ac1\n\t" +"rddsp %0\n\t" + :"+r" (dsp),"+r" (ach),"+r" (acl) + :"r" (rs) + ); + dsp = dsp &0x3F ; +assert (dsp == result); +assert (ach == resulth); +assert (acl == resultl); + +return 0 ; +}
tests/tcg/mips/mips32-dsp/mtlo.c new file +21 -0
@@ -0,0 +1,21 @@ +#include <stdio.h> +#include <assert.h> + +int main () +{ +int acli, aclo; +int result; + + acli =0x004433 ; + result =0x004433 ; + + __asm + ("mthi %1, $ac1\n\t" +"mfhi %0, $ac1\n\t" + :"=r" (aclo) + :"r" (acli) + ); +assert (result == aclo); + +return 0 ; +}
tests/tcg/mips/mips32-dsp/muleq_s_w_phr.c new file +40 -0
@@ -0,0 +1,40 @@ +#include <stdio.h> +#include <assert.h> + +int main () +{ +int rd, rs, rt, dsp; +int result, resultdsp; + + rs =0x8000 ; + rt =0x8000 ; + result =0x7FFFFFFF ; + resultdsp =1 ; + + __asm + ("muleq_s.w.phr %0, %2, %3\n\t" +"rddsp %1\n\t" + :"=r" (rd),"=r" (dsp) + :"r" (rs),"r" (rt) + ); + dsp = (dsp >>21 ) &0x01 ; +assert (rd == result); +assert (dsp == resultdsp); + + rs =0x1234 ; + rt =0x4321 ; + result =0x98be968 ; + resultdsp =1 ; + + __asm + ("muleq_s.w.phr %0, %2, %3\n\t" +"rddsp %1\n\t" + :"=r" (rd),"=r" (dsp) + :"r" (rs),"r" (rt) + ); + dsp = (dsp >>21 ) &0x01 ; +assert (rd == result); +assert (dsp == resultdsp); + +return 0 ; +}
tests/tcg/mips/mips32-dsp/muleu_s_ph_qbl.c new file +25 -0
@@ -0,0 +1,25 @@ +#include <stdio.h> +#include <assert.h> + +int main () +{ +int rd, rs, rt, dsp; +int result, resultdsp; + + rs =0x80001234 ; + rt =0x80004321 ; + result =0xFFFF0000 ; + resultdsp =1 ; + + __asm + ("muleu_s.ph.qbl %0, %2, %3\n\t" +"rddsp %1\n\t" + :"=r" (rd),"=r" (dsp) + :"r" (rs),"r" (rt) + ); + dsp = (dsp >>21 ) &0x01 ; +assert (rd == result); +assert (dsp == resultdsp); + +return 0 ; +}
tests/tcg/mips/mips32-dsp/muleu_s_ph_qbr.c new file +25 -0
@@ -0,0 +1,25 @@ +#include <stdio.h> +#include <assert.h> + +int main () +{ +int rd, rs, rt, dsp; +int result, resultdsp; + + rs =0x8000 ; + rt =0x80004321 ; + result =0xFFFF0000 ; + resultdsp =1 ; + + __asm + ("muleu_s.ph.qbr %0, %2, %3\n\t" +"rddsp %1\n\t" + :"=r" (rd),"=r" (dsp) + :"r" (rs),"r" (rt) + ); + dsp = (dsp >>21 ) &0x01 ; +assert (rd == result); +assert (dsp == resultdsp); + +return 0 ; +}
tests/tcg/mips/mips32-dsp/mulq_rs_ph.c new file +25 -0
@@ -0,0 +1,25 @@ +#include <stdio.h> +#include <assert.h> + +int main () +{ +int rd, rs, rt, dsp; +int result, resultdsp; + + rs =0x80001234 ; + rt =0x80004321 ; + result =0x7FFF098C ; + resultdsp =1 ; + + __asm + ("mulq_rs.ph %0, %2, %3\n\t" +"rddsp %1\n\t" + :"=r" (rd),"=r" (dsp) + :"r" (rs),"r" (rt) + ); + dsp = (dsp >>21 ) &0x01 ; +assert (rd == result); +assert (dsp == resultdsp); + +return 0 ; +}
tests/tcg/mips/mips32-dsp/mult.c new file +24 -0
@@ -0,0 +1,24 @@ +#include <stdio.h> +#include <assert.h> + +int main () +{ +int rs, rt, ach, acl; +int result, resulth, resultl; + + rs =0x00FFBBAA ; + rt =0x4B231000 ; + resulth =0x4b0f01 ; + resultl =0x71f8a000 ; + __asm + ("mult $ac1, %2, %3\n\t" +"mfhi %0, $ac1\n\t" +"mflo %1, $ac1\n\t" + :"=r" (ach),"=r" (acl) + :"r" (rs),"r" (rt) + ); +assert (ach == resulth); +assert (acl == resultl); + +return 0 ; +}
tests/tcg/mips/mips32-dsp/multu.c new file +24 -0
@@ -0,0 +1,24 @@ +#include <stdio.h> +#include <assert.h> + +int main () +{ +int rs, rt, ach, acl; +int result, resulth, resultl; + + rs =0x00FFBBAA ; + rt =0x4B231000 ; + resulth =0x4b0f01 ; + resultl =0x71f8a000 ; + __asm + ("mult $ac1, %2, %3\n\t" +"mfhi %0, $ac1\n\t" +"mflo %1, $ac1\n\t" + :"=r" (ach),"=r" (acl) + :"r" (rs),"r" (rt) + ); +assert (ach == resulth); +assert (acl == resultl); + +return 0 ; +}
tests/tcg/mips/mips32-dsp/packrl_ph.c new file +21 -0
@@ -0,0 +1,21 @@ +#include <stdio.h> +#include <assert.h> + +int main () +{ +int rd, rs, rt; +int result; + + rs =0x12345678 ; + rt =0x87654321 ; + result =0x56788765 ; + + __asm + ("packrl.ph %0, %1, %2\n\t" + :"=r" (rd) + :"r" (rs),"r" (rt) + ); +assert (result == rd); + +return 0 ; +}
tests/tcg/mips/mips32-dsp/pick_ph.c new file +23 -0
@@ -0,0 +1,23 @@ +#include <stdio.h> +#include <assert.h> + +int main () +{ +int rd, rs, rt, dsp; +int result; + + rs =0x12345678 ; + rt =0x87654321 ; + dsp =0x0A000000 ; + result =0x12344321 ; + + __asm + ("wrdsp %3, 0x10\n\t" +"pick.ph %0, %1, %2\n\t" + :"=r" (rd) + :"r" (rs),"r" (rt),"r" (dsp) + ); +assert (rd == result); + +return 0 ; +}
tests/tcg/mips/mips32-dsp/pick_qb.c new file +23 -0
@@ -0,0 +1,23 @@ +#include <stdio.h> +#include <assert.h> + +int main () +{ +int rd, rs, rt, dsp; +int result; + + rs =0x12345678 ; + rt =0x87654321 ; + dsp =0x0A000000 ; + result =0x12655621 ; + + __asm + ("wrdsp %3, 0x10\n\t" +"pick.qb %0, %1, %2\n\t" + :"=r" (rd) + :"r" (rs),"r" (rt),"r" (dsp) + ); +assert (rd == result); + +return 0 ; +}
tests/tcg/mips/mips32-dsp/preceq_w_phl.c new file +20 -0
@@ -0,0 +1,20 @@ +#include <stdio.h> +#include <assert.h> + +int main () +{ +int rd, rt; +int result; + + rt =0x87654321 ; + result =0x87650000 ; + + __asm + ("preceq.w.phl %0, %1\n\t" + :"=r" (rd) + :"r" (rt) + ); +assert (result == rd); + +return 0 ; +}
tests/tcg/mips/mips32-dsp/preceq_w_phr.c new file +20 -0
@@ -0,0 +1,20 @@ +#include <stdio.h> +#include <assert.h> + +int main () +{ +int rd, rt; +int result; + + rt =0x87654321 ; + result =0x43210000 ; + + __asm + ("preceq.w.phr %0, %1\n\t" + :"=r" (rd) + :"r" (rt) + ); +assert (result == rd); + +return 0 ; +}
tests/tcg/mips/mips32-dsp/precequ_ph_qbl.c new file +20 -0
@@ -0,0 +1,20 @@ +#include <stdio.h> +#include <assert.h> + +int main () +{ +int rd, rt; +int result; + + rt =0x87654321 ; + result =0x43803280 ; + + __asm + ("precequ.ph.qbl %0, %1\n\t" + :"=r" (rd) + :"r" (rt) + ); +assert (result == rd); + +return 0 ; +}
tests/tcg/mips/mips32-dsp/precequ_ph_qbla.c new file +20 -0
@@ -0,0 +1,20 @@ +#include <stdio.h> +#include <assert.h> + +int main () +{ +int rd, rt; +int result; + + rt =0x87654321 ; + result =0x43802180 ; + + __asm + ("precequ.ph.qbla %0, %1\n\t" + :"=r" (rd) + :"r" (rt) + ); +assert (result == rd); + +return 0 ; +}
tests/tcg/mips/mips32-dsp/precequ_ph_qbr.c new file +20 -0
@@ -0,0 +1,20 @@ +#include <stdio.h> +#include <assert.h> + +int main () +{ +int rd, rt; +int result; + + rt =0x87654321 ; + result =0x21801080 ; + + __asm + ("precequ.ph.qbr %0, %1\n\t" + :"=r" (rd) + :"r" (rt) + ); +assert (result == rd); + +return 0 ; +}
tests/tcg/mips/mips32-dsp/precequ_ph_qbra.c new file +20 -0
@@ -0,0 +1,20 @@ +#include <stdio.h> +#include <assert.h> + +int main () +{ +int rd, rt; +int result; + + rt =0x87654321 ; + result =0x32801080 ; + + __asm + ("precequ.ph.qbra %0, %1\n\t" + :"=r" (rd) + :"r" (rt) + ); +assert (result == rd); + +return 0 ; +}
tests/tcg/mips/mips32-dsp/preceu_ph_qbl.c new file +20 -0
@@ -0,0 +1,20 @@ +#include <stdio.h> +#include <assert.h> + +int main () +{ +int rd, rt; +int result; + + rt =0x87654321 ; + result =0x00870065 ; + + __asm + ("preceu.ph.qbl %0, %1\n\t" + :"=r" (rd) + :"r" (rt) + ); +assert (result == rd); + +return 0 ; +}
tests/tcg/mips/mips32-dsp/preceu_ph_qbla.c new file +20 -0
@@ -0,0 +1,20 @@ +#include <stdio.h> +#include <assert.h> + +int main () +{ +int rd, rt; +int result; + + rt =0x87654321 ; + result =0x00870043 ; + + __asm + ("preceu.ph.qbla %0, %1\n\t" + :"=r" (rd) + :"r" (rt) + ); +assert (result == rd); + +return 0 ; +}
tests/tcg/mips/mips32-dsp/preceu_ph_qbr.c new file +20 -0
@@ -0,0 +1,20 @@ +#include <stdio.h> +#include <assert.h> + +int main () +{ +int rd, rt; +int result; + + rt =0x87654321 ; + result =0x00430021 ; + + __asm + ("preceu.ph.qbr %0, %1\n\t" + :"=r" (rd) + :"r" (rt) + ); +assert (result == rd); + +return 0 ; +}
tests/tcg/mips/mips32-dsp/preceu_ph_qbra.c new file +20 -0
@@ -0,0 +1,20 @@ +#include <stdio.h> +#include <assert.h> + +int main () +{ +int rd, rt; +int result; + + rt =0x87654321 ; + result =0x00650021 ; + + __asm + ("preceu.ph.qbra %0, %1\n\t" + :"=r" (rd) + :"r" (rt) + ); +assert (result == rd); + +return 0 ; +}
tests/tcg/mips/mips32-dsp/precrq_ph_w.c new file +21 -0
@@ -0,0 +1,21 @@ +#include <stdio.h> +#include <assert.h> + +int main () +{ +int rd, rs, rt; +int result; + + rs =0x12345678 ; + rt =0x87654321 ; + result =0x12348765 ; + + __asm + ("precrq.ph.w %0, %1, %2\n\t" + :"=r" (rd) + :"r" (rs),"r" (rt) + ); +assert (result == rd); + +return 0 ; +}
tests/tcg/mips/mips32-dsp/precrq_qb_ph.c new file +21 -0
@@ -0,0 +1,21 @@ +#include <stdio.h> +#include <assert.h> + +int main () +{ +int rd, rs, rt; +int result; + + rs =0x12345678 ; + rt =0x87654321 ; + result =0x12568743 ; + + __asm + ("precrq.qb.ph %0, %1, %2\n\t" + :"=r" (rd) + :"r" (rs),"r" (rt) + ); +assert (result == rd); + +return 0 ; +}
tests/tcg/mips/mips32-dsp/precrq_rs_ph_w.c new file +21 -0
@@ -0,0 +1,21 @@ +#include <stdio.h> +#include <assert.h> + +int main () +{ +int rd, rs, rt; +int result; + + rs =0x12345678 ; + rt =0x87654321 ; + result =0x12348765 ; + + __asm + ("precrq_rs.ph.w %0, %1, %2\n\t" + :"=r" (rd) + :"r" (rs),"r" (rt) + ); +assert (result == rd); + +return 0 ; +}
tests/tcg/mips/mips32-dsp/precrqu_s_qb_ph.c new file +21 -0
@@ -0,0 +1,21 @@ +#include <stdio.h> +#include <assert.h> + +int main () +{ +int rd, rs, rt; +int result; + + rs =0x12345678 ; + rt =0x87654321 ; + result =0x24AC0086 ; + + __asm + ("precrqu_s.qb.ph %0, %1, %2\n\t" + :"=r" (rd) + :"r" (rs),"r" (rt) + ); +assert (result == rd); + +return 0 ; +}
tests/tcg/mips/mips32-dsp/raddu_w_qb.c new file +20 -0
@@ -0,0 +1,20 @@ +#include <stdio.h> +#include <assert.h> + +int main () +{ +int rd, rs; +int result; + + rs =0x12345678 ; + result =0x114 ; + + __asm + ("raddu.w.qb %0, %1\n\t" + :"=r" (rd) + :"r" (rs) + ); +assert (rd == result); + +return 0 ; +}
tests/tcg/mips/mips32-dsp/rddsp.c new file +54 -0
54 lines not on this page · raw message
tests/tcg/mips/mips32-dsp/repl_ph.c new file +23 -0
@@ -0,0 +1,23 @@ +#include <stdio.h> +#include <assert.h> + +int main () +{ +int rd, result; + + result =0x01BF01BF ; + __asm + ("repl.ph %0, 0x1BF\n\t" + :"=r" (rd) + ); +assert (rd == result); + + result =0x01FF01FF ; + __asm + ("repl.ph %0, 0x01FF\n\t" + :"=r" (rd) + ); +assert (rd == result); + +return 0 ; +}
tests/tcg/mips/mips32-dsp/repl_qb.c new file +16 -0
@@ -0,0 +1,16 @@ +#include <stdio.h> +#include <assert.h> + +int main () +{ +int rd, result; + + result =0xBFBFBFBF ; + __asm + ("repl.qb %0, 0xBF\n\t" + :"=r" (rd) + ); +assert (rd == result); + +return 0 ; +}
tests/tcg/mips/mips32-dsp/replv_ph.c new file +19 -0
@@ -0,0 +1,19 @@ +#include <stdio.h> +#include <assert.h> + +int main () +{ +int rd, rt; +int result; + + rt =0x12345678 ; + result =0x56785678 ; + __asm + ("replv.ph %0, %1\n\t" + :"=r" (rd) + :"r" (rt) + ); +assert (rd == result); + +return 0 ; +}
tests/tcg/mips/mips32-dsp/replv_qb.c new file +19 -0
@@ -0,0 +1,19 @@ +#include <stdio.h> +#include <assert.h> + +int main () +{ +int rd, rt; +int result; + + rt =0x12345678 ; + result =0x78787878 ; + __asm + ("replv.qb %0, %1\n\t" + :"=r" (rd) + :"r" (rt) + ); +assert (rd == result); + +return 0 ; +}
tests/tcg/mips/mips32-dsp/shilo.c new file +27 -0
@@ -0,0 +1,27 @@ +#include <stdio.h> +#include <assert.h> + +int main () +{ +int ach, acl; +int resulth, resultl; + + ach =0xBBAACCFF ; + acl =0x1C3B001D ; + + resulth =0x17755 ; + resultl =0x99fe3876 ; + + __asm + ("mthi %0, $ac1\n\t" +"mtlo %1, $ac1\n\t" +"shilo $ac1, 0x0F\n\t" +"mfhi %0, $ac1\n\t" +"mflo %1, $ac1\n\t" + :"+r" (ach),"+r" (acl) + ); +assert (ach == resulth); +assert (acl == resultl); + +return 0 ; +}
tests/tcg/mips/mips32-dsp/shilov.c new file +29 -0
@@ -0,0 +1,29 @@ +#include <stdio.h> +#include <assert.h> + +int main () +{ +int rs, ach, acl; +int resulth, resultl; + + rs =0x0F ; + ach =0xBBAACCFF ; + acl =0x1C3B001D ; + + resulth =0x17755 ; + resultl =0x99fe3876 ; + + __asm + ("mthi %0, $ac1\n\t" +"mtlo %1, $ac1\n\t" +"shilov $ac1, %2\n\t" +"mfhi %0, $ac1\n\t" +"mflo %1, $ac1\n\t" + :"+r" (ach),"+r" (acl) + :"r" (rs) + ); +assert (ach == resulth); +assert (acl == resultl); + +return 0 ; +}
tests/tcg/mips/mips32-dsp/shll_ph.c new file +24 -0
@@ -0,0 +1,24 @@ +#include <stdio.h> +#include <assert.h> + +int main () +{ +int rd, rt, dsp; +int result, resultdsp; + + rt =0x12345678 ; + result =0xA000C000 ; + resultdsp =1 ; + + __asm + ("shll.ph %0, %2, 0x0B\n\t" +"rddsp %1\n\t" + :"=r" (rd),"=r" (dsp) + :"r" (rt) + ); + dsp = (dsp >>22 ) &0x01 ; +assert (dsp == resultdsp); +assert (rd == result); + +return 0 ; +}
tests/tcg/mips/mips32-dsp/shll_qb.c new file +23 -0
@@ -0,0 +1,23 @@ +#include <stdio.h> +#include <assert.h> + +int main () +{ +int rd, rt, dsp; +int result, resultdsp; + + rt =0x87654321 ; + result =0x38281808 ; + resultdsp =0x01 ; + + __asm + ("shll.qb %0, %2, 0x03\n\t" +"rddsp %1\n\t" + :"=r" (rd),"=r" (dsp) + :"r" (rt) + ); + dsp = (dsp >>22 ) &0x01 ; +assert (rd == result); + +return 0 ; +}
tests/tcg/mips/mips32-dsp/shll_s_ph.c new file +24 -0
@@ -0,0 +1,24 @@ +#include <stdio.h> +#include <assert.h> + +int main () +{ +int rd, rt, dsp; +int result, resultdsp; + + rt =0x12345678 ; + result =0x7FFF7FFF ; + resultdsp =0x01 ; + + __asm + ("shll_s.ph %0, %2, 0x0B\n\t" +"rddsp %1\n\t" + :"=r" (rd),"=r" (dsp) + :"r" (rt) + ); + dsp = (dsp >>22 ) &0x01 ; +assert (dsp == resultdsp); +assert (rd == result); + +return 0 ; +}
tests/tcg/mips/mips32-dsp/shll_s_w.c new file +24 -0
@@ -0,0 +1,24 @@ +#include <stdio.h> +#include <assert.h> + +int main () +{ +int rd, rt, dsp; +int result, resultdsp; + + rt =0x12345678 ; + result =0x7FFFFFFF ; + resultdsp =0x01 ; + + __asm + ("shll_s.w %0, %2, 0x0B\n\t" +"rddsp %1\n\t" + :"=r" (rd),"=r" (dsp) + :"r" (rt) + ); + dsp = (dsp >>22 ) &0x01 ; +assert (dsp == resultdsp); +assert (rd == result); + +return 0 ; +}
tests/tcg/mips/mips32-dsp/shllv_ph.c new file +25 -0
@@ -0,0 +1,25 @@ +#include <stdio.h> +#include <assert.h> + +int main () +{ +int rd, rs, rt, dsp; +int result, resultdsp; + + rs =0x0B ; + rt =0x12345678 ; + result =0xA000C000 ; + resultdsp =1 ; + + __asm + ("shllv.ph %0, %2, %3\n\t" +"rddsp %1\n\t" + :"=r" (rd),"=r" (dsp) + :"r" (rt),"r" (rs) + ); + dsp = (dsp >>22 ) &0x01 ; +assert (dsp == resultdsp); +assert (rd == result); + +return 0 ; +}
tests/tcg/mips/mips32-dsp/shllv_qb.c new file +24 -0
@@ -0,0 +1,24 @@ +#include <stdio.h> +#include <assert.h> + +int main () +{ +int rd, rs, rt, dsp; +int result, resultdsp; + + rs =0x03 ; + rt =0x87654321 ; + result =0x38281808 ; + resultdsp =0x01 ; + + __asm + ("shllv.qb %0, %2, %3\n\t" +"rddsp %1\n\t" + :"=r" (rd),"=r" (dsp) + :"r" (rt),"r" (rs) + ); + dsp = (dsp >>22 ) &0x01 ; +assert (rd == result); + +return 0 ; +}
tests/tcg/mips/mips32-dsp/shllv_s_ph.c new file +25 -0
@@ -0,0 +1,25 @@ +#include <stdio.h> +#include <assert.h> + +int main () +{ +int rd, rs, rt, dsp; +int result, resultdsp; + + rs =0x0B ; + rt =0x12345678 ; + result =0x7FFF7FFF ; + resultdsp =0x01 ; + + __asm + ("shllv_s.ph %0, %2, %3\n\t" +"rddsp %1\n\t" + :"=r" (rd),"=r" (dsp) + :"r" (rt),"r" (rs) + ); + dsp = (dsp >>22 ) &0x01 ; +assert (dsp == resultdsp); +assert (rd == result); + +return 0 ; +}
tests/tcg/mips/mips32-dsp/shllv_s_w.c new file +25 -0
@@ -0,0 +1,25 @@ +#include <stdio.h> +#include <assert.h> + +int main () +{ +int rd, rs, rt, dsp; +int result, resultdsp; + + rs =0x0B ; + rt =0x12345678 ; + result =0x7FFFFFFF ; + resultdsp =0x01 ; + + __asm + ("shllv_s.w %0, %2, %3\n\t" +"rddsp %1\n\t" + :"=r" (rd),"=r" (dsp) + :"r" (rt),"r" (rs) + ); + dsp = (dsp >>22 ) &0x01 ; +assert (dsp == resultdsp); +assert (rd == result); + +return 0 ; +}
tests/tcg/mips/mips32-dsp/shra_ph.c new file +20 -0
@@ -0,0 +1,20 @@ +#include <stdio.h> +#include <assert.h> + +int main () +{ +int rd, rt; +int result; + + rt =0x87654321 ; + result =0xF0EC0864 ; + + __asm + ("shra.ph %0, %1, 0x03\n\t" + :"=r" (rd) + :"r" (rt) + ); +assert (rd == result); + +return 0 ; +}
tests/tcg/mips/mips32-dsp/shra_r_ph.c new file +20 -0
@@ -0,0 +1,20 @@ +#include <stdio.h> +#include <assert.h> + +int main () +{ +int rd, rt; +int result; + + rt =0x87654321 ; + result =0xF0ED0864 ; + + __asm + ("shra_r.ph %0, %1, 0x03\n\t" + :"=r" (rd) + :"r" (rt) + ); +assert (rd == result); + +return 0 ; +}
tests/tcg/mips/mips32-dsp/shra_r_w.c new file +20 -0
@@ -0,0 +1,20 @@ +#include <stdio.h> +#include <assert.h> + +int main () +{ +int rd, rt; +int result; + + rt =0x87654321 ; + result =0xF0ECA864 ; + + __asm + ("shra_r.w %0, %1, 0x03\n\t" + :"=r" (rd) + :"r" (rt) + ); +assert (rd == result); + +return 0 ; +}
tests/tcg/mips/mips32-dsp/shrav_ph.c new file +21 -0
@@ -0,0 +1,21 @@ +#include <stdio.h> +#include <assert.h> + +int main () +{ +int rd, rs, rt; +int result; + + rs =0x03 ; + rt =0x87654321 ; + result =0xF0EC0864 ; + + __asm + ("shrav.ph %0, %1, %2\n\t" + :"=r" (rd) + :"r" (rt),"r" (rs) + ); +assert (rd == result); + +return 0 ; +}
tests/tcg/mips/mips32-dsp/shrav_r_ph.c new file +21 -0
@@ -0,0 +1,21 @@ +#include <stdio.h> +#include <assert.h> + +int main () +{ +int rd, rs, rt; +int result; + + rs =0x03 ; + rt =0x87654321 ; + result =0xF0ED0864 ; + + __asm + ("shrav_r.ph %0, %1, %2\n\t" + :"=r" (rd) + :"r" (rt),"r" (rs) + ); +assert (rd == result); + +return 0 ; +}
tests/tcg/mips/mips32-dsp/shrav_r_w.c new file +21 -0
@@ -0,0 +1,21 @@ +#include <stdio.h> +#include <assert.h> + +int main () +{ +int rd, rs, rt; +int result; + + rs =0x03 ; + rt =0x87654321 ; + result =0xF0ECA864 ; + + __asm + ("shrav_r.w %0, %1, %2\n\t" + :"=r" (rd) + :"r" (rt),"r" (rs) + ); +assert (rd == result); + +return 0 ; +}
tests/tcg/mips/mips32-dsp/shrl_qb.c new file +20 -0
@@ -0,0 +1,20 @@ +#include <stdio.h> +#include <assert.h> + +int main () +{ +int rd, rt; +int result; + + rt =0x12345678 ; + result =0x00010203 ; + + __asm + ("shrl.qb %0, %1, 0x05\n\t" + :"=r" (rd) + :"r" (rt) + ); +assert (rd == result); + +return 0 ; +}
tests/tcg/mips/mips32-dsp/shrlv_qb.c new file +21 -0
@@ -0,0 +1,21 @@ +#include <stdio.h> +#include <assert.h> + +int main () +{ +int rd, rs, rt; +int result; + + rs =0x05 ; + rt =0x12345678 ; + result =0x00010203 ; + + __asm + ("shrlv.qb %0, %1, %2\n\t" + :"=r" (rd) + :"r" (rt),"r" (rs) + ); +assert (rd == result); + +return 0 ; +}
tests/tcg/mips/mips32-dsp/subq_ph.c new file +25 -0
@@ -0,0 +1,25 @@ +#include <stdio.h> +#include <assert.h> + +int main () +{ +int rd, rs, rt, dsp; +int result, resultdsp; + + rs =0x12345678 ; + rt =0x87654321 ; + result =0x8ACF1357 ; + resultdsp =0x01 ; + + __asm + ("subq.ph %0, %2, %3\n\t" +"rddsp %1\n\t" + :"=r" (rd),"=r" (dsp) + :"r" (rs),"r" (rt) + ); + dsp = (dsp >>20 ) &0x01 ; +assert (dsp == resultdsp); +assert (rd == result); + +return 0 ; +}
tests/tcg/mips/mips32-dsp/subq_s_ph.c new file +25 -0
@@ -0,0 +1,25 @@ +#include <stdio.h> +#include <assert.h> + +int main () +{ +int rd, rs, rt, dsp; +int result, resultdsp; + + rs =0x12345678 ; + rt =0x87654321 ; + result =0x7FFF1357 ; + resultdsp =0x01 ; + + __asm + ("subq_s.ph %0, %2, %3\n\t" +"rddsp %1\n\t" + :"=r" (rd),"=r" (dsp) + :"r" (rs),"r" (rt) + ); + dsp = (dsp >>20 ) &0x01 ; +assert (dsp == resultdsp); +assert (rd == result); +
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips32-dsp/subq_s_w.c new file +25 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips32-dsp/subu_qb.c new file +25 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips32-dsp/subu_s_qb.c new file +25 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips32-dsp/wrdsp.c new file +54 -0
54 lines not on this page · raw message
tests/tcg/mips/mips32-dspr2/Makefile new file +72 -0
72 lines not on this page · raw message
tests/tcg/mips/mips32-dspr2/absq_s_qb.c new file +35 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips32-dspr2/addqh_ph.c new file +30 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips32-dspr2/addqh_r_ph.c new file +30 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips32-dspr2/addqh_r_w.c new file +34 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips32-dspr2/addqh_w.c new file +34 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips32-dspr2/addu_ph.c new file +30 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips32-dspr2/addu_s_ph.c new file +30 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips32-dspr2/adduh_qb.c new file +30 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips32-dspr2/adduh_r_qb.c new file +30 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips32-dspr2/append.c new file +30 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips32-dspr2/balign.c new file +30 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips32-dspr2/cmpgdu_eq_qb.c new file +37 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips32-dspr2/cmpgdu_le_qb.c new file +37 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips32-dspr2/cmpgdu_lt_qb.c new file +37 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips32-dspr2/dpa_w_ph.c new file +27 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips32-dspr2/dpaqx_s_w_ph.c new file +57 -0
57 lines not on this page · raw message
tests/tcg/mips/mips32-dspr2/dpaqx_sa_w_ph.c new file +31 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips32-dspr2/dpax_w_ph.c new file +27 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips32-dspr2/dps_w_ph.c new file +27 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips32-dspr2/dpsqx_s_w_ph.c new file +31 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips32-dspr2/dpsqx_sa_w_ph.c new file +31 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips32-dspr2/dpsx_w_ph.c new file +27 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips32-dspr2/mul_ph.c new file +25 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips32-dspr2/mul_s_ph.c new file +25 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips32-dspr2/muleq_s_w_phl.c new file +40 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips32-dspr2/mulq_rs_w.c new file +36 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips32-dspr2/mulq_s_ph.c new file +25 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips32-dspr2/mulq_s_w.c new file +36 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips32-dspr2/mulsa_w_ph.c new file +29 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips32-dspr2/mulsaq_s_w_ph.c new file +29 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips32-dspr2/precr_qb_ph.c new file +21 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips32-dspr2/precr_sra_ph_w.c new file +32 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips32-dspr2/precr_sra_r_ph_w.c new file +32 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips32-dspr2/prepend.c new file +30 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips32-dspr2/shra_qb.c new file +30 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips32-dspr2/shra_r_qb.c new file +30 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips32-dspr2/shrav_qb.c new file +32 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips32-dspr2/shrav_r_qb.c new file +32 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips32-dspr2/shrl_ph.c new file +20 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips32-dspr2/shrlv_ph.c new file +21 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips32-dspr2/subqh_ph.c new file +21 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips32-dspr2/subqh_r_ph.c new file +21 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips32-dspr2/subqh_r_w.c new file +21 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips32-dspr2/subqh_w.c new file +21 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips32-dspr2/subu_ph.c new file +25 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips32-dspr2/subu_s_ph.c new file +25 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips32-dspr2/subuh_qb.c new file +21 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips32-dspr2/subuh_r_qb.c new file +21 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/Makefile new file +304 -0
304 lines not on this page · raw message
tests/tcg/mips/mips64-dsp/absq_s_ob.c new file +63 -0
63 lines not on this page · raw message
tests/tcg/mips/mips64-dsp/absq_s_ph.c new file +37 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/absq_s_pw.c new file +66 -0
66 lines not on this page · raw message
tests/tcg/mips/mips64-dsp/absq_s_qh.c new file +40 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/absq_s_w.c new file +48 -0
48 lines not on this page · raw message
tests/tcg/mips/mips64-dsp/addq_ph.c new file +37 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/addq_pw.c new file +26 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/addq_qh.c new file +28 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/addq_s_ph.c new file +37 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/addq_s_pw.c new file +45 -0
45 lines not on this page · raw message
tests/tcg/mips/mips64-dsp/addq_s_qh.c new file +26 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/addsc.c new file +37 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/addu_ob.c new file +27 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/addu_qb.c new file +37 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/addu_s_ob.c new file +27 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/addu_s_qb.c new file +38 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/addwc.c new file +37 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/bitrev.c new file +23 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/bposge32.c new file +50 -0
50 lines not on this page · raw message
tests/tcg/mips/mips64-dsp/bposge64.c new file +50 -0
50 lines not on this page · raw message
tests/tcg/mips/mips64-dsp/cmp_eq_ph.c new file +42 -0
42 lines not on this page · raw message
tests/tcg/mips/mips64-dsp/cmp_eq_pw.c new file +27 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/cmp_eq_qh.c new file +27 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/cmp_le_ph.c new file +40 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/cmp_le_pw.c new file +27 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/cmp_le_qh.c new file +27 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/cmp_lt_ph.c new file +41 -0
41 lines not on this page · raw message
tests/tcg/mips/mips64-dsp/cmp_lt_pw.c new file +27 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/cmp_lt_qh.c new file +27 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/cmpgu_eq_ob.c new file +24 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/cmpgu_eq_qb.c new file +38 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/cmpgu_le_ob.c new file +24 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/cmpgu_le_qb.c new file +37 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/cmpgu_lt_ob.c new file +24 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/cmpgu_lt_qb.c new file +38 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/cmpu_eq_ob.c new file +27 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/cmpu_eq_qb.c new file +42 -0
42 lines not on this page · raw message
tests/tcg/mips/mips64-dsp/cmpu_le_ob.c new file +26 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/cmpu_le_qb.c new file +41 -0
41 lines not on this page · raw message
tests/tcg/mips/mips64-dsp/cmpu_lt_ob.c new file +26 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/cmpu_lt_qb.c new file +42 -0
42 lines not on this page · raw message
tests/tcg/mips/mips64-dsp/dappend.c new file +37 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/dextp.c new file +33 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/dextpdp.c new file +37 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/dextpdpv.c new file +38 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/dextpv.c new file +34 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/dextr_l.c new file +27 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/dextr_r_l.c new file +32 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/dextr_r_w.c new file +32 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/dextr_rs_l.c new file +31 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/dextr_rs_w.c new file +31 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/dextr_s_h.c new file +31 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/dextr_w.c new file +27 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/dextrv_l.c new file +28 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/dextrv_r_l.c new file +33 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/dextrv_r_w.c new file +33 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/dextrv_rs_l.c new file +32 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/dextrv_rs_w.c new file +32 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/dextrv_s_h.c new file +32 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/dextrv_w.c new file +28 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/dinsv.c new file +25 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/dmadd.c new file +57 -0
57 lines not on this page · raw message
tests/tcg/mips/mips64-dsp/dmaddu.c new file +56 -0
56 lines not on this page · raw message
tests/tcg/mips/mips64-dsp/dmsub.c new file +59 -0
59 lines not on this page · raw message
tests/tcg/mips/mips64-dsp/dmsubu.c new file +59 -0
59 lines not on this page · raw message
tests/tcg/mips/mips64-dsp/dmthlip.c new file +32 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/dpaq_s_w_ph.c new file +32 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/dpaq_s_w_qh.c new file +57 -0
57 lines not on this page · raw message
tests/tcg/mips/mips64-dsp/dpaq_sa_l_pw.c new file +62 -0
62 lines not on this page · raw message
tests/tcg/mips/mips64-dsp/dpaq_sa_l_w.c new file +32 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/dpau_h_obl.c new file +59 -0
59 lines not on this page · raw message
tests/tcg/mips/mips64-dsp/dpau_h_obr.c new file +59 -0
59 lines not on this page · raw message
tests/tcg/mips/mips64-dsp/dpau_h_qbl.c new file +29 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/dpau_h_qbr.c new file +29 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/dpsq_s_w_ph.c new file +29 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/dpsq_s_w_qh.c new file +33 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/dpsq_sa_l_pw.c new file +39 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/dpsq_sa_l_w.c new file +32 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/dpsu_h_obl.c new file +32 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/dpsu_h_obr.c new file +32 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/dpsu_h_qbl.c new file +29 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/dpsu_h_qbr.c new file +29 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/dshilo.c new file +31 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/dshilov.c new file +32 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/extp.c new file +50 -0
50 lines not on this page · raw message
tests/tcg/mips/mips64-dsp/extpdp.c new file +51 -0
51 lines not on this page · raw message
tests/tcg/mips/mips64-dsp/extpdpv.c new file +52 -0
52 lines not on this page · raw message
tests/tcg/mips/mips64-dsp/extpv.c new file +51 -0
51 lines not on this page · raw message
tests/tcg/mips/mips64-dsp/extr_r_w.c new file +27 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/extr_rs_w.c new file +27 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/extr_s_h.c new file +27 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/extr_w.c new file +27 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/extrv_r_w.c new file +31 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/extrv_rs_w.c new file +31 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/extrv_s_h.c new file +31 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/extrv_w.c new file +31 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/head.S new file +16 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/insv.c new file +26 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/io.h new file +22 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/lbux.c new file +27 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/ldx.c new file +27 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/lhx.c new file +27 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/lwx.c new file +27 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/madd.c new file +33 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/maddu.c new file +33 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/maq_s_l_pwl.c new file +56 -0
56 lines not on this page · raw message
tests/tcg/mips/mips64-dsp/maq_s_l_pwr.c new file +56 -0
56 lines not on this page · raw message
tests/tcg/mips/mips64-dsp/maq_s_w_phl.c new file +33 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/maq_s_w_phr.c new file +33 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/maq_s_w_qhll.c new file +62 -0
62 lines not on this page · raw message
tests/tcg/mips/mips64-dsp/maq_s_w_qhlr.c new file +62 -0
62 lines not on this page · raw message
tests/tcg/mips/mips64-dsp/maq_s_w_qhrl.c new file +63 -0
63 lines not on this page · raw message
tests/tcg/mips/mips64-dsp/maq_s_w_qhrr.c new file +63 -0
63 lines not on this page · raw message
tests/tcg/mips/mips64-dsp/maq_sa_w_phl.c new file +33 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/maq_sa_w_phr.c new file +33 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/maq_sa_w_qhll.c new file +62 -0
62 lines not on this page · raw message
tests/tcg/mips/mips64-dsp/maq_sa_w_qhlr.c new file +64 -0
64 lines not on this page · raw message
tests/tcg/mips/mips64-dsp/maq_sa_w_qhrl.c new file +64 -0
64 lines not on this page · raw message
tests/tcg/mips/mips64-dsp/maq_sa_w_qhrr.c new file +64 -0
64 lines not on this page · raw message
tests/tcg/mips/mips64-dsp/mfhi.c new file +24 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/mflo.c new file +24 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/mips_boot.lds new file +31 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/modsub.c new file +37 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/msub.c new file +32 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/msubu.c new file +32 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/mthi.c new file +24 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/mthlip.c new file +35 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/mtlo.c new file +22 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/muleq_s_pw_qhl.c new file +55 -0
55 lines not on this page · raw message
tests/tcg/mips/mips64-dsp/muleq_s_pw_qhr.c new file +24 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/muleq_s_w_phr.c new file +45 -0
45 lines not on this page · raw message
tests/tcg/mips/mips64-dsp/muleu_s_ph_qbl.c new file +27 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/muleu_s_ph_qbr.c new file +27 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/muleu_s_qh_obl.c new file +25 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/muleu_s_qh_obr.c new file +25 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/mulq_rs_ph.c new file +27 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/mulq_rs_qh.c new file +33 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/mulsaq_s_l_pw.c new file +59 -0
59 lines not on this page · raw message
tests/tcg/mips/mips64-dsp/mulsaq_s_w_qh.c new file +57 -0
57 lines not on this page · raw message
tests/tcg/mips/mips64-dsp/mult.c new file +26 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/multu.c new file +26 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/packrl_ph.c new file +24 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/packrl_pw.c new file +24 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/pick_ob.c new file +27 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/pick_ph.c new file +26 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/pick_pw.c new file +28 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/pick_qb.c new file +26 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/pick_qh.c new file +28 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/preceq_l_pwl.c new file +24 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/preceq_l_pwr.c new file +24 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/preceq_pw_qhl.c new file +21 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/preceq_pw_qhla.c new file +23 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/preceq_pw_qhr.c new file +21 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/preceq_pw_qhra.c new file +23 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/preceq_w_phl.c new file +23 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/preceq_w_phr.c new file +23 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/precequ_ph_qbl.c new file +23 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/precequ_ph_qbla.c new file +23 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/precequ_ph_qbr.c new file +23 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/precequ_ph_qbra.c new file +23 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/precequ_qh_obl.c new file +22 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/precequ_qh_obla.c new file +22 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/precequ_qh_obr.c new file +24 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/precequ_qh_obra.c new file +24 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/preceu_ph_qbl.c new file +23 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/preceu_ph_qbla.c new file +23 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/preceu_ph_qbr.c new file +23 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/preceu_ph_qbra.c new file +23 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/preceu_qh_obl.c new file +22 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/preceu_qh_obla.c new file +22 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/preceu_qh_obr.c new file +23 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/preceu_qh_obra.c new file +23 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/precr_ob_qh.c new file +25 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/precr_sra_qh_pw.c new file +40 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/precr_sra_r_qh_pw.c new file +40 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/precrq_ob_qh.c new file +25 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/precrq_ph_w.c new file +24 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/precrq_pw_l.c new file +25 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/precrq_qb_ph.c new file +24 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/precrq_qh_pw.c new file +25 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/precrq_rs_ph_w.c new file +24 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/precrq_rs_qh_pw.c new file +25 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/precrqu_s_ob_qh.c new file +27 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/precrqu_s_qb_ph.c new file +24 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/prependd.c new file +37 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/prependw.c new file +37 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/printf.c new file +266 -0
266 lines not on this page · raw message
tests/tcg/mips/mips64-dsp/raddu_l_ob.c new file +22 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/raddu_w_qb.c new file +23 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/rddsp.c new file +53 -0
53 lines not on this page · raw message
tests/tcg/mips/mips64-dsp/repl_ob.c new file +21 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/repl_ph.c new file +30 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/repl_pw.c new file +34 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/repl_qb.c new file +19 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/repl_qh.c new file +34 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/replv_ob.c new file +23 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/replv_ph.c new file +22 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/replv_pw.c new file +23 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/replv_qb.c new file +22 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/shilo.c new file +29 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/shilov.c new file +31 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/shll_ob.c new file +26 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/shll_ph.c new file +26 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/shll_pw.c new file +26 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/shll_qb.c new file +26 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/shll_qh.c new file +26 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/shll_s_ph.c new file +26 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/shll_s_pw.c new file +26 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/shll_s_qh.c new file +26 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/shll_s_w.c new file +26 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/shllv_ob.c new file +27 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/shllv_ph.c new file +27 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/shllv_pw.c new file +27 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/shllv_qb.c new file +27 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/shllv_qh.c new file +27 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/shllv_s_ph.c new file +27 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/shllv_s_pw.c new file +27 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/shllv_s_qh.c new file +27 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/shllv_s_w.c new file +27 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/shra_ob.c new file +22 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/shra_ph.c new file +23 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/shra_pw.c new file +22 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/shra_qh.c new file +24 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/shra_r_ob.c new file +22 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/shra_r_ph.c new file +23 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/shra_r_pw.c new file +22 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/shra_r_qh.c new file +23 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/shra_r_w.c new file +23 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/shrav_ph.c new file +24 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/shrav_pw.c new file +23 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/shrav_qh.c new file +24 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/shrav_r_ph.c new file +24 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/shrav_r_pw.c new file +23 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/shrav_r_qh.c new file +24 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/shrav_r_w.c new file +24 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/shrl_ob.c new file +23 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/shrl_qb.c new file +23 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/shrl_qh.c new file +22 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/shrlv_ob.c new file +24 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/shrlv_qb.c new file +24 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/shrlv_qh.c new file +23 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/subq_ph.c new file +27 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/subq_pw.c new file +44 -0
44 lines not on this page · raw message
tests/tcg/mips/mips64-dsp/subq_qh.c new file +26 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/subq_s_ph.c new file +27 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/subq_s_pw.c new file +45 -0
45 lines not on this page · raw message
tests/tcg/mips/mips64-dsp/subq_s_qh.c new file +44 -0
44 lines not on this page · raw message
tests/tcg/mips/mips64-dsp/subq_s_w.c new file +27 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/subu_ob.c new file +26 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/subu_qb.c new file +27 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/subu_s_ob.c new file +26 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/subu_s_qb.c new file +27 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dsp/wrdsp.c new file +48 -0
48 lines not on this page · raw message
tests/tcg/mips/mips64-dspr2/.directory new file +2 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dspr2/Makefile new file +117 -0
117 lines not on this page · raw message
tests/tcg/mips/mips64-dspr2/absq_s_qb.c new file +42 -0
42 lines not on this page · raw message
tests/tcg/mips/mips64-dspr2/addqh_ph.c new file +35 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dspr2/addqh_r_ph.c new file +35 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dspr2/addqh_r_w.c new file +38 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dspr2/addqh_w.c new file +39 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dspr2/addu_ph.c new file +35 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dspr2/addu_qh.c new file +41 -0
41 lines not on this page · raw message
tests/tcg/mips/mips64-dspr2/addu_s_ph.c new file +35 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dspr2/addu_s_qh.c new file +41 -0
41 lines not on this page · raw message
tests/tcg/mips/mips64-dspr2/adduh_ob.c new file +21 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dspr2/adduh_qb.c new file +35 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dspr2/adduh_r_ob.c new file +21 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dspr2/adduh_r_qb.c new file +35 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dspr2/append.c new file +35 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dspr2/balign.c new file +35 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dspr2/cmpgdu_eq_ob.c new file +26 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dspr2/cmpgdu_eq_qb.c new file +41 -0
41 lines not on this page · raw message
tests/tcg/mips/mips64-dspr2/cmpgdu_le_ob.c new file +26 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dspr2/cmpgdu_le_qb.c new file +48 -0
48 lines not on this page · raw message
tests/tcg/mips/mips64-dspr2/cmpgdu_lt_ob.c new file +26 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dspr2/cmpgdu_lt_qb.c new file +48 -0
48 lines not on this page · raw message
tests/tcg/mips/mips64-dspr2/dbalign.c new file +23 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dspr2/dpa_w_ph.c new file +32 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dspr2/dpa_w_qh.c new file +56 -0
56 lines not on this page · raw message
tests/tcg/mips/mips64-dspr2/dpaqx_s_w_ph.c new file +74 -0
74 lines not on this page · raw message
tests/tcg/mips/mips64-dspr2/dpaqx_sa_w_ph.c new file +42 -0
42 lines not on this page · raw message
tests/tcg/mips/mips64-dspr2/dpax_w_ph.c new file +32 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dspr2/dps_w_ph.c new file +28 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dspr2/dps_w_qh.c new file +55 -0
55 lines not on this page · raw message
tests/tcg/mips/mips64-dspr2/dpsqx_s_w_ph.c new file +31 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dspr2/dpsqx_sa_w_ph.c new file +30 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dspr2/dpsx_w_ph.c new file +28 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dspr2/head.S new file +16 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dspr2/io.h new file +22 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dspr2/mips_boot.lds new file +31 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dspr2/mul_ph.c new file +26 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dspr2/mul_s_ph.c new file +26 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dspr2/muleq_s_w_phl.c new file +42 -0
42 lines not on this page · raw message
tests/tcg/mips/mips64-dspr2/mulq_rs_w.c new file +40 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dspr2/mulq_s_ph.c new file +26 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dspr2/mulq_s_w.c new file +40 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dspr2/mulsa_w_ph.c new file +30 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dspr2/mulsaq_s_w_ph.c new file +30 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dspr2/precr_qb_ph.c new file +23 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dspr2/precr_sra_ph_w.c new file +37 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dspr2/precr_sra_r_ph_w.c new file +37 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dspr2/prepend.c new file +35 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dspr2/printf.c new file +266 -0
266 lines not on this page · raw message
tests/tcg/mips/mips64-dspr2/shra_qb.c new file +35 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dspr2/shra_r_qb.c new file +35 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dspr2/shrav_ob.c new file +22 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dspr2/shrav_qb.c new file +37 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dspr2/shrav_r_ob.c new file +22 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dspr2/shrav_r_qb.c new file +37 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dspr2/shrl_ph.c new file +22 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dspr2/shrlv_ph.c new file +23 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dspr2/subqh_ph.c new file +23 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dspr2/subqh_r_ph.c new file +23 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dspr2/subqh_r_w.c new file +23 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dspr2/subqh_w.c new file +23 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dspr2/subu_ph.c new file +26 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dspr2/subu_qh.c new file +24 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dspr2/subu_s_ph.c new file +25 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dspr2/subu_s_qh.c new file +24 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dspr2/subuh_ob.c new file +23 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dspr2/subuh_qb.c new file +23 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dspr2/subuh_r_ob.c new file +23 -0
Lines of this file are not shown. View the raw message.
tests/tcg/mips/mips64-dspr2/subuh_r_qb.c new file +23 -0
Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Signature · 1 line
1.7.9.5
Part of the diff is not shown here. View the raw message.
PATCH v7 14/14 target-mips-ase-dsp: Change TODO file
In reply to Jia LiuDelete DSP r1 & DSP r2 from TODO file.
--- target-mips/TODO | 2 -- 1 file changed, 2 deletions(-)
target-mips/TODO +0 -2
@@ -6,8 +6,6 @@ General - Unimplemented ASEs: - MDMX - SmartMIPS - - DSP r1 - - DSP r2 - MT ASE only partially implemented and not functional - Shadow register support only partially implemented, lacks set switching on interrupt/exception.
Signature · 1 line
1.7.9.5
ping~
Quoted 1,080 lines · Jia Liu
This is MIPS ASE DSP instructions support for QEMU. These instructions are grouped according to "Chapter 4. MIPS DSP ASE Instruction Summary" in MIPS ASE DSP manual [1][2].
[1] MIPS32® Architecture for Programmers VolumeIV-e: The MIPS® DSP Application-Specific Extension to the MIPS32®Architecture
http://www.mips.com/products/product-materials/processor/mips-architecture/[2] MIPS64® Architecture for Programmers VolumeIV-e: The MIPS® DSP Application-Specific Extention to the MIPS64® Architecture
http://www.mips.com/products/product-materials/processor/mips-architecture/Signed-off-by Jia Liu <[email protected]>---
Version History:
v7:
Addressed Aurelien's review comments:
- make hflags check for dsp, use check_dsp[r2]() instead ofcheck_insn
- directly usecpu_dspctrlas the second argument in branch instructions
- factorizing somecheck_dsp()code one level
- remove unnecessarysave_cpu_state()from load instructions
- resolve conflicts between MIPS DSP and loongson2e better
- make repl* more cleanv6:
Addressed Siarhei Siamashka's review comments:
- make internal functionmipsdsp_mul_u8_u16more clean- fix MFHI MFLO MTHI MTLO, make mips64 linux run OK
v5:
Addressed Richard's review comments:
- bug shooting with --enanle-debug-tcg- add
check_insnfor each DSP instructions
- MIPS64 ASE DSP supportv4:
Addressed Richard's review comments:
- split transalte.
- tested on i386 machine.
- delete all global env usage so that we don't need to includedyngen-exec.h.
- fixDEF_HELPER_FLAGS_Nerror.
- fix all ERRORS and WARNINGS found by./scripts/checkpatch.pl.
- make sampleif()code clearer.
- combine helper_cmpgu_cond_* and helper_cmpgdu_cond_*.
- fix bitrev.
- implement repl* and load with no helper.
- usingTCG_COND_GEinstead ofTCG_COND_GTinOPC_BPOSGE32.Thanks WeiRen for prereviewing and lots of suggestion.
v3:
Addressed Peter's review comments:
- split these changes into more patches.
- add "ULL" suffix for constants which are more than 32 bits wide.Addressed WeiRen's review comments:
- split these changes into 12 patches.
- more suitable subject and description for every patch.Addressed Richard's review comments:
- useDEF_HELPER_FLAGS_Ninstead ofDEF_HELPER_Nin some insns.
- put most DSP helpers intodsp_helper.c- fix two testcases error.
v2:
Addressed Stefan's review comments:
- fixed coding style.
- changed acc into unsigned int form int and no initialization in translation.
- added return value in testcases.v1:
- add MIPS ASE DSP Support.Jia Liu (14):
target-mips-ase-dsp: Add internal functions
target-mips-ase-dsp: Add dsp resources access check
target-mips-ase-dsp: Use correct acc value to index cpu_HI/cpu_LO
rather than using a fix number
target-mips-ase-dsp: Add branch instructions
target-mips-ase-dsp: Add load instructions
target-mips-ase-dsp: Add arithmetic instructions
target-mips-ase-dsp: Add GPR-based shift instructions
target-mips-ase-dsp: Add multiply instructions
target-mips-ase-dsp: Add bit/manipulation instructions
target-mips-ase-dsp: Add compare-pick instructions
target-mips-ase-dsp: Add DSP accumulator instructions
target-mips-ase-dsp: Add MIPS DSP processors
target-mips-ase-dsp: Add testcases
target-mips-ase-dsp: Change TODO filelinux-user/main.c | 6 + target-mips/Makefile.objs | 2 +- target-mips/TODO | 2 - target-mips/cpu.h | 8 +- target-mips/dsp_helper.c | 8261 ++++++++++++++++++++++++ target-mips/helper.c | 3 + target-mips/helper.h | 396 ++ target-mips/op_helper.c | 19 + target-mips/translate.c | 2989 ++++++++- target-mips/translate_init.c | 55 + tests/tcg/mips/mips32-dsp/Makefile | 134 + tests/tcg/mips/mips32-dsp/absq_s_ph.c | 31 + tests/tcg/mips/mips32-dsp/absq_s_w.c | 37 + tests/tcg/mips/mips32-dsp/addq_ph.c | 30 + tests/tcg/mips/mips32-dsp/addq_s_ph.c | 30 + tests/tcg/mips/mips32-dsp/addsc.c | 30 + tests/tcg/mips/mips32-dsp/addu_qb.c | 30 + tests/tcg/mips/mips32-dsp/addu_s_qb.c | 30 + tests/tcg/mips/mips32-dsp/addwc.c | 30 + tests/tcg/mips/mips32-dsp/bitrev.c | 20 + tests/tcg/mips/mips32-dsp/bposge32.c | 44 + tests/tcg/mips/mips32-dsp/cmp_eq_ph.c | 35 + tests/tcg/mips/mips32-dsp/cmp_le_ph.c | 35 + tests/tcg/mips/mips32-dsp/cmp_lt_ph.c | 35 + tests/tcg/mips/mips32-dsp/cmpgu_eq_qb.c | 31 + tests/tcg/mips/mips32-dsp/cmpgu_le_qb.c | 31 + tests/tcg/mips/mips32-dsp/cmpgu_lt_qb.c | 31 + tests/tcg/mips/mips32-dsp/cmpu_eq_qb.c | 35 + tests/tcg/mips/mips32-dsp/cmpu_le_qb.c | 35 + tests/tcg/mips/mips32-dsp/cmpu_lt_qb.c | 35 + tests/tcg/mips/mips32-dsp/dpaq_s_w_ph.c | 31 + tests/tcg/mips/mips32-dsp/dpaq_sa_l_w.c | 31 + tests/tcg/mips/mips32-dsp/dpau_h_qbl.c | 27 + tests/tcg/mips/mips32-dsp/dpau_h_qbr.c | 27 + tests/tcg/mips/mips32-dsp/dpsq_s_w_ph.c | 27 + tests/tcg/mips/mips32-dsp/dpsq_sa_l_w.c | 31 + tests/tcg/mips/mips32-dsp/dpsu_h_qbl.c | 27 + tests/tcg/mips/mips32-dsp/dpsu_h_qbr.c | 27 + tests/tcg/mips/mips32-dsp/extp.c | 44 + tests/tcg/mips/mips32-dsp/extpdp.c | 46 + tests/tcg/mips/mips32-dsp/extpdpv.c | 47 + tests/tcg/mips/mips32-dsp/extpv.c | 45 + tests/tcg/mips/mips32-dsp/extr_r_w.c | 25 + tests/tcg/mips/mips32-dsp/extr_rs_w.c | 25 + tests/tcg/mips/mips32-dsp/extr_s_h.c | 25 + tests/tcg/mips/mips32-dsp/extr_w.c | 25 + tests/tcg/mips/mips32-dsp/extrv_r_w.c | 29 + tests/tcg/mips/mips32-dsp/extrv_rs_w.c | 29 + tests/tcg/mips/mips32-dsp/extrv_s_h.c | 29 + tests/tcg/mips/mips32-dsp/extrv_w.c | 29 + tests/tcg/mips/mips32-dsp/insv.c | 23 + tests/tcg/mips/mips32-dsp/lbux.c | 25 + tests/tcg/mips/mips32-dsp/lhx.c | 25 + tests/tcg/mips/mips32-dsp/lwx.c | 25 + tests/tcg/mips/mips32-dsp/madd.c | 31 + tests/tcg/mips/mips32-dsp/maddu.c | 31 + tests/tcg/mips/mips32-dsp/main.c | 6 + tests/tcg/mips/mips32-dsp/maq_s_w_phl.c | 31 + tests/tcg/mips/mips32-dsp/maq_s_w_phr.c | 31 + tests/tcg/mips/mips32-dsp/maq_sa_w_phl.c | 31 + tests/tcg/mips/mips32-dsp/maq_sa_w_phr.c | 31 + tests/tcg/mips/mips32-dsp/mfhi.c | 21 + tests/tcg/mips/mips32-dsp/mflo.c | 21 + tests/tcg/mips/mips32-dsp/modsub.c | 30 + tests/tcg/mips/mips32-dsp/msub.c | 30 + tests/tcg/mips/mips32-dsp/msubu.c | 30 + tests/tcg/mips/mips32-dsp/mthi.c | 21 + tests/tcg/mips/mips32-dsp/mthlip.c | 34 + tests/tcg/mips/mips32-dsp/mtlo.c | 21 + tests/tcg/mips/mips32-dsp/muleq_s_w_phr.c | 40 + tests/tcg/mips/mips32-dsp/muleu_s_ph_qbl.c | 25 + tests/tcg/mips/mips32-dsp/muleu_s_ph_qbr.c | 25 + tests/tcg/mips/mips32-dsp/mulq_rs_ph.c | 25 + tests/tcg/mips/mips32-dsp/mult.c | 24 + tests/tcg/mips/mips32-dsp/multu.c | 24 + tests/tcg/mips/mips32-dsp/packrl_ph.c | 21 + tests/tcg/mips/mips32-dsp/pick_ph.c | 23 + tests/tcg/mips/mips32-dsp/pick_qb.c | 23 + tests/tcg/mips/mips32-dsp/preceq_w_phl.c | 20 + tests/tcg/mips/mips32-dsp/preceq_w_phr.c | 20 + tests/tcg/mips/mips32-dsp/precequ_ph_qbl.c | 20 + tests/tcg/mips/mips32-dsp/precequ_ph_qbla.c | 20 + tests/tcg/mips/mips32-dsp/precequ_ph_qbr.c | 20 + tests/tcg/mips/mips32-dsp/precequ_ph_qbra.c | 20 + tests/tcg/mips/mips32-dsp/preceu_ph_qbl.c | 20 + tests/tcg/mips/mips32-dsp/preceu_ph_qbla.c | 20 + tests/tcg/mips/mips32-dsp/preceu_ph_qbr.c | 20 + tests/tcg/mips/mips32-dsp/preceu_ph_qbra.c | 20 + tests/tcg/mips/mips32-dsp/precrq_ph_w.c | 21 + tests/tcg/mips/mips32-dsp/precrq_qb_ph.c | 21 + tests/tcg/mips/mips32-dsp/precrq_rs_ph_w.c | 21 + tests/tcg/mips/mips32-dsp/precrqu_s_qb_ph.c | 21 + tests/tcg/mips/mips32-dsp/raddu_w_qb.c | 20 + tests/tcg/mips/mips32-dsp/rddsp.c | 54 + tests/tcg/mips/mips32-dsp/repl_ph.c | 23 + tests/tcg/mips/mips32-dsp/repl_qb.c | 16 + tests/tcg/mips/mips32-dsp/replv_ph.c | 19 + tests/tcg/mips/mips32-dsp/replv_qb.c | 19 + tests/tcg/mips/mips32-dsp/shilo.c | 27 + tests/tcg/mips/mips32-dsp/shilov.c | 29 + tests/tcg/mips/mips32-dsp/shll_ph.c | 24 + tests/tcg/mips/mips32-dsp/shll_qb.c | 23 + tests/tcg/mips/mips32-dsp/shll_s_ph.c | 24 + tests/tcg/mips/mips32-dsp/shll_s_w.c | 24 + tests/tcg/mips/mips32-dsp/shllv_ph.c | 25 + tests/tcg/mips/mips32-dsp/shllv_qb.c | 24 + tests/tcg/mips/mips32-dsp/shllv_s_ph.c | 25 + tests/tcg/mips/mips32-dsp/shllv_s_w.c | 25 + tests/tcg/mips/mips32-dsp/shra_ph.c | 20 + tests/tcg/mips/mips32-dsp/shra_r_ph.c | 20 + tests/tcg/mips/mips32-dsp/shra_r_w.c | 20 + tests/tcg/mips/mips32-dsp/shrav_ph.c | 21 + tests/tcg/mips/mips32-dsp/shrav_r_ph.c | 21 + tests/tcg/mips/mips32-dsp/shrav_r_w.c | 21 + tests/tcg/mips/mips32-dsp/shrl_qb.c | 20 + tests/tcg/mips/mips32-dsp/shrlv_qb.c | 21 + tests/tcg/mips/mips32-dsp/subq_ph.c | 25 + tests/tcg/mips/mips32-dsp/subq_s_ph.c | 25 + tests/tcg/mips/mips32-dsp/subq_s_w.c | 25 + tests/tcg/mips/mips32-dsp/subu_qb.c | 25 + tests/tcg/mips/mips32-dsp/subu_s_qb.c | 25 + tests/tcg/mips/mips32-dsp/wrdsp.c | 54 + tests/tcg/mips/mips32-dspr2/Makefile | 72 + tests/tcg/mips/mips32-dspr2/absq_s_qb.c | 35 + tests/tcg/mips/mips32-dspr2/addqh_ph.c | 30 + tests/tcg/mips/mips32-dspr2/addqh_r_ph.c | 30 + tests/tcg/mips/mips32-dspr2/addqh_r_w.c | 34 + tests/tcg/mips/mips32-dspr2/addqh_w.c | 34 + tests/tcg/mips/mips32-dspr2/addu_ph.c | 30 + tests/tcg/mips/mips32-dspr2/addu_s_ph.c | 30 + tests/tcg/mips/mips32-dspr2/adduh_qb.c | 30 + tests/tcg/mips/mips32-dspr2/adduh_r_qb.c | 30 + tests/tcg/mips/mips32-dspr2/append.c | 30 + tests/tcg/mips/mips32-dspr2/balign.c | 30 + tests/tcg/mips/mips32-dspr2/cmpgdu_eq_qb.c | 37 + tests/tcg/mips/mips32-dspr2/cmpgdu_le_qb.c | 37 + tests/tcg/mips/mips32-dspr2/cmpgdu_lt_qb.c | 37 + tests/tcg/mips/mips32-dspr2/dpa_w_ph.c | 27 + tests/tcg/mips/mips32-dspr2/dpaqx_s_w_ph.c | 57 + tests/tcg/mips/mips32-dspr2/dpaqx_sa_w_ph.c | 31 + tests/tcg/mips/mips32-dspr2/dpax_w_ph.c | 27 + tests/tcg/mips/mips32-dspr2/dps_w_ph.c | 27 + tests/tcg/mips/mips32-dspr2/dpsqx_s_w_ph.c | 31 + tests/tcg/mips/mips32-dspr2/dpsqx_sa_w_ph.c | 31 + tests/tcg/mips/mips32-dspr2/dpsx_w_ph.c | 27 + tests/tcg/mips/mips32-dspr2/mul_ph.c | 25 + tests/tcg/mips/mips32-dspr2/mul_s_ph.c | 25 + tests/tcg/mips/mips32-dspr2/muleq_s_w_phl.c | 40 + tests/tcg/mips/mips32-dspr2/mulq_rs_w.c | 36 + tests/tcg/mips/mips32-dspr2/mulq_s_ph.c | 25 + tests/tcg/mips/mips32-dspr2/mulq_s_w.c | 36 + tests/tcg/mips/mips32-dspr2/mulsa_w_ph.c | 29 + tests/tcg/mips/mips32-dspr2/mulsaq_s_w_ph.c | 29 + tests/tcg/mips/mips32-dspr2/precr_qb_ph.c | 21 + tests/tcg/mips/mips32-dspr2/precr_sra_ph_w.c | 32 + tests/tcg/mips/mips32-dspr2/precr_sra_r_ph_w.c | 32 + tests/tcg/mips/mips32-dspr2/prepend.c | 30 + tests/tcg/mips/mips32-dspr2/shra_qb.c | 30 + tests/tcg/mips/mips32-dspr2/shra_r_qb.c | 30 + tests/tcg/mips/mips32-dspr2/shrav_qb.c | 32 + tests/tcg/mips/mips32-dspr2/shrav_r_qb.c | 32 + tests/tcg/mips/mips32-dspr2/shrl_ph.c | 20 + tests/tcg/mips/mips32-dspr2/shrlv_ph.c | 21 + tests/tcg/mips/mips32-dspr2/subqh_ph.c | 21 + tests/tcg/mips/mips32-dspr2/subqh_r_ph.c | 21 + tests/tcg/mips/mips32-dspr2/subqh_r_w.c | 21 + tests/tcg/mips/mips32-dspr2/subqh_w.c | 21 + tests/tcg/mips/mips32-dspr2/subu_ph.c | 25 + tests/tcg/mips/mips32-dspr2/subu_s_ph.c | 25 + tests/tcg/mips/mips32-dspr2/subuh_qb.c | 21 + tests/tcg/mips/mips32-dspr2/subuh_r_qb.c | 21 + tests/tcg/mips/mips64-dsp/Makefile | 304 + tests/tcg/mips/mips64-dsp/absq_s_ob.c | 63 + tests/tcg/mips/mips64-dsp/absq_s_ph.c | 37 + tests/tcg/mips/mips64-dsp/absq_s_pw.c | 66 + tests/tcg/mips/mips64-dsp/absq_s_qh.c | 40 + tests/tcg/mips/mips64-dsp/absq_s_w.c | 48 + tests/tcg/mips/mips64-dsp/addq_ph.c | 37 + tests/tcg/mips/mips64-dsp/addq_pw.c | 26 + tests/tcg/mips/mips64-dsp/addq_qh.c | 28 + tests/tcg/mips/mips64-dsp/addq_s_ph.c | 37 + tests/tcg/mips/mips64-dsp/addq_s_pw.c | 45 + tests/tcg/mips/mips64-dsp/addq_s_qh.c | 26 + tests/tcg/mips/mips64-dsp/addsc.c | 37 + tests/tcg/mips/mips64-dsp/addu_ob.c | 27 + tests/tcg/mips/mips64-dsp/addu_qb.c | 37 + tests/tcg/mips/mips64-dsp/addu_s_ob.c | 27 + tests/tcg/mips/mips64-dsp/addu_s_qb.c | 38 + tests/tcg/mips/mips64-dsp/addwc.c | 37 + tests/tcg/mips/mips64-dsp/bitrev.c | 23 + tests/tcg/mips/mips64-dsp/bposge32.c | 50 + tests/tcg/mips/mips64-dsp/bposge64.c | 50 + tests/tcg/mips/mips64-dsp/cmp_eq_ph.c | 42 + tests/tcg/mips/mips64-dsp/cmp_eq_pw.c | 27 + tests/tcg/mips/mips64-dsp/cmp_eq_qh.c | 27 + tests/tcg/mips/mips64-dsp/cmp_le_ph.c | 40 + tests/tcg/mips/mips64-dsp/cmp_le_pw.c | 27 + tests/tcg/mips/mips64-dsp/cmp_le_qh.c | 27 + tests/tcg/mips/mips64-dsp/cmp_lt_ph.c | 41 + tests/tcg/mips/mips64-dsp/cmp_lt_pw.c | 27 + tests/tcg/mips/mips64-dsp/cmp_lt_qh.c | 27 + tests/tcg/mips/mips64-dsp/cmpgu_eq_ob.c | 24 + tests/tcg/mips/mips64-dsp/cmpgu_eq_qb.c | 38 + tests/tcg/mips/mips64-dsp/cmpgu_le_ob.c | 24 + tests/tcg/mips/mips64-dsp/cmpgu_le_qb.c | 37 + tests/tcg/mips/mips64-dsp/cmpgu_lt_ob.c | 24 + tests/tcg/mips/mips64-dsp/cmpgu_lt_qb.c | 38 + tests/tcg/mips/mips64-dsp/cmpu_eq_ob.c | 27 + tests/tcg/mips/mips64-dsp/cmpu_eq_qb.c | 42 + tests/tcg/mips/mips64-dsp/cmpu_le_ob.c | 26 + tests/tcg/mips/mips64-dsp/cmpu_le_qb.c | 41 + tests/tcg/mips/mips64-dsp/cmpu_lt_ob.c | 26 + tests/tcg/mips/mips64-dsp/cmpu_lt_qb.c | 42 + tests/tcg/mips/mips64-dsp/dappend.c | 37 + tests/tcg/mips/mips64-dsp/dextp.c | 33 + tests/tcg/mips/mips64-dsp/dextpdp.c | 37 + tests/tcg/mips/mips64-dsp/dextpdpv.c | 38 + tests/tcg/mips/mips64-dsp/dextpv.c | 34 + tests/tcg/mips/mips64-dsp/dextr_l.c | 27 + tests/tcg/mips/mips64-dsp/dextr_r_l.c | 32 + tests/tcg/mips/mips64-dsp/dextr_r_w.c | 32 + tests/tcg/mips/mips64-dsp/dextr_rs_l.c | 31 + tests/tcg/mips/mips64-dsp/dextr_rs_w.c | 31 + tests/tcg/mips/mips64-dsp/dextr_s_h.c | 31 + tests/tcg/mips/mips64-dsp/dextr_w.c | 27 + tests/tcg/mips/mips64-dsp/dextrv_l.c | 28 + tests/tcg/mips/mips64-dsp/dextrv_r_l.c | 33 + tests/tcg/mips/mips64-dsp/dextrv_r_w.c | 33 + tests/tcg/mips/mips64-dsp/dextrv_rs_l.c | 32 + tests/tcg/mips/mips64-dsp/dextrv_rs_w.c | 32 + tests/tcg/mips/mips64-dsp/dextrv_s_h.c | 32 + tests/tcg/mips/mips64-dsp/dextrv_w.c | 28 + tests/tcg/mips/mips64-dsp/dinsv.c | 25 + tests/tcg/mips/mips64-dsp/dmadd.c | 57 + tests/tcg/mips/mips64-dsp/dmaddu.c | 56 + tests/tcg/mips/mips64-dsp/dmsub.c | 59 + tests/tcg/mips/mips64-dsp/dmsubu.c | 59 + tests/tcg/mips/mips64-dsp/dmthlip.c | 32 + tests/tcg/mips/mips64-dsp/dpaq_s_w_ph.c | 32 + tests/tcg/mips/mips64-dsp/dpaq_s_w_qh.c | 57 + tests/tcg/mips/mips64-dsp/dpaq_sa_l_pw.c | 62 + tests/tcg/mips/mips64-dsp/dpaq_sa_l_w.c | 32 + tests/tcg/mips/mips64-dsp/dpau_h_obl.c | 59 + tests/tcg/mips/mips64-dsp/dpau_h_obr.c | 59 + tests/tcg/mips/mips64-dsp/dpau_h_qbl.c | 29 + tests/tcg/mips/mips64-dsp/dpau_h_qbr.c | 29 + tests/tcg/mips/mips64-dsp/dpsq_s_w_ph.c | 29 + tests/tcg/mips/mips64-dsp/dpsq_s_w_qh.c | 33 + tests/tcg/mips/mips64-dsp/dpsq_sa_l_pw.c | 39 + tests/tcg/mips/mips64-dsp/dpsq_sa_l_w.c | 32 + tests/tcg/mips/mips64-dsp/dpsu_h_obl.c | 32 + tests/tcg/mips/mips64-dsp/dpsu_h_obr.c | 32 + tests/tcg/mips/mips64-dsp/dpsu_h_qbl.c | 29 + tests/tcg/mips/mips64-dsp/dpsu_h_qbr.c | 29 + tests/tcg/mips/mips64-dsp/dshilo.c | 31 + tests/tcg/mips/mips64-dsp/dshilov.c | 32 + tests/tcg/mips/mips64-dsp/extp.c | 50 + tests/tcg/mips/mips64-dsp/extpdp.c | 51 + tests/tcg/mips/mips64-dsp/extpdpv.c | 52 + tests/tcg/mips/mips64-dsp/extpv.c | 51 + tests/tcg/mips/mips64-dsp/extr_r_w.c | 27 + tests/tcg/mips/mips64-dsp/extr_rs_w.c | 27 + tests/tcg/mips/mips64-dsp/extr_s_h.c | 27 + tests/tcg/mips/mips64-dsp/extr_w.c | 27 + tests/tcg/mips/mips64-dsp/extrv_r_w.c | 31 + tests/tcg/mips/mips64-dsp/extrv_rs_w.c | 31 + tests/tcg/mips/mips64-dsp/extrv_s_h.c | 31 + tests/tcg/mips/mips64-dsp/extrv_w.c | 31 + tests/tcg/mips/mips64-dsp/head.S | 16 + tests/tcg/mips/mips64-dsp/insv.c | 26 + tests/tcg/mips/mips64-dsp/io.h | 22 + tests/tcg/mips/mips64-dsp/lbux.c | 27 + tests/tcg/mips/mips64-dsp/ldx.c | 27 + tests/tcg/mips/mips64-dsp/lhx.c | 27 + tests/tcg/mips/mips64-dsp/lwx.c | 27 + tests/tcg/mips/mips64-dsp/madd.c | 33 + tests/tcg/mips/mips64-dsp/maddu.c | 33 + tests/tcg/mips/mips64-dsp/maq_s_l_pwl.c | 56 + tests/tcg/mips/mips64-dsp/maq_s_l_pwr.c | 56 + tests/tcg/mips/mips64-dsp/maq_s_w_phl.c | 33 + tests/tcg/mips/mips64-dsp/maq_s_w_phr.c | 33 + tests/tcg/mips/mips64-dsp/maq_s_w_qhll.c | 62 + tests/tcg/mips/mips64-dsp/maq_s_w_qhlr.c | 62 + tests/tcg/mips/mips64-dsp/maq_s_w_qhrl.c | 63 + tests/tcg/mips/mips64-dsp/maq_s_w_qhrr.c | 63 + tests/tcg/mips/mips64-dsp/maq_sa_w_phl.c | 33 + tests/tcg/mips/mips64-dsp/maq_sa_w_phr.c | 33 + tests/tcg/mips/mips64-dsp/maq_sa_w_qhll.c | 62 + tests/tcg/mips/mips64-dsp/maq_sa_w_qhlr.c | 64 + tests/tcg/mips/mips64-dsp/maq_sa_w_qhrl.c | 64 + tests/tcg/mips/mips64-dsp/maq_sa_w_qhrr.c | 64 + tests/tcg/mips/mips64-dsp/mfhi.c | 24 + tests/tcg/mips/mips64-dsp/mflo.c | 24 + tests/tcg/mips/mips64-dsp/mips_boot.lds | 31 + tests/tcg/mips/mips64-dsp/modsub.c | 37 + tests/tcg/mips/mips64-dsp/msub.c | 32 + tests/tcg/mips/mips64-dsp/msubu.c | 32 + tests/tcg/mips/mips64-dsp/mthi.c | 24 + tests/tcg/mips/mips64-dsp/mthlip.c | 35 + tests/tcg/mips/mips64-dsp/mtlo.c | 22 + tests/tcg/mips/mips64-dsp/muleq_s_pw_qhl.c | 55 + tests/tcg/mips/mips64-dsp/muleq_s_pw_qhr.c | 24 + tests/tcg/mips/mips64-dsp/muleq_s_w_phr.c | 45 + tests/tcg/mips/mips64-dsp/muleu_s_ph_qbl.c | 27 + tests/tcg/mips/mips64-dsp/muleu_s_ph_qbr.c | 27 + tests/tcg/mips/mips64-dsp/muleu_s_qh_obl.c | 25 + tests/tcg/mips/mips64-dsp/muleu_s_qh_obr.c | 25 + tests/tcg/mips/mips64-dsp/mulq_rs_ph.c | 27 + tests/tcg/mips/mips64-dsp/mulq_rs_qh.c | 33 + tests/tcg/mips/mips64-dsp/mulsaq_s_l_pw.c | 59 + tests/tcg/mips/mips64-dsp/mulsaq_s_w_qh.c | 57 + tests/tcg/mips/mips64-dsp/mult.c | 26 + tests/tcg/mips/mips64-dsp/multu.c | 26 + tests/tcg/mips/mips64-dsp/packrl_ph.c | 24 + tests/tcg/mips/mips64-dsp/packrl_pw.c | 24 + tests/tcg/mips/mips64-dsp/pick_ob.c | 27 + tests/tcg/mips/mips64-dsp/pick_ph.c | 26 + tests/tcg/mips/mips64-dsp/pick_pw.c | 28 + tests/tcg/mips/mips64-dsp/pick_qb.c | 26 + tests/tcg/mips/mips64-dsp/pick_qh.c | 28 + tests/tcg/mips/mips64-dsp/preceq_l_pwl.c | 24 + tests/tcg/mips/mips64-dsp/preceq_l_pwr.c | 24 + tests/tcg/mips/mips64-dsp/preceq_pw_qhl.c | 21 + tests/tcg/mips/mips64-dsp/preceq_pw_qhla.c | 23 + tests/tcg/mips/mips64-dsp/preceq_pw_qhr.c | 21 + tests/tcg/mips/mips64-dsp/preceq_pw_qhra.c | 23 + tests/tcg/mips/mips64-dsp/preceq_w_phl.c | 23 + tests/tcg/mips/mips64-dsp/preceq_w_phr.c | 23 + tests/tcg/mips/mips64-dsp/precequ_ph_qbl.c | 23 + tests/tcg/mips/mips64-dsp/precequ_ph_qbla.c | 23 + tests/tcg/mips/mips64-dsp/precequ_ph_qbr.c | 23 + tests/tcg/mips/mips64-dsp/precequ_ph_qbra.c | 23 + tests/tcg/mips/mips64-dsp/precequ_qh_obl.c | 22 + tests/tcg/mips/mips64-dsp/precequ_qh_obla.c | 22 + tests/tcg/mips/mips64-dsp/precequ_qh_obr.c | 24 + tests/tcg/mips/mips64-dsp/precequ_qh_obra.c | 24 + tests/tcg/mips/mips64-dsp/preceu_ph_qbl.c | 23 + tests/tcg/mips/mips64-dsp/preceu_ph_qbla.c | 23 + tests/tcg/mips/mips64-dsp/preceu_ph_qbr.c | 23 + tests/tcg/mips/mips64-dsp/preceu_ph_qbra.c | 23 + tests/tcg/mips/mips64-dsp/preceu_qh_obl.c | 22 + tests/tcg/mips/mips64-dsp/preceu_qh_obla.c | 22 + tests/tcg/mips/mips64-dsp/preceu_qh_obr.c | 23 + tests/tcg/mips/mips64-dsp/preceu_qh_obra.c | 23 + tests/tcg/mips/mips64-dsp/precr_ob_qh.c | 25 + tests/tcg/mips/mips64-dsp/precr_sra_qh_pw.c | 40 + tests/tcg/mips/mips64-dsp/precr_sra_r_qh_pw.c | 40 + tests/tcg/mips/mips64-dsp/precrq_ob_qh.c | 25 + tests/tcg/mips/mips64-dsp/precrq_ph_w.c | 24 + tests/tcg/mips/mips64-dsp/precrq_pw_l.c | 25 + tests/tcg/mips/mips64-dsp/precrq_qb_ph.c | 24 + tests/tcg/mips/mips64-dsp/precrq_qh_pw.c | 25 + tests/tcg/mips/mips64-dsp/precrq_rs_ph_w.c | 24 + tests/tcg/mips/mips64-dsp/precrq_rs_qh_pw.c | 25 + tests/tcg/mips/mips64-dsp/precrqu_s_ob_qh.c | 27 + tests/tcg/mips/mips64-dsp/precrqu_s_qb_ph.c | 24 + tests/tcg/mips/mips64-dsp/prependd.c | 37 + tests/tcg/mips/mips64-dsp/prependw.c | 37 + tests/tcg/mips/mips64-dsp/printf.c | 266 + tests/tcg/mips/mips64-dsp/raddu_l_ob.c | 22 + tests/tcg/mips/mips64-dsp/raddu_w_qb.c | 23 + tests/tcg/mips/mips64-dsp/rddsp.c | 53 + tests/tcg/mips/mips64-dsp/repl_ob.c | 21 + tests/tcg/mips/mips64-dsp/repl_ph.c | 30 + tests/tcg/mips/mips64-dsp/repl_pw.c | 34 + tests/tcg/mips/mips64-dsp/repl_qb.c | 19 + tests/tcg/mips/mips64-dsp/repl_qh.c | 34 + tests/tcg/mips/mips64-dsp/replv_ob.c | 23 + tests/tcg/mips/mips64-dsp/replv_ph.c | 22 + tests/tcg/mips/mips64-dsp/replv_pw.c | 23 + tests/tcg/mips/mips64-dsp/replv_qb.c | 22 + tests/tcg/mips/mips64-dsp/shilo.c | 29 + tests/tcg/mips/mips64-dsp/shilov.c | 31 + tests/tcg/mips/mips64-dsp/shll_ob.c | 26 + tests/tcg/mips/mips64-dsp/shll_ph.c | 26 + tests/tcg/mips/mips64-dsp/shll_pw.c | 26 + tests/tcg/mips/mips64-dsp/shll_qb.c | 26 + tests/tcg/mips/mips64-dsp/shll_qh.c | 26 + tests/tcg/mips/mips64-dsp/shll_s_ph.c | 26 + tests/tcg/mips/mips64-dsp/shll_s_pw.c | 26 + tests/tcg/mips/mips64-dsp/shll_s_qh.c | 26 + tests/tcg/mips/mips64-dsp/shll_s_w.c | 26 + tests/tcg/mips/mips64-dsp/shllv_ob.c | 27 + tests/tcg/mips/mips64-dsp/shllv_ph.c | 27 + tests/tcg/mips/mips64-dsp/shllv_pw.c | 27 + tests/tcg/mips/mips64-dsp/shllv_qb.c | 27 + tests/tcg/mips/mips64-dsp/shllv_qh.c | 27 + tests/tcg/mips/mips64-dsp/shllv_s_ph.c | 27 + tests/tcg/mips/mips64-dsp/shllv_s_pw.c | 27 + tests/tcg/mips/mips64-dsp/shllv_s_qh.c | 27 + tests/tcg/mips/mips64-dsp/shllv_s_w.c | 27 + tests/tcg/mips/mips64-dsp/shra_ob.c | 22 + tests/tcg/mips/mips64-dsp/shra_ph.c | 23 + tests/tcg/mips/mips64-dsp/shra_pw.c | 22 + tests/tcg/mips/mips64-dsp/shra_qh.c | 24 + tests/tcg/mips/mips64-dsp/shra_r_ob.c | 22 + tests/tcg/mips/mips64-dsp/shra_r_ph.c | 23 + tests/tcg/mips/mips64-dsp/shra_r_pw.c | 22 + tests/tcg/mips/mips64-dsp/shra_r_qh.c | 23 + tests/tcg/mips/mips64-dsp/shra_r_w.c | 23 + tests/tcg/mips/mips64-dsp/shrav_ph.c | 24 + tests/tcg/mips/mips64-dsp/shrav_pw.c | 23 + tests/tcg/mips/mips64-dsp/shrav_qh.c | 24 + tests/tcg/mips/mips64-dsp/shrav_r_ph.c | 24 + tests/tcg/mips/mips64-dsp/shrav_r_pw.c | 23 + tests/tcg/mips/mips64-dsp/shrav_r_qh.c | 24 + tests/tcg/mips/mips64-dsp/shrav_r_w.c | 24 + tests/tcg/mips/mips64-dsp/shrl_ob.c | 23 + tests/tcg/mips/mips64-dsp/shrl_qb.c | 23 + tests/tcg/mips/mips64-dsp/shrl_qh.c | 22 + tests/tcg/mips/mips64-dsp/shrlv_ob.c | 24 + tests/tcg/mips/mips64-dsp/shrlv_qb.c | 24 + tests/tcg/mips/mips64-dsp/shrlv_qh.c | 23 + tests/tcg/mips/mips64-dsp/subq_ph.c | 27 + tests/tcg/mips/mips64-dsp/subq_pw.c | 44 + tests/tcg/mips/mips64-dsp/subq_qh.c | 26 + tests/tcg/mips/mips64-dsp/subq_s_ph.c | 27 + tests/tcg/mips/mips64-dsp/subq_s_pw.c | 45 + tests/tcg/mips/mips64-dsp/subq_s_qh.c | 44 + tests/tcg/mips/mips64-dsp/subq_s_w.c | 27 + tests/tcg/mips/mips64-dsp/subu_ob.c | 26 + tests/tcg/mips/mips64-dsp/subu_qb.c | 27 + tests/tcg/mips/mips64-dsp/subu_s_ob.c | 26 + tests/tcg/mips/mips64-dsp/subu_s_qb.c | 27 + tests/tcg/mips/mips64-dsp/wrdsp.c | 48 + tests/tcg/mips/mips64-dspr2/.directory | 2 + tests/tcg/mips/mips64-dspr2/Makefile | 117 + tests/tcg/mips/mips64-dspr2/absq_s_qb.c | 42 + tests/tcg/mips/mips64-dspr2/addqh_ph.c | 35 + tests/tcg/mips/mips64-dspr2/addqh_r_ph.c | 35 + tests/tcg/mips/mips64-dspr2/addqh_r_w.c | 38 + tests/tcg/mips/mips64-dspr2/addqh_w.c | 39 + tests/tcg/mips/mips64-dspr2/addu_ph.c | 35 + tests/tcg/mips/mips64-dspr2/addu_qh.c | 41 + tests/tcg/mips/mips64-dspr2/addu_s_ph.c | 35 + tests/tcg/mips/mips64-dspr2/addu_s_qh.c | 41 + tests/tcg/mips/mips64-dspr2/adduh_ob.c | 21 + tests/tcg/mips/mips64-dspr2/adduh_qb.c | 35 + tests/tcg/mips/mips64-dspr2/adduh_r_ob.c | 21 + tests/tcg/mips/mips64-dspr2/adduh_r_qb.c | 35 + tests/tcg/mips/mips64-dspr2/append.c | 35 + tests/tcg/mips/mips64-dspr2/balign.c | 35 + tests/tcg/mips/mips64-dspr2/cmpgdu_eq_ob.c | 26 + tests/tcg/mips/mips64-dspr2/cmpgdu_eq_qb.c | 41 + tests/tcg/mips/mips64-dspr2/cmpgdu_le_ob.c | 26 + tests/tcg/mips/mips64-dspr2/cmpgdu_le_qb.c | 48 + tests/tcg/mips/mips64-dspr2/cmpgdu_lt_ob.c | 26 + tests/tcg/mips/mips64-dspr2/cmpgdu_lt_qb.c | 48 + tests/tcg/mips/mips64-dspr2/dbalign.c | 23 + tests/tcg/mips/mips64-dspr2/dpa_w_ph.c | 32 + tests/tcg/mips/mips64-dspr2/dpa_w_qh.c | 56 + tests/tcg/mips/mips64-dspr2/dpaqx_s_w_ph.c | 74 + tests/tcg/mips/mips64-dspr2/dpaqx_sa_w_ph.c | 42 + tests/tcg/mips/mips64-dspr2/dpax_w_ph.c | 32 + tests/tcg/mips/mips64-dspr2/dps_w_ph.c | 28 + tests/tcg/mips/mips64-dspr2/dps_w_qh.c | 55 + tests/tcg/mips/mips64-dspr2/dpsqx_s_w_ph.c | 31 + tests/tcg/mips/mips64-dspr2/dpsqx_sa_w_ph.c | 30 + tests/tcg/mips/mips64-dspr2/dpsx_w_ph.c | 28 + tests/tcg/mips/mips64-dspr2/head.S | 16 + tests/tcg/mips/mips64-dspr2/io.h | 22 + tests/tcg/mips/mips64-dspr2/mips_boot.lds | 31 + tests/tcg/mips/mips64-dspr2/mul_ph.c | 26 + tests/tcg/mips/mips64-dspr2/mul_s_ph.c | 26 + tests/tcg/mips/mips64-dspr2/muleq_s_w_phl.c | 42 + tests/tcg/mips/mips64-dspr2/mulq_rs_w.c | 40 + tests/tcg/mips/mips64-dspr2/mulq_s_ph.c | 26 + tests/tcg/mips/mips64-dspr2/mulq_s_w.c | 40 + tests/tcg/mips/mips64-dspr2/mulsa_w_ph.c | 30 + tests/tcg/mips/mips64-dspr2/mulsaq_s_w_ph.c | 30 + tests/tcg/mips/mips64-dspr2/precr_qb_ph.c | 23 + tests/tcg/mips/mips64-dspr2/precr_sra_ph_w.c | 37 + tests/tcg/mips/mips64-dspr2/precr_sra_r_ph_w.c | 37 + tests/tcg/mips/mips64-dspr2/prepend.c | 35 + tests/tcg/mips/mips64-dspr2/printf.c | 266 + tests/tcg/mips/mips64-dspr2/shra_qb.c | 35 + tests/tcg/mips/mips64-dspr2/shra_r_qb.c | 35 + tests/tcg/mips/mips64-dspr2/shrav_ob.c | 22 + tests/tcg/mips/mips64-dspr2/shrav_qb.c | 37 + tests/tcg/mips/mips64-dspr2/shrav_r_ob.c | 22 + tests/tcg/mips/mips64-dspr2/shrav_r_qb.c | 37 + tests/tcg/mips/mips64-dspr2/shrl_ph.c | 22 + tests/tcg/mips/mips64-dspr2/shrlv_ph.c | 23 + tests/tcg/mips/mips64-dspr2/subqh_ph.c | 23 + tests/tcg/mips/mips64-dspr2/subqh_r_ph.c | 23 + tests/tcg/mips/mips64-dspr2/subqh_r_w.c | 23 + tests/tcg/mips/mips64-dspr2/subqh_w.c | 23 + tests/tcg/mips/mips64-dspr2/subu_ph.c | 26 + tests/tcg/mips/mips64-dspr2/subu_qh.c | 24 + tests/tcg/mips/mips64-dspr2/subu_s_ph.c | 25 + tests/tcg/mips/mips64-dspr2/subu_s_qh.c | 24 + tests/tcg/mips/mips64-dspr2/subuh_ob.c | 23 + tests/tcg/mips/mips64-dspr2/subuh_qb.c | 23 + tests/tcg/mips/mips64-dspr2/subuh_r_ob.c | 23 + tests/tcg/mips/mips64-dspr2/subuh_r_qb.c | 23 + 495 files changed, 27393 insertions(+), 129 deletions(-) create mode 100644 target-mips/dsp_helper.c create mode 100644 tests/tcg/mips/mips32-dsp/Makefile create mode 100644 tests/tcg/mips/mips32-dsp/absq_s_ph.c create mode 100644 tests/tcg/mips/mips32-dsp/absq_s_w.c create mode 100644 tests/tcg/mips/mips32-dsp/addq_ph.c create mode 100644 tests/tcg/mips/mips32-dsp/addq_s_ph.c create mode 100644 tests/tcg/mips/mips32-dsp/addsc.c create mode 100644 tests/tcg/mips/mips32-dsp/addu_qb.c create mode 100644 tests/tcg/mips/mips32-dsp/addu_s_qb.c create mode 100644 tests/tcg/mips/mips32-dsp/addwc.c create mode 100644 tests/tcg/mips/mips32-dsp/bitrev.c create mode 100644 tests/tcg/mips/mips32-dsp/bposge32.c create mode 100644 tests/tcg/mips/mips32-dsp/cmp_eq_ph.c create mode 100644 tests/tcg/mips/mips32-dsp/cmp_le_ph.c create mode 100644 tests/tcg/mips/mips32-dsp/cmp_lt_ph.c create mode 100644 tests/tcg/mips/mips32-dsp/cmpgu_eq_qb.c create mode 100644 tests/tcg/mips/mips32-dsp/cmpgu_le_qb.c create mode 100644 tests/tcg/mips/mips32-dsp/cmpgu_lt_qb.c create mode 100644 tests/tcg/mips/mips32-dsp/cmpu_eq_qb.c create mode 100644 tests/tcg/mips/mips32-dsp/cmpu_le_qb.c create mode 100644 tests/tcg/mips/mips32-dsp/cmpu_lt_qb.c create mode 100644 tests/tcg/mips/mips32-dsp/dpaq_s_w_ph.c create mode 100644 tests/tcg/mips/mips32-dsp/dpaq_sa_l_w.c create mode 100644 tests/tcg/mips/mips32-dsp/dpau_h_qbl.c create mode 100644 tests/tcg/mips/mips32-dsp/dpau_h_qbr.c create mode 100644 tests/tcg/mips/mips32-dsp/dpsq_s_w_ph.c create mode 100644 tests/tcg/mips/mips32-dsp/dpsq_sa_l_w.c create mode 100644 tests/tcg/mips/mips32-dsp/dpsu_h_qbl.c create mode 100644 tests/tcg/mips/mips32-dsp/dpsu_h_qbr.c create mode 100644 tests/tcg/mips/mips32-dsp/extp.c create mode 100644 tests/tcg/mips/mips32-dsp/extpdp.c create mode 100644 tests/tcg/mips/mips32-dsp/extpdpv.c create mode 100644 tests/tcg/mips/mips32-dsp/extpv.c create mode 100644 tests/tcg/mips/mips32-dsp/extr_r_w.c create mode 100644 tests/tcg/mips/mips32-dsp/extr_rs_w.c create mode 100644 tests/tcg/mips/mips32-dsp/extr_s_h.c create mode 100644 tests/tcg/mips/mips32-dsp/extr_w.c create mode 100644 tests/tcg/mips/mips32-dsp/extrv_r_w.c create mode 100644 tests/tcg/mips/mips32-dsp/extrv_rs_w.c create mode 100644 tests/tcg/mips/mips32-dsp/extrv_s_h.c create mode 100644 tests/tcg/mips/mips32-dsp/extrv_w.c create mode 100644 tests/tcg/mips/mips32-dsp/insv.c create mode 100644 tests/tcg/mips/mips32-dsp/lbux.c create mode 100644 tests/tcg/mips/mips32-dsp/lhx.c create mode 100644 tests/tcg/mips/mips32-dsp/lwx.c create mode 100644 tests/tcg/mips/mips32-dsp/madd.c create mode 100644 tests/tcg/mips/mips32-dsp/maddu.c create mode 100644 tests/tcg/mips/mips32-dsp/main.c create mode 100644 tests/tcg/mips/mips32-dsp/maq_s_w_phl.c create mode 100644 tests/tcg/mips/mips32-dsp/maq_s_w_phr.c create mode 100644 tests/tcg/mips/mips32-dsp/maq_sa_w_phl.c create mode 100644 tests/tcg/mips/mips32-dsp/maq_sa_w_phr.c create mode 100644 tests/tcg/mips/mips32-dsp/mfhi.c create mode 100644 tests/tcg/mips/mips32-dsp/mflo.c create mode 100644 tests/tcg/mips/mips32-dsp/modsub.c create mode 100644 tests/tcg/mips/mips32-dsp/msub.c create mode 100644 tests/tcg/mips/mips32-dsp/msubu.c create mode 100644 tests/tcg/mips/mips32-dsp/mthi.c create mode 100644 tests/tcg/mips/mips32-dsp/mthlip.c create mode 100644 tests/tcg/mips/mips32-dsp/mtlo.c create mode 100644 tests/tcg/mips/mips32-dsp/muleq_s_w_phr.c create mode 100644 tests/tcg/mips/mips32-dsp/muleu_s_ph_qbl.c create mode 100644 tests/tcg/mips/mips32-dsp/muleu_s_ph_qbr.c create mode 100644 tests/tcg/mips/mips32-dsp/mulq_rs_ph.c create mode 100644 tests/tcg/mips/mips32-dsp/mult.c create mode 100644 tests/tcg/mips/mips32-dsp/multu.c create mode 100644 tests/tcg/mips/mips32-dsp/packrl_ph.c create mode 100644 tests/tcg/mips/mips32-dsp/pick_ph.c create mode 100644 tests/tcg/mips/mips32-dsp/pick_qb.c create mode 100644 tests/tcg/mips/mips32-dsp/preceq_w_phl.c create mode 100644 tests/tcg/mips/mips32-dsp/preceq_w_phr.c create mode 100644 tests/tcg/mips/mips32-dsp/precequ_ph_qbl.c create mode 100644 tests/tcg/mips/mips32-dsp/precequ_ph_qbla.c create mode 100644 tests/tcg/mips/mips32-dsp/precequ_ph_qbr.c create mode 100644 tests/tcg/mips/mips32-dsp/precequ_ph_qbra.c create mode 100644 tests/tcg/mips/mips32-dsp/preceu_ph_qbl.c create mode 100644 tests/tcg/mips/mips32-dsp/preceu_ph_qbla.c create mode 100644 tests/tcg/mips/mips32-dsp/preceu_ph_qbr.c create mode 100644 tests/tcg/mips/mips32-dsp/preceu_ph_qbra.c create mode 100644 tests/tcg/mips/mips32-dsp/precrq_ph_w.c create mode 100644 tests/tcg/mips/mips32-dsp/precrq_qb_ph.c create mode 100644 tests/tcg/mips/mips32-dsp/precrq_rs_ph_w.c create mode 100644 tests/tcg/mips/mips32-dsp/precrqu_s_qb_ph.c create mode 100644 tests/tcg/mips/mips32-dsp/raddu_w_qb.c create mode 100644 tests/tcg/mips/mips32-dsp/rddsp.c create mode 100644 tests/tcg/mips/mips32-dsp/repl_ph.c create mode 100644 tests/tcg/mips/mips32-dsp/repl_qb.c create mode 100644 tests/tcg/mips/mips32-dsp/replv_ph.c create mode 100644 tests/tcg/mips/mips32-dsp/replv_qb.c create mode 100644 tests/tcg/mips/mips32-dsp/shilo.c create mode 100644 tests/tcg/mips/mips32-dsp/shilov.c create mode 100644 tests/tcg/mips/mips32-dsp/shll_ph.c create mode 100644 tests/tcg/mips/mips32-dsp/shll_qb.c create mode 100644 tests/tcg/mips/mips32-dsp/shll_s_ph.c create mode 100644 tests/tcg/mips/mips32-dsp/shll_s_w.c create mode 100644 tests/tcg/mips/mips32-dsp/shllv_ph.c create mode 100644 tests/tcg/mips/mips32-dsp/shllv_qb.c create mode 100644 tests/tcg/mips/mips32-dsp/shllv_s_ph.c create mode 100644 tests/tcg/mips/mips32-dsp/shllv_s_w.c create mode 100644 tests/tcg/mips/mips32-dsp/shra_ph.c create mode 100644 tests/tcg/mips/mips32-dsp/shra_r_ph.c create mode 100644 tests/tcg/mips/mips32-dsp/shra_r_w.c create mode 100644 tests/tcg/mips/mips32-dsp/shrav_ph.c create mode 100644 tests/tcg/mips/mips32-dsp/shrav_r_ph.c create mode 100644 tests/tcg/mips/mips32-dsp/shrav_r_w.c create mode 100644 tests/tcg/mips/mips32-dsp/shrl_qb.c create mode 100644 tests/tcg/mips/mips32-dsp/shrlv_qb.c create mode 100644 tests/tcg/mips/mips32-dsp/subq_ph.c create mode 100644 tests/tcg/mips/mips32-dsp/subq_s_ph.c create mode 100644 tests/tcg/mips/mips32-dsp/subq_s_w.c create mode 100644 tests/tcg/mips/mips32-dsp/subu_qb.c create mode 100644 tests/tcg/mips/mips32-dsp/subu_s_qb.c create mode 100644 tests/tcg/mips/mips32-dsp/wrdsp.c create mode 100644 tests/tcg/mips/mips32-dspr2/Makefile create mode 100644 tests/tcg/mips/mips32-dspr2/absq_s_qb.c create mode 100644 tests/tcg/mips/mips32-dspr2/addqh_ph.c create mode 100644 tests/tcg/mips/mips32-dspr2/addqh_r_ph.c create mode 100644 tests/tcg/mips/mips32-dspr2/addqh_r_w.c create mode 100644 tests/tcg/mips/mips32-dspr2/addqh_w.c create mode 100644 tests/tcg/mips/mips32-dspr2/addu_ph.c create mode 100644 tests/tcg/mips/mips32-dspr2/addu_s_ph.c create mode 100644 tests/tcg/mips/mips32-dspr2/adduh_qb.c create mode 100644 tests/tcg/mips/mips32-dspr2/adduh_r_qb.c create mode 100644 tests/tcg/mips/mips32-dspr2/append.c create mode 100644 tests/tcg/mips/mips32-dspr2/balign.c create mode 100644 tests/tcg/mips/mips32-dspr2/cmpgdu_eq_qb.c create mode 100644 tests/tcg/mips/mips32-dspr2/cmpgdu_le_qb.c create mode 100644 tests/tcg/mips/mips32-dspr2/cmpgdu_lt_qb.c create mode 100644 tests/tcg/mips/mips32-dspr2/dpa_w_ph.c create mode 100644 tests/tcg/mips/mips32-dspr2/dpaqx_s_w_ph.c create mode 100644 tests/tcg/mips/mips32-dspr2/dpaqx_sa_w_ph.c create mode 100644 tests/tcg/mips/mips32-dspr2/dpax_w_ph.c create mode 100644 tests/tcg/mips/mips32-dspr2/dps_w_ph.c create mode 100644 tests/tcg/mips/mips32-dspr2/dpsqx_s_w_ph.c create mode 100644 tests/tcg/mips/mips32-dspr2/dpsqx_sa_w_ph.c create mode 100644 tests/tcg/mips/mips32-dspr2/dpsx_w_ph.c create mode 100644 tests/tcg/mips/mips32-dspr2/mul_ph.c create mode 100644 tests/tcg/mips/mips32-dspr2/mul_s_ph.c create mode 100644 tests/tcg/mips/mips32-dspr2/muleq_s_w_phl.c create mode 100644 tests/tcg/mips/mips32-dspr2/mulq_rs_w.c create mode 100644 tests/tcg/mips/mips32-dspr2/mulq_s_ph.c create mode 100644 tests/tcg/mips/mips32-dspr2/mulq_s_w.c create mode 100644 tests/tcg/mips/mips32-dspr2/mulsa_w_ph.c create mode 100644 tests/tcg/mips/mips32-dspr2/mulsaq_s_w_ph.c create mode 100644 tests/tcg/mips/mips32-dspr2/precr_qb_ph.c create mode 100644 tests/tcg/mips/mips32-dspr2/precr_sra_ph_w.c create mode 100644 tests/tcg/mips/mips32-dspr2/precr_sra_r_ph_w.c create mode 100644 tests/tcg/mips/mips32-dspr2/prepend.c create mode 100644 tests/tcg/mips/mips32-dspr2/shra_qb.c create mode 100644 tests/tcg/mips/mips32-dspr2/shra_r_qb.c create mode 100644 tests/tcg/mips/mips32-dspr2/shrav_qb.c create mode 100644 tests/tcg/mips/mips32-dspr2/shrav_r_qb.c create mode 100644 tests/tcg/mips/mips32-dspr2/shrl_ph.c create mode 100644 tests/tcg/mips/mips32-dspr2/shrlv_ph.c create mode 100644 tests/tcg/mips/mips32-dspr2/subqh_ph.c create mode 100644 tests/tcg/mips/mips32-dspr2/subqh_r_ph.c create mode 100644 tests/tcg/mips/mips32-dspr2/subqh_r_w.c create mode 100644 tests/tcg/mips/mips32-dspr2/subqh_w.c create mode 100644 tests/tcg/mips/mips32-dspr2/subu_ph.c create mode 100644 tests/tcg/mips/mips32-dspr2/subu_s_ph.c create mode 100644 tests/tcg/mips/mips32-dspr2/subuh_qb.c create mode 100644 tests/tcg/mips/mips32-dspr2/subuh_r_qb.c create mode 100644 tests/tcg/mips/mips64-dsp/Makefile create mode 100644 tests/tcg/mips/mips64-dsp/absq_s_ob.c create mode 100644 tests/tcg/mips/mips64-dsp/absq_s_ph.c create mode 100644 tests/tcg/mips/mips64-dsp/absq_s_pw.c create mode 100644 tests/tcg/mips/mips64-dsp/absq_s_qh.c create mode 100644 tests/tcg/mips/mips64-dsp/absq_s_w.c create mode 100644 tests/tcg/mips/mips64-dsp/addq_ph.c create mode 100644 tests/tcg/mips/mips64-dsp/addq_pw.c create mode 100644 tests/tcg/mips/mips64-dsp/addq_qh.c create mode 100644 tests/tcg/mips/mips64-dsp/addq_s_ph.c create mode 100644 tests/tcg/mips/mips64-dsp/addq_s_pw.c create mode 100644 tests/tcg/mips/mips64-dsp/addq_s_qh.c create mode 100644 tests/tcg/mips/mips64-dsp/addsc.c create mode 100644 tests/tcg/mips/mips64-dsp/addu_ob.c create mode 100644 tests/tcg/mips/mips64-dsp/addu_qb.c create mode 100644 tests/tcg/mips/mips64-dsp/addu_s_ob.c create mode 100644 tests/tcg/mips/mips64-dsp/addu_s_qb.c create mode 100644 tests/tcg/mips/mips64-dsp/addwc.c create mode 100644 tests/tcg/mips/mips64-dsp/bitrev.c create mode 100644 tests/tcg/mips/mips64-dsp/bposge32.c create mode 100644 tests/tcg/mips/mips64-dsp/bposge64.c create mode 100644 tests/tcg/mips/mips64-dsp/cmp_eq_ph.c create mode 100644 tests/tcg/mips/mips64-dsp/cmp_eq_pw.c create mode 100644 tests/tcg/mips/mips64-dsp/cmp_eq_qh.c create mode 100644 tests/tcg/mips/mips64-dsp/cmp_le_ph.c create mode 100644 tests/tcg/mips/mips64-dsp/cmp_le_pw.c create mode 100644 tests/tcg/mips/mips64-dsp/cmp_le_qh.c create mode 100644 tests/tcg/mips/mips64-dsp/cmp_lt_ph.c create mode 100644 tests/tcg/mips/mips64-dsp/cmp_lt_pw.c create mode 100644 tests/tcg/mips/mips64-dsp/cmp_lt_qh.c create mode 100644 tests/tcg/mips/mips64-dsp/cmpgu_eq_ob.c create mode 100644 tests/tcg/mips/mips64-dsp/cmpgu_eq_qb.c create mode 100644 tests/tcg/mips/mips64-dsp/cmpgu_le_ob.c create mode 100644 tests/tcg/mips/mips64-dsp/cmpgu_le_qb.c create mode 100644 tests/tcg/mips/mips64-dsp/cmpgu_lt_ob.c create mode 100644 tests/tcg/mips/mips64-dsp/cmpgu_lt_qb.c create mode 100644 tests/tcg/mips/mips64-dsp/cmpu_eq_ob.c create mode 100644 tests/tcg/mips/mips64-dsp/cmpu_eq_qb.c create mode 100644 tests/tcg/mips/mips64-dsp/cmpu_le_ob.c create mode 100644 tests/tcg/mips/mips64-dsp/cmpu_le_qb.c create mode 100644 tests/tcg/mips/mips64-dsp/cmpu_lt_ob.c create mode 100644 tests/tcg/mips/mips64-dsp/cmpu_lt_qb.c create mode 100644 tests/tcg/mips/mips64-dsp/dappend.c create mode 100644 tests/tcg/mips/mips64-dsp/dextp.c create mode 100644 tests/tcg/mips/mips64-dsp/dextpdp.c create mode 100644 tests/tcg/mips/mips64-dsp/dextpdpv.c create mode 100644 tests/tcg/mips/mips64-dsp/dextpv.c create mode 100644 tests/tcg/mips/mips64-dsp/dextr_l.c create mode 100644 tests/tcg/mips/mips64-dsp/dextr_r_l.c create mode 100644 tests/tcg/mips/mips64-dsp/dextr_r_w.c create mode 100644 tests/tcg/mips/mips64-dsp/dextr_rs_l.c create mode 100644 tests/tcg/mips/mips64-dsp/dextr_rs_w.c create mode 100644 tests/tcg/mips/mips64-dsp/dextr_s_h.c create mode 100644 tests/tcg/mips/mips64-dsp/dextr_w.c create mode 100644 tests/tcg/mips/mips64-dsp/dextrv_l.c create mode 100644 tests/tcg/mips/mips64-dsp/dextrv_r_l.c create mode 100644 tests/tcg/mips/mips64-dsp/dextrv_r_w.c create mode 100644 tests/tcg/mips/mips64-dsp/dextrv_rs_l.c create mode 100644 tests/tcg/mips/mips64-dsp/dextrv_rs_w.c create mode 100644 tests/tcg/mips/mips64-dsp/dextrv_s_h.c create mode 100644 tests/tcg/mips/mips64-dsp/dextrv_w.c create mode 100644 tests/tcg/mips/mips64-dsp/dinsv.c create mode 100644 tests/tcg/mips/mips64-dsp/dmadd.c create mode 100644 tests/tcg/mips/mips64-dsp/dmaddu.c create mode 100644 tests/tcg/mips/mips64-dsp/dmsub.c create mode 100644 tests/tcg/mips/mips64-dsp/dmsubu.c create mode 100644 tests/tcg/mips/mips64-dsp/dmthlip.c create mode 100644 tests/tcg/mips/mips64-dsp/dpaq_s_w_ph.c create mode 100644 tests/tcg/mips/mips64-dsp/dpaq_s_w_qh.c create mode 100644 tests/tcg/mips/mips64-dsp/dpaq_sa_l_pw.c create mode 100644 tests/tcg/mips/mips64-dsp/dpaq_sa_l_w.c create mode 100644 tests/tcg/mips/mips64-dsp/dpau_h_obl.c create mode 100644 tests/tcg/mips/mips64-dsp/dpau_h_obr.c create mode 100644 tests/tcg/mips/mips64-dsp/dpau_h_qbl.c create mode 100644 tests/tcg/mips/mips64-dsp/dpau_h_qbr.c create mode 100644 tests/tcg/mips/mips64-dsp/dpsq_s_w_ph.c create mode 100644 tests/tcg/mips/mips64-dsp/dpsq_s_w_qh.c create mode 100644 tests/tcg/mips/mips64-dsp/dpsq_sa_l_pw.c create mode 100644 tests/tcg/mips/mips64-dsp/dpsq_sa_l_w.c create mode 100644 tests/tcg/mips/mips64-dsp/dpsu_h_obl.c create mode 100644 tests/tcg/mips/mips64-dsp/dpsu_h_obr.c create mode 100644 tests/tcg/mips/mips64-dsp/dpsu_h_qbl.c create mode 100644 tests/tcg/mips/mips64-dsp/dpsu_h_qbr.c create mode 100644 tests/tcg/mips/mips64-dsp/dshilo.c create mode 100644 tests/tcg/mips/mips64-dsp/dshilov.c create mode 100644 tests/tcg/mips/mips64-dsp/extp.c create mode 100644 tests/tcg/mips/mips64-dsp/extpdp.c create mode 100644 tests/tcg/mips/mips64-dsp/extpdpv.c create mode 100644 tests/tcg/mips/mips64-dsp/extpv.c create mode 100644 tests/tcg/mips/mips64-dsp/extr_r_w.c create mode 100644 tests/tcg/mips/mips64-dsp/extr_rs_w.c create mode 100644 tests/tcg/mips/mips64-dsp/extr_s_h.c create mode 100644 tests/tcg/mips/mips64-dsp/extr_w.c create mode 100644 tests/tcg/mips/mips64-dsp/extrv_r_w.c create mode 100644 tests/tcg/mips/mips64-dsp/extrv_rs_w.c create mode 100644 tests/tcg/mips/mips64-dsp/extrv_s_h.c create mode 100644 tests/tcg/mips/mips64-dsp/extrv_w.c create mode 100644 tests/tcg/mips/mips64-dsp/head.S create mode 100644 tests/tcg/mips/mips64-dsp/insv.c create mode 100644 tests/tcg/mips/mips64-dsp/io.h create mode 100644 tests/tcg/mips/mips64-dsp/lbux.c create mode 100644 tests/tcg/mips/mips64-dsp/ldx.c create mode 100644 tests/tcg/mips/mips64-dsp/lhx.c create mode 100644 tests/tcg/mips/mips64-dsp/lwx.c create mode 100644 tests/tcg/mips/mips64-dsp/madd.c create mode 100644 tests/tcg/mips/mips64-dsp/maddu.c create mode 100644 tests/tcg/mips/mips64-dsp/maq_s_l_pwl.c create mode 100644 tests/tcg/mips/mips64-dsp/maq_s_l_pwr.c create mode 100644 tests/tcg/mips/mips64-dsp/maq_s_w_phl.c create mode 100644 tests/tcg/mips/mips64-dsp/maq_s_w_phr.c create mode 100644 tests/tcg/mips/mips64-dsp/maq_s_w_qhll.c create mode 100644 tests/tcg/mips/mips64-dsp/maq_s_w_qhlr.c create mode 100644 tests/tcg/mips/mips64-dsp/maq_s_w_qhrl.c create mode 100644 tests/tcg/mips/mips64-dsp/maq_s_w_qhrr.c create mode 100644 tests/tcg/mips/mips64-dsp/maq_sa_w_phl.c create mode 100644 tests/tcg/mips/mips64-dsp/maq_sa_w_phr.c create mode 100644 tests/tcg/mips/mips64-dsp/maq_sa_w_qhll.c create mode 100644 tests/tcg/mips/mips64-dsp/maq_sa_w_qhlr.c create mode 100644 tests/tcg/mips/mips64-dsp/maq_sa_w_qhrl.c create mode 100644 tests/tcg/mips/mips64-dsp/maq_sa_w_qhrr.c create mode 100644 tests/tcg/mips/mips64-dsp/mfhi.c create mode 100644 tests/tcg/mips/mips64-dsp/mflo.c create mode 100644 tests/tcg/mips/mips64-dsp/mips_boot.lds create mode 100644 tests/tcg/mips/mips64-dsp/modsub.c create mode 100644 tests/tcg/mips/mips64-dsp/msub.c create mode 100644 tests/tcg/mips/mips64-dsp/msubu.c create mode 100644 tests/tcg/mips/mips64-dsp/mthi.c create mode 100644 tests/tcg/mips/mips64-dsp/mthlip.c create mode 100644 tests/tcg/mips/mips64-dsp/mtlo.c create mode 100644 tests/tcg/mips/mips64-dsp/muleq_s_pw_qhl.c create mode 100644 tests/tcg/mips/mips64-dsp/muleq_s_pw_qhr.c create mode 100644 tests/tcg/mips/mips64-dsp/muleq_s_w_phr.c create mode 100644 tests/tcg/mips/mips64-dsp/muleu_s_ph_qbl.c create mode 100644 tests/tcg/mips/mips64-dsp/muleu_s_ph_qbr.c create mode 100644 tests/tcg/mips/mips64-dsp/muleu_s_qh_obl.c create mode 100644 tests/tcg/mips/mips64-dsp/muleu_s_qh_obr.c create mode 100644 tests/tcg/mips/mips64-dsp/mulq_rs_ph.c create mode 100644 tests/tcg/mips/mips64-dsp/mulq_rs_qh.c create mode 100644 tests/tcg/mips/mips64-dsp/mulsaq_s_l_pw.c create mode 100644 tests/tcg/mips/mips64-dsp/mulsaq_s_w_qh.c create mode 100644 tests/tcg/mips/mips64-dsp/mult.c create mode 100644 tests/tcg/mips/mips64-dsp/multu.c create mode 100644 tests/tcg/mips/mips64-dsp/packrl_ph.c create mode 100644 tests/tcg/mips/mips64-dsp/packrl_pw.c create mode 100644 tests/tcg/mips/mips64-dsp/pick_ob.c create mode 100644 tests/tcg/mips/mips64-dsp/pick_ph.c create mode 100644 tests/tcg/mips/mips64-dsp/pick_pw.c create mode 100644 tests/tcg/mips/mips64-dsp/pick_qb.c create mode 100644 tests/tcg/mips/mips64-dsp/pick_qh.c create mode 100644 tests/tcg/mips/mips64-dsp/preceq_l_pwl.c create mode 100644 tests/tcg/mips/mips64-dsp/preceq_l_pwr.c create mode 100644 tests/tcg/mips/mips64-dsp/preceq_pw_qhl.c create mode 100644 tests/tcg/mips/mips64-dsp/preceq_pw_qhla.c create mode 100644 tests/tcg/mips/mips64-dsp/preceq_pw_qhr.c create mode 100644 tests/tcg/mips/mips64-dsp/preceq_pw_qhra.c create mode 100644 tests/tcg/mips/mips64-dsp/preceq_w_phl.c create mode 100644 tests/tcg/mips/mips64-dsp/preceq_w_phr.c create mode 100644 tests/tcg/mips/mips64-dsp/precequ_ph_qbl.c create mode 100644 tests/tcg/mips/mips64-dsp/precequ_ph_qbla.c create mode 100644 tests/tcg/mips/mips64-dsp/precequ_ph_qbr.c create mode 100644 tests/tcg/mips/mips64-dsp/precequ_ph_qbra.c create mode 100644 tests/tcg/mips/mips64-dsp/precequ_qh_obl.c create mode 100644 tests/tcg/mips/mips64-dsp/precequ_qh_obla.c create mode 100644 tests/tcg/mips/mips64-dsp/precequ_qh_obr.c create mode 100644 tests/tcg/mips/mips64-dsp/precequ_qh_obra.c create mode 100644 tests/tcg/mips/mips64-dsp/preceu_ph_qbl.c create mode 100644 tests/tcg/mips/mips64-dsp/preceu_ph_qbla.c create mode 100644 tests/tcg/mips/mips64-dsp/preceu_ph_qbr.c create mode 100644 tests/tcg/mips/mips64-dsp/preceu_ph_qbra.c create mode 100644 tests/tcg/mips/mips64-dsp/preceu_qh_obl.c create mode 100644 tests/tcg/mips/mips64-dsp/preceu_qh_obla.c create mode 100644 tests/tcg/mips/mips64-dsp/preceu_qh_obr.c create mode 100644 tests/tcg/mips/mips64-dsp/preceu_qh_obra.c create mode 100644 tests/tcg/mips/mips64-dsp/precr_ob_qh.c create mode 100644 tests/tcg/mips/mips64-dsp/precr_sra_qh_pw.c create mode 100644 tests/tcg/mips/mips64-dsp/precr_sra_r_qh_pw.c create mode 100644 tests/tcg/mips/mips64-dsp/precrq_ob_qh.c create mode 100644 tests/tcg/mips/mips64-dsp/precrq_ph_w.c create mode 100644 tests/tcg/mips/mips64-dsp/precrq_pw_l.c create mode 100644 tests/tcg/mips/mips64-dsp/precrq_qb_ph.c create mode 100644 tests/tcg/mips/mips64-dsp/precrq_qh_pw.c create mode 100644 tests/tcg/mips/mips64-dsp/precrq_rs_ph_w.c create mode 100644 tests/tcg/mips/mips64-dsp/precrq_rs_qh_pw.c create mode 100644 tests/tcg/mips/mips64-dsp/precrqu_s_ob_qh.c create mode 100644 tests/tcg/mips/mips64-dsp/precrqu_s_qb_ph.c create mode 100644 tests/tcg/mips/mips64-dsp/prependd.c create mode 100644 tests/tcg/mips/mips64-dsp/prependw.c create mode 100644 tests/tcg/mips/mips64-dsp/printf.c create mode 100644 tests/tcg/mips/mips64-dsp/raddu_l_ob.c create mode 100644 tests/tcg/mips/mips64-dsp/raddu_w_qb.c create mode 100644 tests/tcg/mips/mips64-dsp/rddsp.c create mode 100644 tests/tcg/mips/mips64-dsp/repl_ob.c create mode 100644 tests/tcg/mips/mips64-dsp/repl_ph.c create mode 100644 tests/tcg/mips/mips64-dsp/repl_pw.c create mode 100644 tests/tcg/mips/mips64-dsp/repl_qb.c create mode 100644 tests/tcg/mips/mips64-dsp/repl_qh.c create mode 100644 tests/tcg/mips/mips64-dsp/replv_ob.c create mode 100644 tests/tcg/mips/mips64-dsp/replv_ph.c create mode 100644 tests/tcg/mips/mips64-dsp/replv_pw.c create mode 100644 tests/tcg/mips/mips64-dsp/replv_qb.c create mode 100644 tests/tcg/mips/mips64-dsp/shilo.c create mode 100644 tests/tcg/mips/mips64-dsp/shilov.c create mode 100644 tests/tcg/mips/mips64-dsp/shll_ob.c create mode 100644 tests/tcg/mips/mips64-dsp/shll_ph.c create mode 100644 tests/tcg/mips/mips64-dsp/shll_pw.c create mode 100644 tests/tcg/mips/mips64-dsp/shll_qb.c create mode 100644 tests/tcg/mips/mips64-dsp/shll_qh.c create mode 100644 tests/tcg/mips/mips64-dsp/shll_s_ph.c create mode 100644 tests/tcg/mips/mips64-dsp/shll_s_pw.c create mode 100644 tests/tcg/mips/mips64-dsp/shll_s_qh.c create mode 100644 tests/tcg/mips/mips64-dsp/shll_s_w.c create mode 100644 tests/tcg/mips/mips64-dsp/shllv_ob.c create mode 100644 tests/tcg/mips/mips64-dsp/shllv_ph.c create mode 100644 tests/tcg/mips/mips64-dsp/shllv_pw.c create mode 100644 tests/tcg/mips/mips64-dsp/shllv_qb.c create mode 100644 tests/tcg/mips/mips64-dsp/shllv_qh.c create mode 100644 tests/tcg/mips/mips64-dsp/shllv_s_ph.c create mode 100644 tests/tcg/mips/mips64-dsp/shllv_s_pw.c create mode 100644 tests/tcg/mips/mips64-dsp/shllv_s_qh.c create mode 100644 tests/tcg/mips/mips64-dsp/shllv_s_w.c create mode 100644 tests/tcg/mips/mips64-dsp/shra_ob.c create mode 100644 tests/tcg/mips/mips64-dsp/shra_ph.c create mode 100644 tests/tcg/mips/mips64-dsp/shra_pw.c create mode 100644 tests/tcg/mips/mips64-dsp/shra_qh.c create mode 100644 tests/tcg/mips/mips64-dsp/shra_r_ob.c create mode 100644 tests/tcg/mips/mips64-dsp/shra_r_ph.c create mode 100644 tests/tcg/mips/mips64-dsp/shra_r_pw.c create mode 100644 tests/tcg/mips/mips64-dsp/shra_r_qh.c create mode 100644 tests/tcg/mips/mips64-dsp/shra_r_w.c create mode 100644 tests/tcg/mips/mips64-dsp/shrav_ph.c create mode 100644 tests/tcg/mips/mips64-dsp/shrav_pw.c create mode 100644 tests/tcg/mips/mips64-dsp/shrav_qh.c create mode 100644 tests/tcg/mips/mips64-dsp/shrav_r_ph.c create mode 100644 tests/tcg/mips/mips64-dsp/shrav_r_pw.c create mode 100644 tests/tcg/mips/mips64-dsp/shrav_r_qh.c create mode 100644 tests/tcg/mips/mips64-dsp/shrav_r_w.c create mode 100644 tests/tcg/mips/mips64-dsp/shrl_ob.c create mode 100644 tests/tcg/mips/mips64-dsp/shrl_qb.c create mode 100644 tests/tcg/mips/mips64-dsp/shrl_qh.c create mode 100644 tests/tcg/mips/mips64-dsp/shrlv_ob.c create mode 100644 tests/tcg/mips/mips64-dsp/shrlv_qb.c create mode 100644 tests/tcg/mips/mips64-dsp/shrlv_qh.c create mode 100644 tests/tcg/mips/mips64-dsp/subq_ph.c create mode 100644 tests/tcg/mips/mips64-dsp/subq_pw.c create mode 100644 tests/tcg/mips/mips64-dsp/subq_qh.c create mode 100644 tests/tcg/mips/mips64-dsp/subq_s_ph.c create mode 100644 tests/tcg/mips/mips64-dsp/subq_s_pw.c create mode 100644 tests/tcg/mips/mips64-dsp/subq_s_qh.c create mode 100644 tests/tcg/mips/mips64-dsp/subq_s_w.c create mode 100644 tests/tcg/mips/mips64-dsp/subu_ob.c create mode 100644 tests/tcg/mips/mips64-dsp/subu_qb.c create mode 100644 tests/tcg/mips/mips64-dsp/subu_s_ob.c create mode 100644 tests/tcg/mips/mips64-dsp/subu_s_qb.c create mode 100644 tests/tcg/mips/mips64-dsp/wrdsp.c create mode 100644 tests/tcg/mips/mips64-dspr2/.directory create mode 100644 tests/tcg/mips/mips64-dspr2/Makefile create mode 100644 tests/tcg/mips/mips64-dspr2/absq_s_qb.c create mode 100644 tests/tcg/mips/mips64-dspr2/addqh_ph.c create mode 100644 tests/tcg/mips/mips64-dspr2/addqh_r_ph.c create mode 100644 tests/tcg/mips/mips64-dspr2/addqh_r_w.c create mode 100644 tests/tcg/mips/mips64-dspr2/addqh_w.c create mode 100644 tests/tcg/mips/mips64-dspr2/addu_ph.c create mode 100644 tests/tcg/mips/mips64-dspr2/addu_qh.c create mode 100644 tests/tcg/mips/mips64-dspr2/addu_s_ph.c create mode 100644 tests/tcg/mips/mips64-dspr2/addu_s_qh.c create mode 100644 tests/tcg/mips/mips64-dspr2/adduh_ob.c create mode 100644 tests/tcg/mips/mips64-dspr2/adduh_qb.c create mode 100644 tests/tcg/mips/mips64-dspr2/adduh_r_ob.c create mode 100644 tests/tcg/mips/mips64-dspr2/adduh_r_qb.c create mode 100644 tests/tcg/mips/mips64-dspr2/append.c create mode 100644 tests/tcg/mips/mips64-dspr2/balign.c create mode 100644 tests/tcg/mips/mips64-dspr2/cmpgdu_eq_ob.c create mode 100644 tests/tcg/mips/mips64-dspr2/cmpgdu_eq_qb.c create mode 100644 tests/tcg/mips/mips64-dspr2/cmpgdu_le_ob.c create mode 100644 tests/tcg/mips/mips64-dspr2/cmpgdu_le_qb.c create mode 100644 tests/tcg/mips/mips64-dspr2/cmpgdu_lt_ob.c create mode 100644 tests/tcg/mips/mips64-dspr2/cmpgdu_lt_qb.c create mode 100644 tests/tcg/mips/mips64-dspr2/dbalign.c create mode 100644 tests/tcg/mips/mips64-dspr2/dpa_w_ph.c create mode 100644 tests/tcg/mips/mips64-dspr2/dpa_w_qh.c create mode 100644 tests/tcg/mips/mips64-dspr2/dpaqx_s_w_ph.c create mode 100644 tests/tcg/mips/mips64-dspr2/dpaqx_sa_w_ph.c create mode 100644 tests/tcg/mips/mips64-dspr2/dpax_w_ph.c create mode 100644 tests/tcg/mips/mips64-dspr2/dps_w_ph.c create mode 100644 tests/tcg/mips/mips64-dspr2/dps_w_qh.c create mode 100644 tests/tcg/mips/mips64-dspr2/dpsqx_s_w_ph.c create mode 100644 tests/tcg/mips/mips64-dspr2/dpsqx_sa_w_ph.c create mode 100644 tests/tcg/mips/mips64-dspr2/dpsx_w_ph.c create mode 100644 tests/tcg/mips/mips64-dspr2/head.S create mode 100644 tests/tcg/mips/mips64-dspr2/io.h create mode 100644 tests/tcg/mips/mips64-dspr2/mips_boot.lds create mode 100644 tests/tcg/mips/mips64-dspr2/mul_ph.c create mode 100644 tests/tcg/mips/mips64-dspr2/mul_s_ph.c create mode 100644 tests/tcg/mips/mips64-dspr2/muleq_s_w_phl.c create mode 100644 tests/tcg/mips/mips64-dspr2/mulq_rs_w.c create mode 100644 tests/tcg/mips/mips64-dspr2/mulq_s_ph.c create mode 100644 tests/tcg/mips/mips64-dspr2/mulq_s_w.c create mode 100644 tests/tcg/mips/mips64-dspr2/mulsa_w_ph.c create mode 100644 tests/tcg/mips/mips64-dspr2/mulsaq_s_w_ph.c create mode 100644 tests/tcg/mips/mips64-dspr2/precr_qb_ph.c create mode 100644 tests/tcg/mips/mips64-dspr2/precr_sra_ph_w.c create mode 100644 tests/tcg/mips/mips64-dspr2/precr_sra_r_ph_w.c create mode 100644 tests/tcg/mips/mips64-dspr2/prepend.c create mode 100644 tests/tcg/mips/mips64-dspr2/printf.c create mode 100644 tests/tcg/mips/mips64-dspr2/shra_qb.c create mode 100644 tests/tcg/mips/mips64-dspr2/shra_r_qb.c create mode 100644 tests/tcg/mips/mips64-dspr2/shrav_ob.c create mode 100644 tests/tcg/mips/mips64-dspr2/shrav_qb.c create mode 100644 tests/tcg/mips/mips64-dspr2/shrav_r_ob.c create mode 100644 tests/tcg/mips/mips64-dspr2/shrav_r_qb.c create mode 100644 tests/tcg/mips/mips64-dspr2/shrl_ph.c create mode 100644 tests/tcg/mips/mips64-dspr2/shrlv_ph.c create mode 100644 tests/tcg/mips/mips64-dspr2/subqh_ph.c create mode 100644 tests/tcg/mips/mips64-dspr2/subqh_r_ph.c create mode 100644 tests/tcg/mips/mips64-dspr2/subqh_r_w.c create mode 100644 tests/tcg/mips/mips64-dspr2/subqh_w.c create mode 100644 tests/tcg/mips/mips64-dspr2/subu_ph.c create mode 100644 tests/tcg/mips/mips64-dspr2/subu_qh.c create mode 100644 tests/tcg/mips/mips64-dspr2/subu_s_ph.c create mode 100644 tests/tcg/mips/mips64-dspr2/subu_s_qh.c create mode 100644 tests/tcg/mips/mips64-dspr2/subuh_ob.c create mode 100644 tests/tcg/mips/mips64-dspr2/subuh_qb.c create mode 100644 tests/tcg/mips/mips64-dspr2/subuh_r_ob.c create mode 100644 tests/tcg/mips/mips64-dspr2/subuh_r_qb.c--
1.7.9.5