From f39b92e2c485be81ec154d2986495305d5926688 Mon Sep 17 00:00:00 2001 From: Richard Sandiford Date: Mon, 25 Sep 2017 13:26:12 +0000 Subject: Change permute index type to unsigned short This patch changes the element type of (auto_)vec_perm_indices from unsigned char to unsigned short. This is needed for fixed-length 2048-bit SVE. (SVE is variable-length by default, but it's possible to ask for specific vector lengths if you want to.) 2017-09-25 Richard Sandiford gcc/ * target.h (vec_perm_indices): Use unsigned short rather than unsigned char. (auto_vec_perm_indices): Likewise. * config/aarch64/aarch64.c (aarch64_vectorize_vec_perm_const_ok): Use unsigned int rather than unsigned char. * config/arm/arm.c (arm_vectorize_vec_perm_const_ok): Likewise. From-SVN: r253150 --- gcc/target.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gcc/target.h') diff --git a/gcc/target.h b/gcc/target.h index 64e1d68..ac43b16 100644 --- a/gcc/target.h +++ b/gcc/target.h @@ -193,11 +193,11 @@ enum vect_cost_model_location { /* The type to use for vector permutes with a constant permute vector. Each entry is an index into the concatenated input vectors. */ -typedef vec vec_perm_indices; +typedef vec vec_perm_indices; /* Same, but can be used to construct local permute vectors that are automatically freed. */ -typedef auto_vec auto_vec_perm_indices; +typedef auto_vec auto_vec_perm_indices; /* The target structure. This holds all the backend hooks. */ #define DEFHOOKPOD(NAME, DOC, TYPE, INIT) TYPE NAME; -- cgit v1.1