target/arm: Reorganize SVE WHILE
commitbbd0968c458d48e34a08b8694fa3309a9fe1c9e7
authorRichard Henderson <richard.henderson@linaro.org>
Tue, 14 Aug 2018 16:17:22 +0000 (14 17:17 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 14 Aug 2018 16:17:22 +0000 (14 17:17 +0100)
tree2fbc7ecabca4fcc7f93db569ec697688e42fbe99
parent7a31e0c6c68baffab0867bdd92b8744568b1d3ba
target/arm: Reorganize SVE WHILE

The pseudocode for this operation is an increment + compare loop,
so comparing <= the maximum integer produces an all-true predicate.

Rather than bound in both the inline code and the helper, pass the
helper the number of predicate bits to set instead of the number
of predicate elements to set.

Reported-by: Laurent Desnogues <laurent.desnogues@gmail.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Laurent Desnogues <laurent.desnogues@gmail.com>
Tested-by: Alex Bennée <alex.bennee@linaro.org>
Tested-by: Laurent Desnogues <laurent.desnogues@gmail.com>
Message-id: 20180801123111.3595-4-richard.henderson@linaro.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
target/arm/sve_helper.c
target/arm/translate-sve.c