-
- Downloads
MSP430: Implement TARGET_INSN_COST
The length of an insn can be used to calculate its cost, when optimizing for size. When optimizing for speed, this is a good estimate, since the cycle cost of an MSP430 instruction increases with its length. gcc/ChangeLog: * config/msp430/msp430.c (TARGET_INSN_COST): Define. (msp430_insn_cost): New function. * config/msp430/msp430.h (BRANCH_COST): Define. (LOGICAL_OP_NON_SHORT_CIRCUIT): Define. gcc/testsuite/ChangeLog: * gcc.target/msp430/rtx-cost-O3-default.c: New test. * gcc.target/msp430/rtx-cost-O3-f5series.c: New test. * gcc.target/msp430/rtx-cost-Os-default.c: New test. * gcc.target/msp430/rtx-cost-Os-f5series.c: New test.
Showing
- gcc/config/msp430/msp430.c 20 additions, 5 deletionsgcc/config/msp430/msp430.c
- gcc/config/msp430/msp430.h 8 additions, 0 deletionsgcc/config/msp430/msp430.h
- gcc/testsuite/gcc.target/msp430/rtx-cost-O3-default.c 42 additions, 0 deletionsgcc/testsuite/gcc.target/msp430/rtx-cost-O3-default.c
- gcc/testsuite/gcc.target/msp430/rtx-cost-O3-f5series.c 38 additions, 0 deletionsgcc/testsuite/gcc.target/msp430/rtx-cost-O3-f5series.c
- gcc/testsuite/gcc.target/msp430/rtx-cost-Os-default.c 43 additions, 0 deletionsgcc/testsuite/gcc.target/msp430/rtx-cost-Os-default.c
- gcc/testsuite/gcc.target/msp430/rtx-cost-Os-f5series.c 38 additions, 0 deletionsgcc/testsuite/gcc.target/msp430/rtx-cost-Os-f5series.c
Loading
Please register or sign in to comment