aboutsummaryrefslogtreecommitdiff
path: root/target/arm/vec_internal.h
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2022-06-08 19:38:58 +0100
committerPeter Maydell <peter.maydell@linaro.org>2022-06-08 19:38:58 +0100
commita613cf2d4ae61fbcdf084103ea10de193bfbe169 (patch)
tree1d380892f1f4fbb80617d7e67199713183927bde /target/arm/vec_internal.h
parent05dd14bdfa89ffeb1a82b08776687d44b538185b (diff)
downloadqemu-a613cf2d4ae61fbcdf084103ea10de193bfbe169.zip
qemu-a613cf2d4ae61fbcdf084103ea10de193bfbe169.tar.gz
qemu-a613cf2d4ae61fbcdf084103ea10de193bfbe169.tar.bz2
target/arm: Move expand_pred_h to vec_internal.h
Move the data to vec_helper.c and the inline to vec_internal.h. Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Message-id: 20220607203306.657998-18-richard.henderson@linaro.org Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'target/arm/vec_internal.h')
-rw-r--r--target/arm/vec_internal.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/target/arm/vec_internal.h b/target/arm/vec_internal.h
index d1a1ea4..1d527fa 100644
--- a/target/arm/vec_internal.h
+++ b/target/arm/vec_internal.h
@@ -59,6 +59,13 @@ static inline uint64_t expand_pred_b(uint8_t byte)
return expand_pred_b_data[byte];
}
+/* Similarly for half-word elements. */
+extern const uint64_t expand_pred_h_data[0x55 + 1];
+static inline uint64_t expand_pred_h(uint8_t byte)
+{
+ return expand_pred_h_data[byte & 0x55];
+}
+
static inline void clear_tail(void *vd, uintptr_t opr_sz, uintptr_t max_sz)
{
uint64_t *d = vd + opr_sz;