aarch64: Fix an ICE in aarch64_short_vector_p [PR95459]
authorFei Yang <felix.yang@huawei.com>
Tue, 2 Jun 2020 17:17:34 +0000 (18:17 +0100)
committerRichard Sandiford <richard.sandiford@arm.com>
Tue, 2 Jun 2020 17:17:34 +0000 (18:17 +0100)
commitb2672dd630c81513e08829adc63294ffeedf5693
treebe703c8771f526c5ebc24a71eda0d6e1358ce009
parenteca833b81289438ec5ae3ed4c77ffb49cfb65f34
aarch64: Fix an ICE in aarch64_short_vector_p [PR95459]

In aarch64_short_vector_p, we are simply checking whether a type (and a mode)
is a 64/128-bit short vector or not.  This should not be affected by the value
of TARGET_SVE.  Simply leave later code to report an error if SVE is disabled.

2020-06-02  Felix Yang  <felix.yang@huawei.com>

gcc/
PR target/95459
* config/aarch64/aarch64.c (aarch64_short_vector_p):
Leave later code to report an error if SVE is disabled.

gcc/testsuite/
PR target/95459
* gcc.target/aarch64/mgeneral-regs_6.c: New test.
gcc/config/aarch64/aarch64.c
gcc/testsuite/gcc.target/aarch64/mgeneral-regs_6.c [new file with mode: 0644]