mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
target-alpha: Special case cmpbge with zero
Knowing the comparator is zero leads to a simpler operation. Signed-off-by: Richard Henderson <rth@twiddle.net>
This commit is contained in:
parent
5f2a80adc6
commit
112e4518f0
3 changed files with 21 additions and 1 deletions
|
@ -1507,7 +1507,12 @@ static ExitStatus translate_one(DisasContext *ctx, uint32_t insn)
|
|||
break;
|
||||
case 0x0F:
|
||||
/* CMPBGE */
|
||||
gen_helper_cmpbge(vc, va, vb);
|
||||
if (ra == 31) {
|
||||
/* Special case 0 >= X as X == 0. */
|
||||
gen_helper_cmpbe0(vc, vb);
|
||||
} else {
|
||||
gen_helper_cmpbge(vc, va, vb);
|
||||
}
|
||||
break;
|
||||
case 0x12:
|
||||
/* S8ADDL */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue