From 73af680eb946cd6e0b97a1fda313d12e0926c8f0 Mon Sep 17 00:00:00 2001 From: "Maciej W. Rozycki" Date: Tue, 18 Nov 2014 16:46:52 +0000 Subject: [PATCH] mips.md (*jump_absolute): Use a branch when in range, a jump otherwise. * gcc/config/mips/mips.md (*jump_absolute): Use a branch when in range, a jump otherwise. From-SVN: r217727 --- gcc/ChangeLog | 5 +++++ gcc/config/mips/mips.md | 6 ++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4a825c17310..3c24cd1abd8 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2014-11-18 Maciej W. Rozycki + + * gcc/config/mips/mips.md (*jump_absolute): Use a branch when in + range, a jump otherwise. + 2014-11-18 Kyrylo Tkachov * config/arm/cortex-a15-neon.md (cortex_a15_vfp_to_from_gp): diff --git a/gcc/config/mips/mips.md b/gcc/config/mips/mips.md index 647bf853c22..6781a008806 100644 --- a/gcc/config/mips/mips.md +++ b/gcc/config/mips/mips.md @@ -5955,14 +5955,12 @@ (label_ref (match_operand 0)))] "!TARGET_MIPS16 && TARGET_ABSOLUTE_JUMPS" { - /* Use a branch for microMIPS. The assembler will choose - a 16-bit branch, a 32-bit branch, or a 32-bit jump. */ - if (TARGET_MICROMIPS && !TARGET_ABICALLS_PIC2) + if (get_attr_length (insn) <= 8) return "%*b\t%l0%/"; else return MIPS_ABSOLUTE_JUMP ("%*j\t%l0%/"); } - [(set_attr "type" "jump")]) + [(set_attr "type" "branch")]) (define_insn "*jump_pic" [(set (pc) -- 2.30.2