[NDS32] Implment setmem pattern.
authorKito Cheng <kito.cheng@gmail.com>
Mon, 5 Mar 2018 02:27:30 +0000 (02:27 +0000)
committerChung-Ju Wu <jasonwucj@gcc.gnu.org>
Mon, 5 Mar 2018 02:27:30 +0000 (02:27 +0000)
commit142439c50cfd7e3a2ef609cbd754541152814f95
tree4201140bee89011f0b161b268edefa49f171704c
parent9322e1aa5ce42c88a1e6e56dc2c69f441bf0e597
[NDS32] Implment setmem pattern.

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.

Co-Authored-By: Chung-Ju Wu <jasonwucj@gmail.com>
From-SVN: r258239
gcc/ChangeLog
gcc/config/nds32/nds32-memory-manipulation.c
gcc/config/nds32/nds32-multiple.md
gcc/config/nds32/nds32-protos.h