[AArch64] Don't apply mode_for_int_vector to scalars
authorRichard Sandiford <richard.sandiford@arm.com>
Wed, 23 Oct 2019 10:31:01 +0000 (10:31 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Wed, 23 Oct 2019 10:31:01 +0000 (10:31 +0000)
commitd7814449f229cecdee48afe381519a61ea7e3378
tree2c35e34c2ea6cae6ca23864a4f8db36d5882824d
parent6bd7e7069504668eb37b2b9c976f4f0942666ef2
[AArch64] Don't apply mode_for_int_vector to scalars

aarch64_emit_approx_sqrt handles both vectors and scalars and was using
mode_for_int_vector even for the scalar case.  Although that happened
to work, it isn't how mode_for_int_vector is supposed to be used.

2019-10-23  Richard Sandiford  <richard.sandiford@arm.com>

gcc/
* config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Use
int_mode_for_mode rather than mode_for_int_vector for scalars.

From-SVN: r277311
gcc/ChangeLog
gcc/config/aarch64/aarch64.c