qemu/include/tcg
Richard Henderson 587195bd59 tcg: Add flags argument to bswap opcodes
This will eventually simplify front-end usage, and will allow
backends to unset TCG_TARGET_HAS_MEMORY_BSWAP without loss of
optimization.

The argument is added during expansion, not currently exposed to the
front end translators.  The backends currently only support a flags
value of either TCG_BSWAP_IZ, or (TCG_BSWAP_IZ | TCG_BSWAP_OZ),
since they all require zero top bytes and leave them that way.
At the existing call sites we pass in (TCG_BSWAP_IZ | TCG_BSWAP_OZ),
except for the flags-ignored cases of a 32-bit swap of a 32-bit
value and or a 64-bit swap of a 64-bit value, where we pass 0.

Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
2021-06-29 10:04:57 -07:00
..
tcg-cond.h tcg: expose TCGCond manipulation routines 2021-06-19 14:51:51 -07:00
tcg-gvec-desc.h tcg: Adjust simd_desc size encoding 2020-10-08 05:57:32 -05:00
tcg-mo.h tcg: Move TCG headers to include/tcg/ 2020-01-15 15:13:10 -10:00
tcg-op-gvec.h tcg: Implement tcg_gen_vec_add{sub}32_tl 2021-06-29 10:04:57 -07:00
tcg-op.h tcg: Make gen_dup_i32/i64() public as tcg_gen_dup_i32/i64 2021-06-21 17:12:50 +01:00
tcg-opc.h tcg: Add flags argument to bswap opcodes 2021-06-29 10:04:57 -07:00
tcg.h tcg: Add flags argument to bswap opcodes 2021-06-29 10:04:57 -07:00