From 635408da1eb1d441ef4d59fe00a038c920e51085 Mon Sep 17 00:00:00 2001 From: Christophe Lyon Date: Mon, 8 Jun 2020 08:17:20 +0000 Subject: [PATCH] [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. --- gcc/config/arm/predicates.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" -- 2.30.2