This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[committed] PR83680: Inverted test in arm_vectorize_vec_perm_const


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);


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]