aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Sandiford <richard.sandiford@arm.com>2019-11-13 08:56:54 +0000
committerRichard Sandiford <rsandifo@gcc.gnu.org>2019-11-13 08:56:54 +0000
commit86194087ce338c8d0073d905eb60dca654d6bba3 (patch)
tree143c1258359ee4275f91d2e62a6b8f3e540cbc50
parentae83b9deb87787371cd94b4417e160d41dd0322c (diff)
downloadgcc-86194087ce338c8d0073d905eb60dca654d6bba3.zip
gcc-86194087ce338c8d0073d905eb60dca654d6bba3.tar.gz
gcc-86194087ce338c8d0073d905eb60dca654d6bba3.tar.bz2
[AArch64] Use aarch64_sve_int_mode in SVE ACLE code
This is a like-for-like change at the moment, but is a prerequisite for removing mode_for_int_vector. 2019-11-13 Richard Sandiford <richard.sandiford@arm.com> gcc/ * config/aarch64/aarch64-sve-builtins-functions.h (unary_count::expand): Use aarch64_sve_int_mode instead of mode_for_int_vector. From-SVN: r278120
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/config/aarch64/aarch64-sve-builtins-functions.h2
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index fd3e7a0..e569d17 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
+
+ * config/aarch64/aarch64-sve-builtins-functions.h
+ (unary_count::expand): Use aarch64_sve_int_mode instead of
+ mode_for_int_vector.
+
2019-11-13 Martin Liska <mliska@suse.cz>
* opts.c: Update comment about OPT_LEVELS_2_PLUS_SPEED_ONLY.
diff --git a/gcc/config/aarch64/aarch64-sve-builtins-functions.h b/gcc/config/aarch64/aarch64-sve-builtins-functions.h
index 0df7306..23cc60e 100644
--- a/gcc/config/aarch64/aarch64-sve-builtins-functions.h
+++ b/gcc/config/aarch64/aarch64-sve-builtins-functions.h
@@ -420,7 +420,7 @@ public:
expand (function_expander &e) const OVERRIDE
{
/* The md patterns treat the operand as an integer. */
- machine_mode mode = mode_for_int_vector (e.vector_mode (0)).require ();
+ machine_mode mode = aarch64_sve_int_mode (e.vector_mode (0));
e.args.last () = gen_lowpart (mode, e.args.last ());
if (e.pred == PRED_x)