diff mbox

[committed,SH] Fix PR target/68091

Message ID 20151026.203127.276009668.kkojima@rr.iij4u.or.jp
State New
Headers show

Commit Message

Kaz Kojima Oct. 26, 2015, 11:31 a.m. UTC
I've applied the attached one liner as a quick fix for PR target/68091
which is a 6 regression.  sh_vector_mode_supported_p returns true even
if the target has no mov insns for some vector modes and causes ICEs
for several vector tests.  Tested on sh4-unknown-linux-gnu.

Regards,
	kaz
--
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.
diff mbox

Patch

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)))