aboutsummaryrefslogtreecommitdiffstats
path: root/mppa_k1c/TargetPrinter.ml
diff options
context:
space:
mode:
authorDavid Monniaux <david.monniaux@univ-grenoble-alpes.fr>2019-04-11 22:29:14 +0200
committerDavid Monniaux <david.monniaux@univ-grenoble-alpes.fr>2019-04-11 22:29:14 +0200
commit4571fc5fade196c02d68c4feb5e5a1b862d37041 (patch)
tree681f4992fee674059d6f8245e9e2b6da35256e2f /mppa_k1c/TargetPrinter.ml
parent9cdb61cc69db8fbb9bedfd3957b9512f8622fb7a (diff)
downloadcompcert-kvx-4571fc5fade196c02d68c4feb5e5a1b862d37041.tar.gz
compcert-kvx-4571fc5fade196c02d68c4feb5e5a1b862d37041.zip
more builtins
Diffstat (limited to 'mppa_k1c/TargetPrinter.ml')
-rw-r--r--mppa_k1c/TargetPrinter.ml11
1 files changed, 10 insertions, 1 deletions
diff --git a/mppa_k1c/TargetPrinter.ml b/mppa_k1c/TargetPrinter.ml
index 4599f2a1..ca158cb9 100644
--- a/mppa_k1c/TargetPrinter.ml
+++ b/mppa_k1c/TargetPrinter.ml
@@ -288,6 +288,12 @@ module Target (*: TARGET*) =
fprintf oc " wfxm $s%ld = %a\n" (camlint_of_coqint n) ireg dst
| Pldu(dst, addr) ->
fprintf oc " ld.u %a = 0[%a]\n" ireg dst ireg addr
+ | Plbzu(dst, addr) ->
+ fprintf oc " lbz.u %a = 0[%a]\n" ireg dst ireg addr
+ | Plhzu(dst, addr) ->
+ fprintf oc " lhz.u %a = 0[%a]\n" ireg dst ireg addr
+ | Plwzu(dst, addr) ->
+ fprintf oc " lwz.u %a = 0[%a]\n" ireg dst ireg addr
| Pawait ->
fprintf oc " await\n"
| Psleep ->
@@ -316,7 +322,10 @@ module Target (*: TARGET*) =
fprintf oc " afaddd 0[%a] = %a\n" ireg addr ireg incr_res
| Pafaddw(addr, incr_res) ->
fprintf oc " afaddw 0[%a] = %a\n" ireg addr ireg incr_res
-
+ | Palclrd(res, addr) ->
+ fprintf oc " alclrd %a = 0[%a]\n" ireg res ireg addr
+ | Palclrw(res, addr) ->
+ fprintf oc " alclrw %a = 0[%a]\n" ireg res ireg addr
| Pjumptable (idx_reg, tbl) ->
let lbl = new_label() in
(* jumptables := (lbl, tbl) :: !jumptables; *)