* config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
expression.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@210005
138bc75d-0d04-0410-961f-
82ee72b054a4
+2014-05-02 Alan Lawrence <alan.lawrence@arm.com>
+
+ * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
+ expression.
+
2014-05-02 Marek Polacek <polacek@redhat.com>
* doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
unsigned i, nelt = d->nelt;
rtx x;
+ gcc_assert (nelt == (nelt & -nelt));
for (i = 0; i < nelt; ++i)
- d->perm[i] = (d->perm[i] + nelt) & (2 * nelt - 1);
+ d->perm[i] ^= nelt; /* Keep the same index, but in the other vector. */
x = d->op0;
d->op0 = d->op1;