[config/sh/sh.c] Fix PR68091: Return false for non shmedia targets in sh_vector_mode_...
authorKaz Kojima <kkojima@gcc.gnu.org>
Mon, 26 Oct 2015 11:30:11 +0000 (11:30 +0000)
committerKaz Kojima <kkojima@gcc.gnu.org>
Mon, 26 Oct 2015 11:30:11 +0000 (11:30 +0000)
PR target/68091
* config/sh/sh.c (sh_vector_mode_supported_p): Use
TARGET_SHMEDIA_FPU instead of TARGET_FPU_ANY.

From-SVN: r229336

gcc/ChangeLog
gcc/config/sh/sh.c

index 8084f4b749c1c093085745b0bedf4464196c0a34..7cb539fc0ccb4fbcce09af75db4cbb8a5343b15d 100644 (file)
@@ -1,3 +1,9 @@
+2015-10-26  Kaz Kojima  <kkojima@gcc.gnu.org>
+
+       PR target/68091
+       * config/sh/sh.c (sh_vector_mode_supported_p): Use
+       TARGET_SHMEDIA_FPU instead of TARGET_FPU_ANY.
+
 2015-10-26  Tom de Vries  <tom@codesourcery.com>
 
        * tree-ssa-structalias.c (make_restrict_var_constraints): New function,
index f8187e434e377a65a147cc6131142573b5c585ae..a153845d8560f432148515be2719fa1075bf83f2 100644 (file)
@@ -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)))