aboutsummaryrefslogtreecommitdiffstats
path: root/riscV/Asmexpand.ml
diff options
context:
space:
mode:
authorBernhard Schommer <bernhardschommer@gmail.com>2020-01-02 14:58:37 +0100
committerXavier Leroy <xavierleroy@users.noreply.github.com>2020-01-03 09:12:23 +0100
commit7077c2ea9e86f001e805d7a2a5e7fcdfd0a8ece8 (patch)
tree3c03dcc8cb4508ff2a58852a7e24ab73ac914f8f /riscV/Asmexpand.ml
parent4b042d572b943c8cb3b86b61e3282bba58f488ab (diff)
downloadcompcert-kvx-7077c2ea9e86f001e805d7a2a5e7fcdfd0a8ece8.tar.gz
compcert-kvx-7077c2ea9e86f001e805d7a2a5e7fcdfd0a8ece8.zip
Revert "Remove `__builtin_nop` for some architectures. (#208)"
This reverts commit 4dfcd7d4be18e8bc437ca170782212aa06635a95.
Diffstat (limited to 'riscV/Asmexpand.ml')
-rw-r--r--riscV/Asmexpand.ml2
1 files changed, 2 insertions, 0 deletions
diff --git a/riscV/Asmexpand.ml b/riscV/Asmexpand.ml
index 3c1ef39f..3e734747 100644
--- a/riscV/Asmexpand.ml
+++ b/riscV/Asmexpand.ml
@@ -468,6 +468,8 @@ let expand_builtin_inline name args res =
(fun rl ->
emit (Pmulw (rl, X a, X b));
emit (Pmulhuw (rh, X a, X b)))
+ | "__builtin_nop", [], _ ->
+ emit Pnop
(* Catch-all *)
| _ ->
raise (Error ("unrecognized builtin " ^ name))