mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-03-24 22:25:11 +00:00
target-mips: fix logically dead code reported by Coverity
Make use of CMPOP in floating-point compare instructions. Backports commit 47ada0ad3431b39863918dc80386634693d317b5 from qemu
This commit is contained in:
parent
884fe72f54
commit
b045c2c99a
|
@ -9638,6 +9638,7 @@ static void gen_farith (DisasContext *ctx, enum fopcode op1,
|
||||||
gen_cmp_s(ctx, func-48, ft, fs, cc);
|
gen_cmp_s(ctx, func-48, ft, fs, cc);
|
||||||
opn = condnames[func-48];
|
opn = condnames[func-48];
|
||||||
}
|
}
|
||||||
|
optype = CMPOP;
|
||||||
break;
|
break;
|
||||||
case OPC_ADD_D:
|
case OPC_ADD_D:
|
||||||
check_cp1_registers(ctx, fs | ft | fd);
|
check_cp1_registers(ctx, fs | ft | fd);
|
||||||
|
@ -10122,6 +10123,7 @@ static void gen_farith (DisasContext *ctx, enum fopcode op1,
|
||||||
gen_cmp_d(ctx, func-48, ft, fs, cc);
|
gen_cmp_d(ctx, func-48, ft, fs, cc);
|
||||||
opn = condnames[func-48];
|
opn = condnames[func-48];
|
||||||
}
|
}
|
||||||
|
optype = CMPOP;
|
||||||
break;
|
break;
|
||||||
case OPC_CVT_S_D:
|
case OPC_CVT_S_D:
|
||||||
check_cp1_registers(ctx, fs);
|
check_cp1_registers(ctx, fs);
|
||||||
|
@ -10547,6 +10549,7 @@ static void gen_farith (DisasContext *ctx, enum fopcode op1,
|
||||||
gen_cmp_ps(ctx, func-48, ft, fs, cc);
|
gen_cmp_ps(ctx, func-48, ft, fs, cc);
|
||||||
opn = condnames[func-48];
|
opn = condnames[func-48];
|
||||||
}
|
}
|
||||||
|
optype = CMPOP;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
MIPS_INVAL(opn);
|
MIPS_INVAL(opn);
|
||||||
|
|
Loading…
Reference in a new issue