diff options
author | Richard Sandiford <richard.sandiford@arm.com> | 2019-12-02 17:48:08 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2019-12-02 17:48:08 +0000 |
commit | c0e0174bbd7009d34e78484bbaa9e0353939819c (patch) | |
tree | cbb404f121c885dfdd5f835dd7e55c8e9b294141 /gcc/fold-const.c | |
parent | 6da4c454acee4dac53c4c549fa1caeb73fe1f82b (diff) | |
download | gcc-c0e0174bbd7009d34e78484bbaa9e0353939819c.zip gcc-c0e0174bbd7009d34e78484bbaa9e0353939819c.tar.gz gcc-c0e0174bbd7009d34e78484bbaa9e0353939819c.tar.bz2 |
[AArch64] Catch attempts to use SVE types when SVE is disabled
This patch reports an error if code tries to use variable-length
SVE types when SVE is disabled. We already report a similar error
for definitions or uses of SVE functions when SVE is disabled.
2019-12-02 Richard Sandiford <richard.sandiford@arm.com>
gcc/
* config/aarch64/aarch64.c (aarch64_report_sve_required): New function.
(aarch64_expand_mov_immediate): Use it when attempting to measure
the length of an SVE vector.
(aarch64_mov_operand_p): Only allow SVE CNT immediates when
SVE is enabled.
gcc/testsuite/
* gcc.target/aarch64/sve/acle/general/nosve_4.c: New test.
* gcc.target/aarch64/sve/acle/general/nosve_5.c: Likewise.
* gcc.target/aarch64/sve/pcs/nosve_4.c: Expected a second error
for the copy.
* gcc.target/aarch64/sve/pcs/nosve_5.c: Likewise.
* gcc.target/aarch64/sve/pcs/nosve_6.c: Likewise.
From-SVN: r278909
Diffstat (limited to 'gcc/fold-const.c')
0 files changed, 0 insertions, 0 deletions