mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 10:13:56 -06:00
tcg: Use TCGCond where appropriate.
Use the TCGCond enumeration type in the brcond and setcond related prototypes in tcg-op.h and each code generator. Signed-off-by: Richard Henderson <rth@twiddle.net> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
This commit is contained in:
parent
a975160954
commit
8a56e84091
7 changed files with 39 additions and 37 deletions
|
@ -520,7 +520,7 @@ static void tcg_out_cmp(TCGContext *s, TCGArg c1, TCGArg c2, int c2const)
|
|||
tcg_out_arithc(s, TCG_REG_G0, c1, c2, c2const, ARITH_SUBCC);
|
||||
}
|
||||
|
||||
static void tcg_out_brcond_i32(TCGContext *s, int cond,
|
||||
static void tcg_out_brcond_i32(TCGContext *s, TCGCond cond,
|
||||
TCGArg arg1, TCGArg arg2, int const_arg2,
|
||||
int label_index)
|
||||
{
|
||||
|
@ -530,7 +530,7 @@ static void tcg_out_brcond_i32(TCGContext *s, int cond,
|
|||
}
|
||||
|
||||
#if TCG_TARGET_REG_BITS == 64
|
||||
static void tcg_out_brcond_i64(TCGContext *s, int cond,
|
||||
static void tcg_out_brcond_i64(TCGContext *s, TCGCond cond,
|
||||
TCGArg arg1, TCGArg arg2, int const_arg2,
|
||||
int label_index)
|
||||
{
|
||||
|
@ -539,7 +539,7 @@ static void tcg_out_brcond_i64(TCGContext *s, int cond,
|
|||
tcg_out_nop(s);
|
||||
}
|
||||
#else
|
||||
static void tcg_out_brcond2_i32(TCGContext *s, int cond,
|
||||
static void tcg_out_brcond2_i32(TCGContext *s, TCGCond cond,
|
||||
TCGArg al, TCGArg ah,
|
||||
TCGArg bl, int blconst,
|
||||
TCGArg bh, int bhconst, int label_dest)
|
||||
|
@ -587,7 +587,7 @@ static void tcg_out_brcond2_i32(TCGContext *s, int cond,
|
|||
}
|
||||
#endif
|
||||
|
||||
static void tcg_out_setcond_i32(TCGContext *s, int cond, TCGArg ret,
|
||||
static void tcg_out_setcond_i32(TCGContext *s, TCGCond cond, TCGArg ret,
|
||||
TCGArg c1, TCGArg c2, int c2const)
|
||||
{
|
||||
TCGArg t;
|
||||
|
@ -643,7 +643,7 @@ static void tcg_out_setcond_i32(TCGContext *s, int cond, TCGArg ret,
|
|||
}
|
||||
|
||||
#if TCG_TARGET_REG_BITS == 64
|
||||
static void tcg_out_setcond_i64(TCGContext *s, int cond, TCGArg ret,
|
||||
static void tcg_out_setcond_i64(TCGContext *s, TCGCond cond, TCGArg ret,
|
||||
TCGArg c1, TCGArg c2, int c2const)
|
||||
{
|
||||
tcg_out_cmp(s, c1, c2, c2const);
|
||||
|
@ -653,7 +653,7 @@ static void tcg_out_setcond_i64(TCGContext *s, int cond, TCGArg ret,
|
|||
| MOVCC_XCC | INSN_IMM11(1));
|
||||
}
|
||||
#else
|
||||
static void tcg_out_setcond2_i32(TCGContext *s, int cond, TCGArg ret,
|
||||
static void tcg_out_setcond2_i32(TCGContext *s, TCGCond cond, TCGArg ret,
|
||||
TCGArg al, TCGArg ah,
|
||||
TCGArg bl, int blconst,
|
||||
TCGArg bh, int bhconst)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue