This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[committed] PR83680: Inverted test in arm_vectorize_vec_perm_const
- From: Richard Sandiford <richard dot sandiford at linaro dot org>
- To: gcc-patches at gcc dot gnu dot org
- Date: Thu, 04 Jan 2018 14:40:49 +0000
- Subject: [committed] PR83680: Inverted test in arm_vectorize_vec_perm_const
- Authentication-results: sourceware.org; auth=none
This patch fixes an inverted condition in r256093. I checked for other
instances of the same thing and there didn't seem to be any.
Tested on arm-linux-gnueabihf and applied as obvious.
Richard
2018-01-04 Richard Sandiford <richard.sandiford@linaro.org>
gcc/
PR target/83680
* config/arm/arm.c (arm_vectorize_vec_perm_const): Fix inverted
test for d.testing.
Index: gcc/config/arm/arm.c
===================================================================
--- gcc/config/arm/arm.c 2018-01-03 11:12:55.080788513 +0000
+++ gcc/config/arm/arm.c 2018-01-04 14:33:34.424536295 +0000
@@ -29440,7 +29440,7 @@ arm_vectorize_vec_perm_const (machine_mo
d.perm.new_vector (sel.encoding (), d.one_vector_p ? 1 : 2, nelt);
- if (d.testing_p)
+ if (!d.testing_p)
return arm_expand_vec_perm_const_1 (&d);
d.target = gen_raw_REG (d.vmode, LAST_VIRTUAL_REGISTER + 1);