[NDS32] Implment setmem pattern

Programming / Compilers / GCC - jasonwucj [138bc75d-0d04-0410-961f-82ee72b054a4] - 5 March 2018 02:27 EST

gcc/
- config/nds32/nds32-protos.h (nds32_expand_setmem): Declare.
- config/nds32/nds32-multiple.md (setmemsi): Define.
- config/nds32/nds32-memory-manipulation.c (nds32_gen_dup_4_byte_to_word_value): New. (emit_setmem_word_loop): New. (emit_setmem_byte_loop): New. (nds32_expand_setmem_loop): New. (nds32_expand_setmem_loop_v3m): New. (nds32_expand_setmem_unroll): New. (nds32_expand_setmem): New.

c2709f11efe [NDS32] Implment setmem pattern.
gcc/ChangeLog | 20 +-
gcc/config/nds32/nds32-memory-manipulation.c | 419 +++++++++++++++++++++++++++
gcc/config/nds32/nds32-multiple.md | 19 ++
gcc/config/nds32/nds32-protos.h | 1 +
4 files changed, 456 insertions(+), 3 deletions(-)

Upstream: gcc.gnu.org


  • Share