diff options
author | Kyrylo Tkachov <kyrylo.tkachov@arm.com> | 2021-12-13 14:14:21 +0000 |
---|---|---|
committer | Kyrylo Tkachov <kyrylo.tkachov@arm.com> | 2021-12-13 15:16:32 +0000 |
commit | d3bd985e799b63e2133e89870472ac36d06015d3 (patch) | |
tree | 62305a321b88d3a922ae81fd0dca5977e3335e4c /libgcc | |
parent | bb768f8b45aa7ccf12774aa0c00b295032ee7c47 (diff) | |
download | gcc-d3bd985e799b63e2133e89870472ac36d06015d3.zip gcc-d3bd985e799b63e2133e89870472ac36d06015d3.tar.gz gcc-d3bd985e799b63e2133e89870472ac36d06015d3.tar.bz2 |
aarch64: Use +mops to inline memset operations
This 3rd patch in the series adds an inline sequence for the memset operation.
The aarch64-mops-memset-size-threshold param is added to control the size threshold for the sequence.
Its default setting is 256, which may seem a bit high, but it is consistent with the current
SIMD memset inline sequence limit, and future CPU tunings can override it easily as needed.
Bootstrapped and tested on aarch64-none-linux-gnu.
gcc/ChangeLog:
* config/aarch64/aarch64.c (aarch64_expand_setmem_mops): Define.
(aarch64_expand_setmem): Adjust for TARGET_MOPS.
* config/aarch64/aarch64.h (CLEAR_RATIO): Adjust for TARGET_MOPS.
(SET_RATIO): Likewise.
* config/aarch64/aarch64.md ("unspec"): Add UNSPEC_SETMEM.
(aarch64_setmemdi): Define.
(setmemdi): Adjust for TARGET_MOPS.
* config/aarch64/aarch64.opt (aarch64-mops-memset-size-threshold):
New param.
gcc/testsuite/ChangeLog:
* gcc.target/aarch64/mops_3.c: New test.
Diffstat (limited to 'libgcc')
0 files changed, 0 insertions, 0 deletions