aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeon Alrae <leon.alrae@imgtec.com>2015-07-14 11:08:14 +0100
committerLeon Alrae <leon.alrae@imgtec.com>2015-07-15 14:07:25 +0100
commit47ada0ad3431b39863918dc80386634693d317b5 (patch)
treeb5ff9d16d126f213620756f2b4f1943b18238f7c
parentfe87c2b36ae9c1c9a5279f3891f3bce1b573baa0 (diff)
target-mips: fix logically dead code reported by Coverity
Make use of CMPOP in floating-point compare instructions. Signed-off-by: Leon Alrae <leon.alrae@imgtec.com> Reviewed-by: Aurelien Jarno <aurelien@aurel32.net>
-rw-r--r--target-mips/translate.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/target-mips/translate.c b/target-mips/translate.c
index 73028572c9..4a1ffdbd94 100644
--- a/target-mips/translate.c
+++ b/target-mips/translate.c
@@ -9552,6 +9552,7 @@ static void gen_farith (DisasContext *ctx, enum fopcode op1,
gen_cmp_s(ctx, func-48, ft, fs, cc);
opn = condnames[func-48];
}
+ optype = CMPOP;
break;
case OPC_ADD_D:
check_cp1_registers(ctx, fs | ft | fd);
@@ -10036,6 +10037,7 @@ static void gen_farith (DisasContext *ctx, enum fopcode op1,
gen_cmp_d(ctx, func-48, ft, fs, cc);
opn = condnames[func-48];
}
+ optype = CMPOP;
break;
case OPC_CVT_S_D:
check_cp1_registers(ctx, fs);
@@ -10461,6 +10463,7 @@ static void gen_farith (DisasContext *ctx, enum fopcode op1,
gen_cmp_ps(ctx, func-48, ft, fs, cc);
opn = condnames[func-48];
}
+ optype = CMPOP;
break;
default:
MIPS_INVAL(opn);