From 41baa38bf6f9114826b5395edbebe933a7936c1b Mon Sep 17 00:00:00 2001 From: Richard Sandiford Date: Thu, 4 Jan 2018 14:39:03 +0000 Subject: [PATCH] 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 --- gcc/ChangeLog | 6 ++++++ gcc/config/arm/arm.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) 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); -- 2.30.2