aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/sh
diff options
context:
space:
mode:
authorKaz Kojima <kkojima@gcc.gnu.org>2015-10-26 11:30:11 +0000
committerKaz Kojima <kkojima@gcc.gnu.org>2015-10-26 11:30:11 +0000
commit529ce461f0ec3b81458e8478a1342e7a89a43861 (patch)
tree77f544291f4017adcabde139e2371b50b98552b1 /gcc/config/sh
parente310115eb98540ab7c1e099a15f6c66dd76450b7 (diff)
downloadgcc-529ce461f0ec3b81458e8478a1342e7a89a43861.zip
gcc-529ce461f0ec3b81458e8478a1342e7a89a43861.tar.gz
gcc-529ce461f0ec3b81458e8478a1342e7a89a43861.tar.bz2
[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
Diffstat (limited to 'gcc/config/sh')
-rw-r--r--gcc/config/sh/sh.c2
1 files changed, 1 insertions, 1 deletions
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)))