[AArch64] Tighten mode checks in aarch64_builtin_vectorized_function
authorRichard Sandiford <richard.sandiford@arm.com>
Fri, 10 Jan 2020 15:05:40 +0000 (15:05 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Fri, 10 Jan 2020 15:05:40 +0000 (15:05 +0000)
commit7cee96370cf624dbda81fcd3cd32ddb48a2fc3d3
tree8b555486f4a8f943cacfa283a8a8a88dada8d7b9
parentd29c7f605fc6b531eaf351bf5909e7c551fc6b9e
[AArch64] Tighten mode checks in aarch64_builtin_vectorized_function

aarch64_builtin_vectorized_function checked vectors based on the
number of elements and the element mode.  This doesn't interact
well with fixed-length 128-bit SVE, where SVE modes can have those
same properties.  (And we can't just use the built-ins for SVE because
the types use a different ABI.  SVE handles this kind of thing using
optabs instead.)

2020-01-10  Richard Sandiford  <richard.sandiford@arm.com>

gcc/
* config/aarch64/aarch64-builtins.c
(aarch64_builtin_vectorized_function): Check for specific vector modes,
rather than checking the number of elements and the element mode.

From-SVN: r280114
gcc/ChangeLog
gcc/config/aarch64/aarch64-builtins.c