Prohibit vector modes in accumulators.
authorRobert Suchanek <robert.suchanek@imgtec.com>
Wed, 28 Jan 2015 09:44:39 +0000 (09:44 +0000)
committerRobert Suchanek <rts@gcc.gnu.org>
Wed, 28 Jan 2015 09:44:39 +0000 (09:44 +0000)
gcc/
* config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
for all vector modes.

From-SVN: r220200

gcc/ChangeLog
gcc/config/mips/mips.c

index 168d255b54d131bb4a0b1a13a7c2f5c939b9d13a..90adcd684e7314ab964b8c5885d0e1fd05fde2c9 100644 (file)
@@ -1,3 +1,8 @@
+2015-01-28  Robert Suchanek  <robert.suchanek@imgtec.com>
+
+       * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
+       for all vector modes.
+
 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
 
        PR bootstrap/64612
index 443a71216e786028239ec070cbbdb19d53876c61..1733457e7315297fedbf523e9425243fea3505c6 100644 (file)
@@ -12131,7 +12131,9 @@ mips_hard_regno_mode_ok_p (unsigned int regno, machine_mode mode)
        return size >= MIN_UNITS_PER_WORD && size <= UNITS_PER_FPREG;
     }
 
+  /* Don't allow vector modes in accumulators.  */
   if (ACC_REG_P (regno)
+      && !VECTOR_MODE_P (mode)
       && (INTEGRAL_MODE_P (mode) || ALL_FIXED_POINT_MODE_P (mode)))
     {
       if (MD_REG_P (regno))