aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Sandiford <richard.sandiford@arm.com>2018-08-23 08:51:38 +0000
committerRichard Sandiford <rsandifo@gcc.gnu.org>2018-08-23 08:51:38 +0000
commit4ec8bb67480a6c92e0de72999cdc6b42c5c181e1 (patch)
tree6f0085ea9723dafcfdb40b92719cc991d933fb90
parent9c44db9f23e7f3ce713a7b78195fc91b002ead11 (diff)
downloadgcc-4ec8bb67480a6c92e0de72999cdc6b42c5c181e1.zip
gcc-4ec8bb67480a6c92e0de72999cdc6b42c5c181e1.tar.gz
gcc-4ec8bb67480a6c92e0de72999cdc6b42c5c181e1.tar.bz2
Fix aarch64_evpc_tbl guard (PR 85910)
This patch fixes a typo in aarch64_expand_vec_perm_const_1 that I introduced as part of the SVE changes. I don't know of any cases in which it has any practical effect, since we'll eventually try to use TBL as a variable permute instead. Having the code is still an important part of defining the interface properly and so we shouldn't simply drop it. 2018-08-23 Richard Sandiford <richard.sandiford@arm.com> gcc/ PR target/85910 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Fix aarch64_evpc_tbl guard. From-SVN: r263803
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/config/aarch64/aarch64.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index f362c369..c7618c6 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2018-08-23 Richard Sandiford <richard.sandiford@arm.com>
+
+ PR target/85910
+ * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Fix
+ aarch64_evpc_tbl guard.
+
2018-08-22 Bernd Edlinger <bernd.edlinger@hotmail.de>
* tree-ssa-dse.c (compute_trims): Avoid folding away undefined
diff --git a/gcc/config/aarch64/aarch64.c b/gcc/config/aarch64/aarch64.c
index 1e8d810..13ffcff 100644
--- a/gcc/config/aarch64/aarch64.c
+++ b/gcc/config/aarch64/aarch64.c
@@ -15461,7 +15461,7 @@ aarch64_expand_vec_perm_const_1 (struct expand_vec_perm_d *d)
return true;
if (d->vec_flags == VEC_SVE_DATA)
return aarch64_evpc_sve_tbl (d);
- else if (d->vec_flags == VEC_SVE_DATA)
+ else if (d->vec_flags == VEC_ADVSIMD)
return aarch64_evpc_tbl (d);
}
return false;