On 4/11/19 12:08 AM, David Hildenbrand wrote: > Similar to VECTOR AVERAGE but without sign extension. > > Signed-off-by: David Hildenbrand <da...@redhat.com> > --- > target/s390x/helper.h | 2 ++ > target/s390x/insn-data.def | 2 ++ > target/s390x/translate_vx.inc.c | 48 +++++++++++++++++++++++++++++++++ > target/s390x/vec_int_helper.c | 16 +++++++++++ > 4 files changed, 68 insertions(+)
The vector expansion for vavg applies here too, except with shri instead of sari. And of course you code is correct as-is. Reviewed-by: Richard Henderson <richard.hender...@linaro.org> r~