[NDS32] Add constraint for lwi45.fe instruction.
authorShiva Chen <shiva0217@gmail.com>
Thu, 5 Apr 2018 03:25:20 +0000 (03:25 +0000)
committerChung-Ju Wu <jasonwucj@gcc.gnu.org>
Thu, 5 Apr 2018 03:25:20 +0000 (03:25 +0000)
commit8656bbcff8f1b9cc80eed9be6f63170fa3ad7824
tree419d6918919f08e510daa33cffff0493336a7761
parentb9774a97af284e42882cd30b7ba352e3dea8c9ed
[NDS32] Add constraint for lwi45.fe instruction.

gcc/
* config/nds32/constraints.md (Ufe): New memory constraint.
* config/nds32/nds32-md-auxiliary.c (nds32_mem_format,
nds32_output_16bit_load): Consider r8 register for lwi45.fe format.
* config/nds32/nds32.c (nds32_print_operand): Output lwi45.fe
operands.
* config/nds32/nds32.h (nds32_16bit_address_type): Add ADDRESS_R8_IMM7U.
* config/nds32/nds32.md (*mov<mode>): Adjust pattern.

Co-Authored-By: Kito Cheng <kito.cheng@gmail.com>
From-SVN: r259121
gcc/ChangeLog
gcc/config/nds32/constraints.md
gcc/config/nds32/nds32-md-auxiliary.c
gcc/config/nds32/nds32.c
gcc/config/nds32/nds32.h
gcc/config/nds32/nds32.md