mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-09 18:44:58 -06:00
tcg: Remove TCGV_EQUAL*
When we used structures for TCGv_*, we needed a macro in order to perform a comparison. Now that we use pointers, this is just clutter. Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Emilio G. Cota <cota@braap.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
dc41aa7d34
commit
11f4e8f8bf
6 changed files with 11 additions and 17 deletions
|
@ -839,7 +839,7 @@ static void cris_alu(DisasContext *dc, int op,
|
|||
}
|
||||
tcg_gen_or_tl(d, d, tmp);
|
||||
}
|
||||
if (!TCGV_EQUAL(tmp, d)) {
|
||||
if (tmp != d) {
|
||||
tcg_temp_free(tmp);
|
||||
}
|
||||
}
|
||||
|
@ -1162,7 +1162,7 @@ static inline void t_gen_sext(TCGv d, TCGv s, int size)
|
|||
tcg_gen_ext8s_i32(d, s);
|
||||
} else if (size == 2) {
|
||||
tcg_gen_ext16s_i32(d, s);
|
||||
} else if (!TCGV_EQUAL(d, s)) {
|
||||
} else {
|
||||
tcg_gen_mov_tl(d, s);
|
||||
}
|
||||
}
|
||||
|
@ -1173,7 +1173,7 @@ static inline void t_gen_zext(TCGv d, TCGv s, int size)
|
|||
tcg_gen_ext8u_i32(d, s);
|
||||
} else if (size == 2) {
|
||||
tcg_gen_ext16u_i32(d, s);
|
||||
} else if (!TCGV_EQUAL(d, s)) {
|
||||
} else {
|
||||
tcg_gen_mov_tl(d, s);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue