diff options
author | Roger Sayle <roger@nextmovesoftware.com> | 2023-04-23 10:35:53 +0100 |
---|---|---|
committer | Roger Sayle <roger@nextmovesoftware.com> | 2023-04-23 10:35:53 +0100 |
commit | 8ffff5e9de2fa8e2845c8045941afbb1e8638aed (patch) | |
tree | 1b38611539bdfca5b12867c4b8c5734f831376ab /gcc/tree-ssa-phiopt.cc | |
parent | 9a6e5b933fedd6a386c8bde7f93e3e0d4515030b (diff) | |
download | gcc-8ffff5e9de2fa8e2845c8045941afbb1e8638aed.zip gcc-8ffff5e9de2fa8e2845c8045941afbb1e8638aed.tar.gz gcc-8ffff5e9de2fa8e2845c8045941afbb1e8638aed.tar.bz2 |
[xstormy16] Update xstormy16_rtx_costs.
This patch provides an improved rtx_costs target hook on xstormy16.
The current implementation has the unfortunate property that it claims
that zero_extendhisi2 is very cheap, even though the machine description
doesn't provide that instruction/pattern. Doh! Rewriting the
xstormy16_rtx_costs function has additional benefits, including
making more use of the (short) "mul" instruction when optimizing
for size with -Os.
2023-04-23 Roger Sayle <roger@nextmovesoftware.com>
gcc/ChangeLog
* config/stormy16/stormy16.cc (xstormy16_rtx_costs): Rewrite to
provide reasonable values for common arithmetic operations and
immediate operands (in several machine modes).
gcc/testsuite/ChangeLog
* gcc.target/xstormy16/mulhi.c: New test case.
Diffstat (limited to 'gcc/tree-ssa-phiopt.cc')
0 files changed, 0 insertions, 0 deletions