diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2020-02-16 13:42:29 -0800 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2020-02-21 16:07:02 +0000 |
commit | 87b74e8b6edd287ea2160caa0ebea725fa8f1ca1 (patch) | |
tree | acbe40c42da070d88cc77e7372cc43b2a55824a3 /ui/sdl2-input.c | |
parent | 7abc8cabad977aeccbbb6e6b2026e68ab8e32c65 (diff) |
target/arm: Vectorize USHL and SSHL
These instructions shift left or right depending on the sign
of the input, and 7 bits are significant to the shift. This
requires several masks and selects in addition to the actual
shifts to form the complete answer.
That said, the operation is still a small improvement even for
two 64-bit elements -- 13 vector operations instead of 2 * 7
integer operations.
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20200216214232.4230-2-richard.henderson@linaro.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'ui/sdl2-input.c')
0 files changed, 0 insertions, 0 deletions