[NDS32] Add intrinsic functions for atomic load/store and memory sync.
authorMonk Chiang <sh.chiang04@gmail.com>
Sat, 7 Apr 2018 07:40:49 +0000 (07:40 +0000)
committerChung-Ju Wu <jasonwucj@gcc.gnu.org>
Sat, 7 Apr 2018 07:40:49 +0000 (07:40 +0000)
commit154e3ea6f70cbbea4355c7c7b90a626d08eed3de
tree519a0f9cbdc64cce97bc8bc622c2e2daeca63e0c
parenteda71a9eeaaf1ea16ba56d8cc5a4eb194f6025f7
[NDS32] Add intrinsic functions for atomic load/store and memory sync.

gcc/
* config/nds32/constants.md (unspec_element, unspec_volatile_element):
Add enum values for atomic load/store and memory sync.
* config/nds32/nds32-intrinsic.c: Implementation for atomic load/store
and memory sync.
* config/nds32/nds32-intrinsic.md: Likewise.
* config/nds32/nds32_intrinsic.h: Likewise.
* config/nds32/nds32.h (nds32_builtins): Likewise.

From-SVN: r259207
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_intrinsic.h