target-mips: convert single case switch into if statement

Signed-off-by: Leon Alrae <leon.alrae@imgtec.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
Leon Alrae 2014-12-10 15:39:42 +00:00
parent 66991d1103
commit 00fb4a1181
1 changed files with 1 additions and 3 deletions

View File

@ -1882,10 +1882,8 @@ static inline void gen_r6_cmp_ ## fmt(DisasContext * ctx, int n, \
{ \
TCGv_i ## bits fp0 = tcg_temp_new_i ## bits(); \
TCGv_i ## bits fp1 = tcg_temp_new_i ## bits(); \
switch (ifmt) { \
case FMT_D: \
if (ifmt == FMT_D) { \
check_cp1_registers(ctx, fs | ft | fd); \
break; \
} \
gen_ldcmp_fpr ## bits(ctx, fp0, fs); \
gen_ldcmp_fpr ## bits(ctx, fp1, ft); \