MIPS: Fix failing branch range checks for micromips.
authorAndrew Bennett <andrew.bennett@imgtec.com>
Wed, 8 Jul 2015 09:40:35 +0000 (09:40 +0000)
committerAndrew Bennett <abennett@gcc.gnu.org>
Wed, 8 Jul 2015 09:40:35 +0000 (09:40 +0000)
commitdaee9ce2953033be80e974fd467201934eb1ed01
treef8acdbe9ac2492b212d8c70f7a2b15bb7f291573
parenteb63d211c026c60a3dcbddac31042e5e39975d90
MIPS: Fix failing branch range checks for micromips.

The current branch range tests assume that the MIPS branch instructions
have a 16 bit branch offset which is shifted by 2.  Unfortunately for microMIPS
this offset is shifted by 1 which reduces the branch range and caused the
branch-*.c tests to fail.

testsuite/
* gcc.target/mips/branch-2.c: Change NOMIPS16 to NOCOMPRESSION.
* gcc.target/mips/branch-3.c: Ditto
* gcc.target/mips/branch-4.c: Ditto.
* gcc.target/mips/branch-5.c: Ditto.
* gcc.target/mips/branch-6.c: Ditto.
* gcc.target/mips/branch-7.c: Ditto.
* gcc.target/mips/branch-8.c: Ditto.
* gcc.target/mips/branch-9.c: Ditto.
* gcc.target/mips/branch-10.c: Ditto.
* gcc.target/mips/branch-11.c: Ditto.
* gcc.target/mips/branch-12.c: Ditto.
* gcc.target/mips/branch-13.c: Ditto.
* gcc.target/mips/umips-branch-5.c: New file.
* gcc.target/mips/umips-branch-6.c: New file.
* gcc.target/mips/umips-branch-7.c: New file.
* gcc.target/mips/umips-branch-8.c: New file.
* gcc.target/mips/umips-branch-9.c: New file.
* gcc.target/mips/umips-branch-10.c: New file.
* gcc.target/mips/umips-branch-11.c: New file.
* gcc.target/mips/umips-branch-12.c: New file.
* gcc.target/mips/umips-branch-13.c: New file.
* gcc.target/mips/umips-branch-14.c: New file.
* gcc.target/mips/umips-branch-15.c: New file.
* gcc.target/mips/umips-branch-16.c: New file.
* gcc.target/mips/branch-helper.h (OCCUPY_0x10000): New define.
(OCCUPY_0xfffc): New define.

From-SVN: r225540
26 files changed:
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/mips/branch-10.c
gcc/testsuite/gcc.target/mips/branch-11.c
gcc/testsuite/gcc.target/mips/branch-12.c
gcc/testsuite/gcc.target/mips/branch-13.c
gcc/testsuite/gcc.target/mips/branch-2.c
gcc/testsuite/gcc.target/mips/branch-3.c
gcc/testsuite/gcc.target/mips/branch-4.c
gcc/testsuite/gcc.target/mips/branch-5.c
gcc/testsuite/gcc.target/mips/branch-6.c
gcc/testsuite/gcc.target/mips/branch-7.c
gcc/testsuite/gcc.target/mips/branch-8.c
gcc/testsuite/gcc.target/mips/branch-9.c
gcc/testsuite/gcc.target/mips/branch-helper.h
gcc/testsuite/gcc.target/mips/umips-branch-10.c [new file with mode: 0644]
gcc/testsuite/gcc.target/mips/umips-branch-11.c [new file with mode: 0644]
gcc/testsuite/gcc.target/mips/umips-branch-12.c [new file with mode: 0644]
gcc/testsuite/gcc.target/mips/umips-branch-13.c [new file with mode: 0644]
gcc/testsuite/gcc.target/mips/umips-branch-14.c [new file with mode: 0644]
gcc/testsuite/gcc.target/mips/umips-branch-15.c [new file with mode: 0644]
gcc/testsuite/gcc.target/mips/umips-branch-16.c [new file with mode: 0644]
gcc/testsuite/gcc.target/mips/umips-branch-5.c [new file with mode: 0644]
gcc/testsuite/gcc.target/mips/umips-branch-6.c [new file with mode: 0644]
gcc/testsuite/gcc.target/mips/umips-branch-7.c [new file with mode: 0644]
gcc/testsuite/gcc.target/mips/umips-branch-8.c [new file with mode: 0644]
gcc/testsuite/gcc.target/mips/umips-branch-9.c [new file with mode: 0644]