From: Richard Sandiford Date: Thu, 4 Jan 2018 14:39:03 +0000 (+0000) Subject: PR83680: Inverted test in arm_vectorize_vec_perm_const X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=41baa38bf6f9114826b5395edbebe933a7936c1b;p=gcc.git PR83680: Inverted test in arm_vectorize_vec_perm_const 2018-01-04 Richard Sandiford gcc/ PR target/83680 * config/arm/arm.c (arm_vectorize_vec_perm_const): Fix inverted test for d.testing. From-SVN: r256251 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 8384c2edac4..a30a3069c96 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2018-01-04 Richard Sandiford + + PR target/83680 + * config/arm/arm.c (arm_vectorize_vec_perm_const): Fix inverted + test for d.testing. + 2018-01-04 Peter Bergner PR target/83387 diff --git a/gcc/config/arm/arm.c b/gcc/config/arm/arm.c index 59966d3306c..196aa6de1ac 100644 --- a/gcc/config/arm/arm.c +++ b/gcc/config/arm/arm.c @@ -29440,7 +29440,7 @@ arm_vectorize_vec_perm_const (machine_mode vmode, rtx target, rtx op0, rtx op1, 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);