[NDS32] Add constraint for lwi45.fe instruction

Programming / Compilers / GCC - jasonwucj [138bc75d-0d04-0410-961f-82ee72b054a4] - 5 April 2018 03:25 EDT

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): Adjust pattern.

326d7bad92e [NDS32] Add constraint for lwi45.fe instruction.
gcc/ChangeLog | 11 +++++++++++
gcc/config/nds32/constraints.md | 6 ++++++
gcc/config/nds32/nds32-md-auxiliary.c | 7 +++++++
gcc/config/nds32/nds32.c | 8 ++++++++
gcc/config/nds32/nds32.h | 2 ++
gcc/config/nds32/nds32.md | 19 ++++++++++---------
6 files changed, 44 insertions(+), 9 deletions(-)

Upstream: gcc.gnu.org


  • Share