diff mbox series

PR83675: Restore TARGET_VIS2 check for SPARC vec_perm_const

Message ID 87shbmhrvb.fsf@linaro.org
State New
Headers show
Series PR83675: Restore TARGET_VIS2 check for SPARC vec_perm_const | expand

Commit Message

Richard Sandiford Jan. 4, 2018, 9:53 a.m. UTC
I'd missed a TARGET_VIS2 condition when replacing vec_perm_const_optab
with TARGET_VECTORIZE_VEC_PERM_CONST in r256093.

Tested by Rainer on sparc-sun-solaris* (thanks) and installed as obvious.
Sorry the dumb mistake.

Richard


2018-01-04  Richard Sandiford  <richard.sandiford@linaro.org>

gcc/
	PR target/83675
	* config/sparc/sparc.c (sparc_vectorize_vec_perm_const): Require
	TARGET_VIS2.
diff mbox series

Patch

Index: gcc/config/sparc/sparc.c
===================================================================
--- gcc/config/sparc/sparc.c	2018-01-03 11:12:52.995870490 +0000
+++ gcc/config/sparc/sparc.c	2018-01-03 22:30:11.728666687 +0000
@@ -12824,6 +12824,9 @@  sparc_expand_vec_perm_bmask (machine_mod
 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;