Patchwork [i386] : Use VALID_AVX256_REG_OR_OI_MODE some more

login
register
mail settings
Submitter Uros Bizjak
Date Jan. 16, 2014, 8:25 a.m.
Message ID <CAFULd4ZKjb+5=ghHB2Mh_3v7b2i3KBL=V7U=tRRR9UOKefqa9g@mail.gmail.com>
Download mbox | patch
Permalink /patch/311625/
State New
Headers show

Comments

Uros Bizjak - Jan. 16, 2014, 8:25 a.m.
Hello!

No functional change.

2014-01-15  Uros Bizjak  <ubizjak@gmail.com>

    * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
    VALID_AVX256_REG_OR_OI_MODE.

Bootstrapped for x86_64-linux-gnu and committed to mainline SVN.

Uros.

Patch

Index: config/i386/i386.c
===================================================================
--- config/i386/i386.c	(revision 206572)
+++ config/i386/i386.c	(working copy)
@@ -37495,9 +37495,9 @@  ix86_hard_regno_mode_ok (int regno, enum machine_m
       if (EXT_REX_SSE_REGNO_P (regno))
 	return false;
 
-      /* OImode move is available only when AVX is enabled.  */
-      return ((TARGET_AVX && mode == OImode)
-	      || (TARGET_AVX && VALID_AVX256_REG_MODE (mode))
+      /* OImode and AVX modes are available only when AVX is enabled.  */
+      return ((TARGET_AVX
+	       && VALID_AVX256_REG_OR_OI_MODE (mode))
 	      || VALID_SSE_REG_MODE (mode)
 	      || VALID_SSE2_REG_MODE (mode)
 	      || VALID_MMX_REG_MODE (mode)