mirror of
https://git.proxmox.com/git/qemu
synced 2025-07-03 08:38:46 +00:00
tcg: Add tcg_unsigned_cond.
Returns an unsigned version of a signed condition; returns the original condition otherwise. Signed-off-by: Richard Henderson <rth@twiddle.net> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
parent
ecbe1576b3
commit
ff44c2f3c8
@ -205,6 +205,11 @@ typedef enum {
|
|||||||
TCG_COND_GTU,
|
TCG_COND_GTU,
|
||||||
} TCGCond;
|
} TCGCond;
|
||||||
|
|
||||||
|
static inline TCGCond tcg_unsigned_cond(TCGCond c)
|
||||||
|
{
|
||||||
|
return (c >= TCG_COND_LT && c <= TCG_COND_GT ? c + 4 : c);
|
||||||
|
}
|
||||||
|
|
||||||
#define TEMP_VAL_DEAD 0
|
#define TEMP_VAL_DEAD 0
|
||||||
#define TEMP_VAL_REG 1
|
#define TEMP_VAL_REG 1
|
||||||
#define TEMP_VAL_MEM 2
|
#define TEMP_VAL_MEM 2
|
||||||
|
Loading…
Reference in New Issue
Block a user