]> git.ipfire.org Git - thirdparty/gcc.git/commit
[AArch64] Don't apply mode_for_int_vector to scalars
authorrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 23 Oct 2019 10:31:01 +0000 (10:31 +0000)
committerrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 23 Oct 2019 10:31:01 +0000 (10:31 +0000)
commit121edf5c8293bc118dafd1efa9143e64ffb971a7
tree2c35e34c2ea6cae6ca23864a4f8db36d5882824d
parent9e9f7790df6758cfca1425e1b0a3bb8eddd10feb
[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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@277311 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/config/aarch64/aarch64.c