Hi,

While looking at PR target/94743 I noticed an ICE when I tried to save
all the FP registers: this was because all HI registers wouldn't match
vfp_register_operand.

Regression-tested and bootstrapped OK.

2020-04-29  Christophe Lyon  <christophe.l...@linaro.org>

        gcc/
        * config/arm/predicates.md (vfp_register_operand): Use VFP_HI_REGS
        instead of VFP_REGS.

OK?

Thanks,

Christophe
While looking at PR target/94743 I noticed an ICE when I tried to save
all the FP registers: this was because all HI registers wouldn't match
vfp_register_operand.

2020-04-29  Christophe Lyon  <christophe.l...@linaro.org>

        gcc/
        * config/arm/predicates.md (vfp_register_operand): Use VFP_HI_REGS
        instead of VFP_REGS.
diff --git a/gcc/config/arm/predicates.md b/gcc/config/arm/predicates.md
index 009862e..dbd4fb4 100644
--- a/gcc/config/arm/predicates.md
+++ b/gcc/config/arm/predicates.md
@@ -161,7 +161,7 @@ (define_predicate "vfp_register_operand"
              || 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)));
+                 && REGNO_REG_CLASS (REGNO (op)) == VFP_HI_REGS)));
 })
 
 (define_predicate "vfp_hard_register_operand"

Reply via email to