aboutsummaryrefslogtreecommitdiffstats
path: root/powerpc/Asmexpand.ml
diff options
context:
space:
mode:
authorBernhard Schommer <bernhardschommer@gmail.com>2015-08-14 15:12:40 +0200
committerBernhard Schommer <bernhardschommer@gmail.com>2015-08-14 15:12:40 +0200
commit4eb7fcaf6a5e366c71d95d2152dcc1f3982c404b (patch)
tree9c55fdcf79a1812a948fdfd615d7afe701a46d5a /powerpc/Asmexpand.ml
parent3e071cf4c8a5cc8fde76cdbb00e90ebbd0d872d4 (diff)
downloadcompcert-4eb7fcaf6a5e366c71d95d2152dcc1f3982c404b.tar.gz
compcert-4eb7fcaf6a5e366c71d95d2152dcc1f3982c404b.zip
Added builtin for the lwsync barrier.
Diffstat (limited to 'powerpc/Asmexpand.ml')
-rw-r--r--powerpc/Asmexpand.ml2
1 files changed, 2 insertions, 0 deletions
diff --git a/powerpc/Asmexpand.ml b/powerpc/Asmexpand.ml
index fd252b98..487aaaae 100644
--- a/powerpc/Asmexpand.ml
+++ b/powerpc/Asmexpand.ml
@@ -416,6 +416,8 @@ let expand_builtin_inline name args res =
emit (Psync)
| "__builtin_isync", [], _ ->
emit (Pisync)
+ | "__builtin_lwsync", [], _ ->
+ emit (Plwsync)
| "__builtin_trap", [], _ ->
emit (Ptrap)
(* Vararg stuff *)