mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 09:43:56 -06:00
tcg: Add is_unsigned_cond
Before we rearrange the TCG_COND enumeration, add a predicate for the (single) use of comparisons vs TCGCond. Signed-off-by: Richard Henderson <rth@twiddle.net> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
This commit is contained in:
parent
457ebdcd91
commit
bcc66562ad
2 changed files with 6 additions and 1 deletions
|
@ -298,6 +298,11 @@ static inline TCGCond tcg_unsigned_cond(TCGCond c)
|
|||
return (c >= TCG_COND_LT && c <= TCG_COND_GT ? c + 4 : c);
|
||||
}
|
||||
|
||||
static inline bool is_unsigned_cond(TCGCond c)
|
||||
{
|
||||
return c >= TCG_COND_LTU;
|
||||
}
|
||||
|
||||
#define TEMP_VAL_DEAD 0
|
||||
#define TEMP_VAL_REG 1
|
||||
#define TEMP_VAL_MEM 2
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue