mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 17:53:56 -06:00
tcg: Add basic data movement for TCGv_i128
Add code generation functions for data movement between TCGv_i128 (mov) and to/from TCGv_i64 (concat, extract). Reviewed-by: Alex Bennée <alex.bennee@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
43eef72f41
commit
4771e71c28
3 changed files with 37 additions and 0 deletions
|
@ -117,4 +117,17 @@ extern TCGv_i32 TCGV_LOW(TCGv_i64) QEMU_ERROR("32-bit code path is reachable");
|
|||
extern TCGv_i32 TCGV_HIGH(TCGv_i64) QEMU_ERROR("32-bit code path is reachable");
|
||||
#endif
|
||||
|
||||
static inline TCGv_i64 TCGV128_LOW(TCGv_i128 t)
|
||||
{
|
||||
/* For 32-bit, offset by 2, which may then have TCGV_{LOW,HIGH} applied. */
|
||||
int o = HOST_BIG_ENDIAN ? 64 / TCG_TARGET_REG_BITS : 0;
|
||||
return temp_tcgv_i64(tcgv_i128_temp(t) + o);
|
||||
}
|
||||
|
||||
static inline TCGv_i64 TCGV128_HIGH(TCGv_i128 t)
|
||||
{
|
||||
int o = HOST_BIG_ENDIAN ? 0 : 64 / TCG_TARGET_REG_BITS;
|
||||
return temp_tcgv_i64(tcgv_i128_temp(t) + o);
|
||||
}
|
||||
|
||||
#endif /* TCG_INTERNAL_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue