This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch, arm] VFP_D0_D7_REGS in predicate vfp_register_operand


predicate "vfp_register_operand" returns false to VFP_D0_D7_REGS
registers, which is not correct.  This patch is to address this.

Regression test is not run, since this change is a little bit obvious.
OK for mainline?

-- 
Yao (éå)
gcc/
	* arm/predicates.md ("vfp_register_operand"): Return true for
	VFP_D0_D7_REGS classes.

diff --git a/gcc/config/arm/predicates.md b/gcc/config/arm/predicates.md
index cbb2af7..bb0ff83 100644
--- a/gcc/config/arm/predicates.md
+++ b/gcc/config/arm/predicates.md
@@ -83,6 +83,7 @@
      to be a register operand.  */
   return (GET_CODE (op) == REG
 	  && (REGNO (op) >= FIRST_PSEUDO_REGISTER
+	      || REGNO_REG_CLASS (REGNO (op)) == VFP_D0_D7_REGS
 	      || REGNO_REG_CLASS (REGNO (op)) == VFP_LO_REGS
 	      || (TARGET_VFPD32
 		  && REGNO_REG_CLASS (REGNO (op)) == VFP_REGS)));

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]