aarch64: Check predicate when using gen_vec_duplicate [PR98657]
authorAndre Vieira <andre.simoesdiasvieira@arm.com>
Fri, 19 Feb 2021 09:13:02 +0000 (09:13 +0000)
committerAndre Vieira <andre.simoesdiasvieira@arm.com>
Fri, 19 Feb 2021 09:13:02 +0000 (09:13 +0000)
commit6070e39cd0af6ac4a88004c8b1b6a900a8bbce36
treea6774744bd7c846afc12f7d1416c5a1425ca6341
parent0b2b7ef3676920c120d9b329e5b65924650ab44c
aarch64: Check predicate when using gen_vec_duplicate [PR98657]

Prevents generation of a vec_duplicate with illegal predicate in
<ASHIFT:optab><mode>3.

gcc/ChangeLog:
2021-02-19  Andre Vieira  <andre.simoesdiasvieira@arm.com>

PR target/98657
* config/aarch64/aarch64-sve.md (<ASHIFT:optab><mode>3): Use
expand_vector_broadcast' to emit the vec_duplicate operand.

gcc/testsuite/ChangeLog:
2021-02-19  Andre Vieira  <andre.simoesdiasvieira@arm.com>

PR target/98657
* gcc.target/aarch64/sve/pr98657.c: New test.
gcc/config/aarch64/aarch64-sve.md
gcc/testsuite/gcc.target/aarch64/sve/pr98657.c [new file with mode: 0644]