Re: [PATCH 07/18] i386: Rewrite simple integer vector helpers

2022-08-26 Thread Paolo Bonzini
On 8/26/22 02:01, Richard Henderson wrote: -#if SHIFT == 0 -SSE_HELPER_W(helper_pmulhrw, FMULHRW) -#endif   SSE_HELPER_W(helper_pmulhuw, FMULHUW)   SSE_HELPER_W(helper_pmulhw, FMULHW) +#if SHIFT == 0 +void glue(helper_pmulhrw, SUFFIX)(CPUX86State *env, Reg *d, Reg *s) +{ +    d->W(0) =

Re: [PATCH 07/18] i386: Rewrite simple integer vector helpers

2022-08-25 Thread Richard Henderson
On 8/25/22 15:14, Paolo Bonzini wrote: +#define SSE_HELPER_2(name, elem, num, F)\ +void glue(name, SUFFIX)(CPUX86State *env, Reg *d, Reg *s) \ +{ \ + Reg *v = d;

[PATCH 07/18] i386: Rewrite simple integer vector helpers

2022-08-25 Thread Paolo Bonzini
From: Paul Brook Rewrite the "simple" vector integer helpers in preperation for AVX support. While the current code is able to use the same prototype for unary (a = F(b)) and binary (a = F(b, c)) operations, future changes will cause them to diverge. No functional changes to existing helpers