]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR target/51931 (No support for MIPS16 long branches)
authorRichard Sandiford <rdsandiford@googlemail.com>
Thu, 2 Aug 2012 21:31:57 +0000 (21:31 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Thu, 2 Aug 2012 21:31:57 +0000 (21:31 +0000)
commit36be1dee1d8f88f1da9a27a9ce6d20f8976f210c
tree5e7dd3cafaad2526a4126abfd48740a3a4fbdac8
parentb5b071a5688e68b783547add84949c63c49d7dc1
re PR target/51931 (No support for MIPS16 long branches)

gcc/
PR target/51931
* config/mips/mips-protos.h (mips_strip_unspec_address): Declare.
* config/mips/mips.c (mips_strip_unspec_address): Make extern.
(mips16_rewrite_pool_constant): Make a copy of the pool constant
before adding to a PC-relative table.
(mips16_lay_out_constants): Add a SPLIT_P parameter.
(mips16_load_branch_target, mips16_split_long_branches): New functions.
(mips_reorg): Update call to mips16_lay_out_constants.
Call mips16_split_long_branches.
* config/mips/predicates.md (pc_or_label_operand): Delete.
* config/mips/mips.md (length): Add a calculation for MIPS16 branches.
Move the extended_mips16 handling further down.
(*branch_equality<mode>_mips16): Replace use pc_or_label_operand
with explicit label_ref and pc.  Follow the usual operand numbering.
(*branch_equality<mode>_mips16_inverted): New pattern.
(*jump_mips16): Add length attribute.
(indirect_jump_and_restore_<mode>): New pattern.
(consttable_int): Call mips_strip_unspec_address on the operand.

gcc/testsuite/
PR target/51931
* gcc.c-torture/compile/20001226-1.c: Remove nomips16 attribute.
* g++.dg/opt/longbranch1.C: Likewise.

From-SVN: r190104
gcc/ChangeLog
gcc/config/mips/mips-protos.h
gcc/config/mips/mips.c
gcc/config/mips/mips.md
gcc/config/mips/predicates.md
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/opt/longbranch1.C
gcc/testsuite/gcc.c-torture/compile/20001226-1.c