target/arm: Generalize inl_qrdmlah_* helper functions
authorRichard Henderson <richard.henderson@linaro.org>
Fri, 28 Aug 2020 09:02:49 +0000 (10:02 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 28 Aug 2020 09:02:49 +0000 (10:02 +0100)
commitd21798856b227a20a0a41640236af445f4f4aeb0
treeb2a1a50658abc5e720485eb25f9570699429b1f0
parent830d1a5a05619b0d407040ab8418018076765249
target/arm: Generalize inl_qrdmlah_* helper functions

Unify add/sub helpers and add a parameter for rounding.
This will allow saturating non-rounding to reuse this code.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
[PMM: fixed accidental use of '=' rather than '+=' in do_sqrdmlah_s]
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Message-id: 20200815013145.539409-15-richard.henderson@linaro.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
target/arm/vec_helper.c