[NDS32] Add unaligned access support

Programming / Compilers / GCC - jasonwucj [138bc75d-0d04-0410-961f-82ee72b054a4] - 22 April 2018 07:46 EDT

gcc/
- config/nds32/constants.md (unspec_volatile_element): Add enum values for unaligned access.
- config/nds32/nds32-intrinsic.c: Implementation of expanding unaligned access.
- config/nds32/nds32-intrinsic.md: Likewise.
- config/nds32/nds32_intrinsic.h: Likewise.
- config/nds32/nds32.h (nds32_builtins): Likewise.
- config/nds32/nds32.opt (munaligned-access): New option.
- config/nds32/nds32.c (nds32_asm_file_start): Display flag_unaligned_access status.

271d4bf4327 [NDS32] Add unaligned access support.
gcc/ChangeLog | 14 ++++++
gcc/config/nds32/constants.md | 3 ++
gcc/config/nds32/nds32-intrinsic.c | 9 ++++
gcc/config/nds32/nds32-intrinsic.md | 91 +++++++++++++++++++++++++++++++++----
gcc/config/nds32/nds32.c | 4 ++
gcc/config/nds32/nds32.h | 4 ++
gcc/config/nds32/nds32.opt | 4 ++
gcc/config/nds32/nds32_intrinsic.h | 6 +++
8 files changed, 127 insertions(+), 8 deletions(-)

Upstream: gcc.gnu.org


  • Share