[NDS32] Add intrinsic functions for particular instructions.
authorMonk Chiang <sh.chiang04@gmail.com>
Sat, 7 Apr 2018 08:16:41 +0000 (08:16 +0000)
committerChung-Ju Wu <jasonwucj@gcc.gnu.org>
Sat, 7 Apr 2018 08:16:41 +0000 (08:16 +0000)
commit2feae6cdf25ad2d1cb2fc48ab000b4ca4c5ec793
treeed4f3566393136433b66c965f63b196af4ff44e5
parent154e3ea6f70cbbea4355c7c7b90a626d08eed3de
[NDS32] Add intrinsic functions for particular instructions.

gcc/
* config/nds32/constants.md (unspec_element, unspec_volatile_element):
Add enum values for particular instructions.
* config/nds32/nds32-intrinsic.c: Implementation of expanding
particular intrinsic functions.
* config/nds32/nds32-intrinsic.md: Likewise.
* config/nds32/nds32_intrinsic.h: Likewise.
* config/nds32/nds32.h (nds32_builtins): Likewise.
* config/nds32/nds32.md (type): Add pbsad and pbsada.
(btst, ave): New patterns for particular instructions.

From-SVN: r259208
gcc/ChangeLog
gcc/config/nds32/constants.md
gcc/config/nds32/nds32-intrinsic.c
gcc/config/nds32/nds32-intrinsic.md
gcc/config/nds32/nds32.h
gcc/config/nds32/nds32.md
gcc/config/nds32/nds32_intrinsic.h