Re: [PATCH v2 2/6] target/hexagon: add GVec overrides for HVX saturating add/sub

Richard Henderson <[email protected]>
Newsgroups gmane.comp.emulators.qemu
Message-ID <[email protected]>
On 8/5/26 21:32, Brian Cain wrote:
> +#define fGEN_TCG_PAIR_ADDSUB(OP, VECE, DST, SRC_A, SRC_B) \
> +    do { \
> +        tcg_gen_gvec_##OP(VECE, DST, SRC_A, SRC_B, \
> +                         VECTOR_SIZE_BYTE, VECTOR_SIZE_BYTE); \
> +        tcg_gen_gvec_##OP(VECE, DST + sizeof(MMVector), \
> +                         SRC_A + sizeof(MMVector), \
> +                         SRC_B + sizeof(MMVector), \
> +                         VECTOR_SIZE_BYTE, VECTOR_SIZE_BYTE); \
> +    } while (0)

Is this on a MMVectorPair structure?  If so, you can implement this with one operation of 
size 2 * VECTOR_SIZE_BYTE instead of two separate operations.


r~
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.