[ARM] Add -mbranch-cost option, and update a few tests
authorChristophe Lyon <christophe.lyon@linaro.org>
Wed, 10 Jan 2018 15:34:33 +0000 (15:34 +0000)
committerChristophe Lyon <clyon@gcc.gnu.org>
Wed, 10 Jan 2018 15:34:33 +0000 (16:34 +0100)
commit227e57986a52f7aba4fbc819eec4b64ae2a9776f
tree63a942793fc9fc2e523f9431f0c878f9ee3d4cce
parentd0ac0d52e93267911a6ef1bcbde87bccdebd5058
[ARM] Add -mbranch-cost option, and update a few tests

2018-01-10  Christophe Lyon  <christophe.lyon@linaro.org>

gcc/
* config/arm/arm.opt (-mbranch-cost): New option.
* config/arm/arm.h (BRANCH_COST): Take arm_branch_cost into
account.

gcc/testsuite/
* lib/target-supports.exp (check_effective_target_branch_cost):
New function.
* gcc.dg/builtin-bswap-7.c: Use branch_cost effective target.
* gcc.dg/pr21643.c: Likewise.
* gcc.dg/pr46309.c: Likewise.
* gcc.dg/tree-ssa/phi-opt-11.c: Likewise.
* gcc.dg/tree-ssa/phi-opt-2.c: Likewise.
* gcc.dg/tree-ssa/reassoc-32.c: Likewise.
* gcc.dg/tree-ssa/reassoc-33.c: Likewise.
* gcc.dg/tree-ssa/reassoc-34.c: Likewise.
* gcc.dg/tree-ssa/reassoc-35.c: Likewise.
* gcc.dg/tree-ssa/reassoc-36.c: Likewise.
* gcc.dg/tree-ssa/ssa-ifcombine-13.c: Likewise.
* gcc.dg/tree-ssa/ssa-ifcombine-ccmp-1.c: Likewise.
* gcc.dg/tree-ssa/ssa-ifcombine-ccmp-2.c: Likewise.
* gcc.dg/tree-ssa/ssa-ifcombine-ccmp-3.c: Likewise.
* gcc.dg/tree-ssa/ssa-ifcombine-ccmp-4.c: Likewise.
* gcc.dg/tree-ssa/ssa-ifcombine-ccmp-5.c: Likewise.
* gcc.dg/tree-ssa/ssa-ifcombine-ccmp-6.c: Likewise.

From-SVN: r256434
22 files changed:
gcc/ChangeLog
gcc/config/arm/arm.h
gcc/config/arm/arm.opt
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/builtin-bswap-7.c
gcc/testsuite/gcc.dg/pr21643.c
gcc/testsuite/gcc.dg/pr46309.c
gcc/testsuite/gcc.dg/tree-ssa/phi-opt-11.c
gcc/testsuite/gcc.dg/tree-ssa/phi-opt-2.c
gcc/testsuite/gcc.dg/tree-ssa/reassoc-32.c
gcc/testsuite/gcc.dg/tree-ssa/reassoc-33.c
gcc/testsuite/gcc.dg/tree-ssa/reassoc-34.c
gcc/testsuite/gcc.dg/tree-ssa/reassoc-35.c
gcc/testsuite/gcc.dg/tree-ssa/reassoc-36.c
gcc/testsuite/gcc.dg/tree-ssa/ssa-ifcombine-13.c
gcc/testsuite/gcc.dg/tree-ssa/ssa-ifcombine-ccmp-1.c
gcc/testsuite/gcc.dg/tree-ssa/ssa-ifcombine-ccmp-2.c
gcc/testsuite/gcc.dg/tree-ssa/ssa-ifcombine-ccmp-3.c
gcc/testsuite/gcc.dg/tree-ssa/ssa-ifcombine-ccmp-4.c
gcc/testsuite/gcc.dg/tree-ssa/ssa-ifcombine-ccmp-5.c
gcc/testsuite/gcc.dg/tree-ssa/ssa-ifcombine-ccmp-6.c
gcc/testsuite/lib/target-supports.exp