I've applied the attached one liner as a quick fix for PR target/68091
which is a 6 regression.  sh_vector_mode_supported_p returns true even
if the target has no mov insns for some vector modes and causes ICEs
for several vector tests.  Tested on sh4-unknown-linux-gnu.

Regards,
        kaz
--
2015-10-26  Kaz Kojima  <kkoj...@gcc.gnu.org>

        PR target/68091
        * config/sh/sh.c (sh_vector_mode_supported_p): Use
        TARGET_SHMEDIA_FPU instead of TARGET_FPU_ANY.

diff --git a/gcc/config/sh/sh.c b/gcc/config/sh/sh.c
index f8187e4..a153845 100644
--- a/gcc/config/sh/sh.c
+++ b/gcc/config/sh/sh.c
@@ -12133,7 +12133,7 @@ sh_atomic_assign_expand_fenv (tree *hold, tree *clear, 
tree *update)
 bool
 sh_vector_mode_supported_p (machine_mode mode)
 {
-  if (TARGET_FPU_ANY
+  if (TARGET_SHMEDIA_FPU
       && ((mode == V2SFmode)
          || (mode == V4SFmode)
          || (mode == V16SFmode)))

Reply via email to