Hello!

No functional change.

2014-01-15  Uros Bizjak  <ubiz...@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.
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)

Reply via email to