aboutsummaryrefslogtreecommitdiffstats
path: root/riscV/TargetPrinter.ml
diff options
context:
space:
mode:
authorBernhard Schommer <bernhardschommer@gmail.com>2018-03-08 12:20:03 +0100
committerBernhard Schommer <bernhardschommer@gmail.com>2018-03-08 12:20:03 +0100
commitbbf922a184764a8f79b9e45dd302879568504703 (patch)
treed9fe5aa10687b4eadfd7dd2ca6aa41037fe490a6 /riscV/TargetPrinter.ml
parent263d7fe07538c35ea371bc77198803a29e7aaf34 (diff)
downloadcompcert-kvx-bbf922a184764a8f79b9e45dd302879568504703.tar.gz
compcert-kvx-bbf922a184764a8f79b9e45dd302879568504703.zip
Fix register naming for stack pointer.
It should be 'esp' respectively 'rsp' for x86, 'r13' for arm and 'sp' for riscV. Bug 23176.
Diffstat (limited to 'riscV/TargetPrinter.ml')
-rw-r--r--riscV/TargetPrinter.ml2
1 files changed, 1 insertions, 1 deletions
diff --git a/riscV/TargetPrinter.ml b/riscV/TargetPrinter.ml
index 381f4397..72b38bcd 100644
--- a/riscV/TargetPrinter.ml
+++ b/riscV/TargetPrinter.ml
@@ -572,7 +572,7 @@ module Target : TARGET =
fprintf oc "%s annotation: %S\n" comment annot
| 2 -> let lbl = new_label () in
fprintf oc "%a: " label lbl;
- add_ais_annot lbl preg_annot "r1" (camlstring_of_coqstring txt) args
+ add_ais_annot lbl preg_annot "sp" (camlstring_of_coqstring txt) args
| _ -> assert false
end
| EF_debug(kind, txt, targs) ->