diff options
author | Maciej W. Rozycki <macro@codesourcery.com> | 2014-11-18 16:46:52 +0000 |
---|---|---|
committer | Maciej W. Rozycki <macro@gcc.gnu.org> | 2014-11-18 16:46:52 +0000 |
commit | 73af680eb946cd6e0b97a1fda313d12e0926c8f0 (patch) | |
tree | b5a851d25be9903bba682925ae00e8b7aac296d8 /gcc/config/mips | |
parent | 699aa7d0b044f3cf30483305f138552860854de5 (diff) | |
download | gcc-73af680eb946cd6e0b97a1fda313d12e0926c8f0.zip gcc-73af680eb946cd6e0b97a1fda313d12e0926c8f0.tar.gz gcc-73af680eb946cd6e0b97a1fda313d12e0926c8f0.tar.bz2 |
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
Diffstat (limited to 'gcc/config/mips')
-rw-r--r-- | gcc/config/mips/mips.md | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/gcc/config/mips/mips.md b/gcc/config/mips/mips.md index 647bf85..6781a00 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) |