2012-08-23 Julian Brown <julian@codesourcery.com>
authorJulian Brown <julian@codesourcery.com>
Thu, 23 Aug 2012 15:42:03 +0000 (15:42 +0000)
committerSandra Loosemore <sandra@gcc.gnu.org>
Thu, 23 Aug 2012 15:42:03 +0000 (11:42 -0400)
commit545ca0f2785bd261c13392cb6191640282a73ee9
tree2facdea4b5e6621f78227ef010d5ac4afd8e6332
parenta147b6d28fa9db1c7533d53e19837009f3f7fd05
2012-08-23  Julian Brown  <julian@codesourcery.com>
    Sandra Loosemore  <sandra@codesourcery.com>

gcc/
* config/mips/mips.md
(UNSPEC_CASESI_DISPATCH): New.
(MIPS16_T_REGNUM): New constant.
(tablejump): Don't use for MIPS16_SHORT_JUMP_TABLES.
(casesi): New.
(casesi_internal_mips16_<mode>): New.
* config/mips/mips.c (mips16_split_long_branches): Adjust test
to ignore casesi jump tables.
* config/mips/mips.h (TARGET_MIPS16_SHORT_JUMP_TABLES): Update
comment.
(CASE_VECTOR_MODE): Use SImode unconditionally.
(CASE_VECTOR_SHORTEN_MODE): Define.
(ASM_OUTPUT_ADDR_DIFF_ELT): Output word-sized addr_diff_elts
when necessary for MIPS16_SHORT_JUMP_TABLES.

gcc/testsuite/
* gcc.target/mips/code-readable-1.c: Add -O to options.

Co-Authored-By: Sandra Loosemore <sandra@codesourcery.com>
From-SVN: r190625
gcc/ChangeLog
gcc/config/mips/mips.c
gcc/config/mips/mips.h
gcc/config/mips/mips.md
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/mips/code-readable-1.c