Re: [PATCH 16/18] i386: Rewrite blendv helpers

2022-08-26 Thread Richard Henderson
On 8/25/22 15:14, Paolo Bonzini wrote: +#define BLEND_I128(elem, num, F, b) do {\ +d->elem(b + 0) = F(v->elem(b + 0), s->elem(b + 0), ((imm >> 0) & 1)); \ +d->elem(b + 1) = F(v->elem(b + 1), s->elem(b + 1), ((imm >> 1) & 1)); \ +if (num > 2) {

[PATCH 16/18] i386: Rewrite blendv helpers

2022-08-25 Thread Paolo Bonzini
From: Paul Brook Rewrite the blendv helpers so that they can easily be extended to support the AVX encodings, which make all 4 arguments explicit. No functional changes to the existing helpers Signed-off-by: Paul Brook Message-Id: <20220424220204.2493824-20-p...@nowt.org> Signed-off-by: Paolo