From da374b5b5bb998311935ef989ed41fed1c16366e Mon Sep 17 00:00:00 2001 From: Richard Sandiford Date: Thu, 4 Jan 2018 09:51:08 +0000 Subject: [PATCH] PR83675: Restore TARGET_VIS2 check for SPARC vec_perm_const I'd missed a TARGET_VIS2 condition when replacing vec_perm_const_optab with TARGET_VECTORIZE_VEC_PERM_CONST in r256093. 2018-01-04 Richard Sandiford gcc/ PR target/83675 * config/sparc/sparc.c (sparc_vectorize_vec_perm_const): Require TARGET_VIS2. From-SVN: r256229 --- gcc/ChangeLog | 6 ++++++ gcc/config/sparc/sparc.c | 3 +++ 2 files changed, 9 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f62f43f3dbf..15172f1045d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2018-01-04 Richard Sandiford + + PR target/83675 + * config/sparc/sparc.c (sparc_vectorize_vec_perm_const): Require + TARGET_VIS2. + 2018-01-04 Uros Bizjak PR target/83628 diff --git a/gcc/config/sparc/sparc.c b/gcc/config/sparc/sparc.c index 2cb85a46fff..668ccad42cf 100644 --- a/gcc/config/sparc/sparc.c +++ b/gcc/config/sparc/sparc.c @@ -12824,6 +12824,9 @@ static bool sparc_vectorize_vec_perm_const (machine_mode vmode, rtx target, rtx op0, rtx op1, const vec_perm_indices &sel) { + if (!TARGET_VIS2) + return false; + /* All permutes are supported. */ if (!target) return true; -- 2.30.2