diff options
author | Christophe Lyon <christophe.lyon@linaro.org> | 2023-08-10 15:39:52 +0000 |
---|---|---|
committer | Christophe Lyon <christophe.lyon@linaro.org> | 2023-08-28 08:55:29 +0000 |
commit | 23570163379fb08f25d95fbe184f3cd2468aa1b1 (patch) | |
tree | cab0b94e0ce9262fa9ac4f7063aaf47277a572cd /gcc | |
parent | 979e0fbf53cdf5ea2b885ddbb1369bfd3a7402f4 (diff) | |
download | gcc-23570163379fb08f25d95fbe184f3cd2468aa1b1.zip gcc-23570163379fb08f25d95fbe184f3cd2468aa1b1.tar.gz gcc-23570163379fb08f25d95fbe184f3cd2468aa1b1.tar.bz2 |
arm: [MVE intrinsics] fix binary_acca_int32 and binary_acca_int64 shapes
Fix these two shapes, where we were failing to check the last
non-predicate parameter.
2023-08-14 Christophe Lyon <christophe.lyon@linaro.org>
gcc/
* config/arm/arm-mve-builtins-shapes.cc (binary_acca_int32): Fix loop bound.
(binary_acca_int64): Likewise.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/config/arm/arm-mve-builtins-shapes.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/config/arm/arm-mve-builtins-shapes.cc b/gcc/config/arm/arm-mve-builtins-shapes.cc index 1b4960f..ef50c66 100644 --- a/gcc/config/arm/arm-mve-builtins-shapes.cc +++ b/gcc/config/arm/arm-mve-builtins-shapes.cc @@ -439,7 +439,7 @@ struct binary_acca_int32_def : public overloaded_base<0> || (type = r.infer_vector_type (1)) == NUM_TYPE_SUFFIXES) return error_mark_node; - unsigned int last_arg = i; + unsigned int last_arg = i + 1; for (i = 1; i < last_arg; i++) if (!r.require_matching_vector_type (i, type)) return error_mark_node; @@ -476,7 +476,7 @@ struct binary_acca_int64_def : public overloaded_base<0> || (type = r.infer_vector_type (1)) == NUM_TYPE_SUFFIXES) return error_mark_node; - unsigned int last_arg = i; + unsigned int last_arg = i + 1; for (i = 1; i < last_arg; i++) if (!r.require_matching_vector_type (i, type)) return error_mark_node; |