diff options
Diffstat (limited to 'gcc/config/arm/arm.c')
-rw-r--r-- | gcc/config/arm/arm.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/gcc/config/arm/arm.c b/gcc/config/arm/arm.c index f0e7788a53f..7614bc1f86b 100644 --- a/gcc/config/arm/arm.c +++ b/gcc/config/arm/arm.c @@ -18589,7 +18589,7 @@ output_move_neon (rtx *operands) gcc_assert (REG_P (reg)); regno = REGNO (reg); - nregs = HARD_REGNO_NREGS (regno, mode) / 2; + nregs = REG_NREGS (reg) / 2; gcc_assert (VFP_REGNO_OK_FOR_DOUBLE (regno) || NEON_REGNO_OK_FOR_QUAD (regno)); gcc_assert (VALID_NEON_DREG_MODE (mode) @@ -18722,7 +18722,6 @@ arm_attr_length_move_neon (rtx_insn *insn) gcc_assert (MEM_P (mem)); - mode = GET_MODE (reg); addr = XEXP (mem, 0); /* Strip off const from addresses like (const (plus (...))). */ @@ -18731,7 +18730,7 @@ arm_attr_length_move_neon (rtx_insn *insn) if (GET_CODE (addr) == LABEL_REF || GET_CODE (addr) == PLUS) { - int insns = HARD_REGNO_NREGS (REGNO (reg), mode) / 2; + int insns = REG_NREGS (reg) / 2; return insns * 4; } else @@ -23713,7 +23712,7 @@ neon_split_vcombine (rtx operands[3]) unsigned int src1 = REGNO (operands[1]); unsigned int src2 = REGNO (operands[2]); machine_mode halfmode = GET_MODE (operands[1]); - unsigned int halfregs = HARD_REGNO_NREGS (src1, halfmode); + unsigned int halfregs = REG_NREGS (operands[1]); rtx destlo, desthi; if (src1 == dest && src2 == dest + halfregs) |