diff options
author | Kaz Kojima <kkojima@gcc.gnu.org> | 2015-10-26 11:30:11 +0000 |
---|---|---|
committer | Kaz Kojima <kkojima@gcc.gnu.org> | 2015-10-26 11:30:11 +0000 |
commit | 529ce461f0ec3b81458e8478a1342e7a89a43861 (patch) | |
tree | 77f544291f4017adcabde139e2371b50b98552b1 /gcc | |
parent | e310115eb98540ab7c1e099a15f6c66dd76450b7 (diff) | |
download | gcc-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/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/config/sh/sh.c | 2 |
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))) |