Skip to content

Commit

Permalink
tcg: Add tcg_gen_mov_ptr
Browse files Browse the repository at this point in the history
Add an interface to perform moves between TCGv_ptr.

Reviewed-by: Matheus Ferst <matheus.ferst@eldorado.org.br>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
  • Loading branch information
rth7680 committed Jun 2, 2022
1 parent 1e62a82 commit dc24c99
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions include/tcg/tcg-op.h
Original file line number Diff line number Diff line change
Expand Up @@ -1288,6 +1288,11 @@ static inline void tcg_gen_addi_ptr(TCGv_ptr r, TCGv_ptr a, intptr_t b)
glue(tcg_gen_addi_,PTR)((NAT)r, (NAT)a, b);
}

static inline void tcg_gen_mov_ptr(TCGv_ptr d, TCGv_ptr s)
{
glue(tcg_gen_mov_,PTR)((NAT)d, (NAT)s);
}

static inline void tcg_gen_brcondi_ptr(TCGCond cond, TCGv_ptr a,
intptr_t b, TCGLabel *label)
{
Expand Down

0 comments on commit dc24c99

Please sign in to comment.