From: Christophe Lyon Date: Mon, 8 Jun 2020 08:17:20 +0000 (+0000) Subject: [arm] Fix vfp_operand_register for VFP HI regs X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=635408da1eb1d441ef4d59fe00a038c920e51085;p=gcc.git [arm] Fix vfp_operand_register for VFP HI regs 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. gcc/ChangeLog: * 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 9e9bca4d87f..51ea62b3654 100644 --- a/gcc/config/arm/predicates.md +++ b/gcc/config/arm/predicates.md @@ -173,7 +173,7 @@ || 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"