From: Kaz Kojima Date: Mon, 26 Oct 2015 11:30:11 +0000 (+0000) Subject: [config/sh/sh.c] Fix PR68091: Return false for non shmedia targets in sh_vector_mode_... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=529ce461f0ec3b81458e8478a1342e7a89a43861;p=gcc.git [config/sh/sh.c] Fix PR68091: Return false for non shmedia targets in sh_vector_mode_supported_p PR target/68091 * config/sh/sh.c (sh_vector_mode_supported_p): Use TARGET_SHMEDIA_FPU instead of TARGET_FPU_ANY. From-SVN: r229336 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 8084f4b749c..7cb539fc0cc 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2015-10-26 Kaz Kojima + + 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 * tree-ssa-structalias.c (make_restrict_var_constraints): New function, diff --git a/gcc/config/sh/sh.c b/gcc/config/sh/sh.c index f8187e434e3..a153845d856 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)))