aboutsummaryrefslogtreecommitdiff
path: root/gcc
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
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')
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/config/sh/sh.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 8084f4b..7cb539f 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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,
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)))