Skip to content

Fix "make check_all_arches" in ocaml/ subdirectory #388

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions ocaml/asmcomp/arm/emit.mlp
Original file line number Diff line number Diff line change
Expand Up @@ -769,6 +769,8 @@ let emit_instr i =
assert false
end
| Lop (Iname_for_debugger _) -> 0
| Lop (Iprobe _ |Iprobe_is_enabled _) ->
Misc.fatal_error ("Probes not supported.")
| Lreloadretaddr ->
let n = frame_size() in
` ldr lr, [sp, #{emit_int(n-4)}]\n`; 1
Expand Down
4 changes: 4 additions & 0 deletions ocaml/asmcomp/arm64/emit.mlp
Original file line number Diff line number Diff line change
Expand Up @@ -532,6 +532,8 @@ module BR = Branch_relaxation.Make (struct
| Lop (Ispecific (Ibswap _)) -> 1
| Lop (Ispecific Imove32) -> 1
| Lop (Iname_for_debugger _) -> 0
| Lop (Iprobe _ |Iprobe_is_enabled _) ->
Misc.fatal_error ("Probes not supported.")
| Lreloadretaddr -> 0
| Lreturn -> epilogue_size ()
| Llabel _ -> 0
Expand Down Expand Up @@ -880,6 +882,8 @@ let emit_instr i =
assert false
end
| Lop (Iname_for_debugger _) -> ()
| Lop (Iprobe _ |Iprobe_is_enabled _) ->
Misc.fatal_error ("Probes not supported.")
| Lreloadretaddr ->
()
| Lreturn ->
Expand Down
4 changes: 4 additions & 0 deletions ocaml/asmcomp/power/emit.mlp
Original file line number Diff line number Diff line change
Expand Up @@ -498,6 +498,8 @@ module BR = Branch_relaxation.Make (struct
| Lop(Iintoffloat) -> 4
| Lop(Ispecific _) -> 1
| Lop (Iname_for_debugger _) -> 0
| Lop (Iprobe _ |Iprobe_is_enabled _) ->
Misc.fatal_error ("Probes not supported.")
| Lreloadretaddr -> 2
| Lreturn -> 2
| Llabel _ -> 0
Expand Down Expand Up @@ -859,6 +861,8 @@ let emit_instr i =
let instr = name_for_specific sop in
` {emit_string instr} {emit_reg i.res.(0)}, {emit_reg i.arg.(0)}, {emit_reg i.arg.(1)}, {emit_reg i.arg.(2)}\n`
| Lop (Iname_for_debugger _) -> ()
| Lop (Iprobe _ |Iprobe_is_enabled _) ->
Misc.fatal_error ("Probes not supported.")
| Lreloadretaddr ->
` {emit_string lg} 11, {emit_int(retaddr_offset())}(1)\n`;
` mtlr 11\n`
Expand Down
2 changes: 2 additions & 0 deletions ocaml/asmcomp/riscv/emit.mlp
Original file line number Diff line number Diff line change
Expand Up @@ -443,6 +443,8 @@ let emit_instr i =
` {emit_string instr} {emit_reg i.res.(0)}, {emit_reg i.arg.(0)}, {emit_reg i.arg.(1)}, {emit_reg i.arg.(2)}\n`
| Lop (Iname_for_debugger _) ->
()
| Lop (Iprobe _ |Iprobe_is_enabled _) ->
Misc.fatal_error ("Probes not supported.")
| Lreloadretaddr ->
let n = frame_size () in
reload_ra n
Expand Down
2 changes: 2 additions & 0 deletions ocaml/asmcomp/s390x/emit.mlp
Original file line number Diff line number Diff line change
Expand Up @@ -544,6 +544,8 @@ let emit_instr i =
let instr = name_for_specific sop in
` {emit_string instr} {emit_reg i.res.(0)}, {emit_reg i.arg.(0)}, {emit_reg i.arg.(1)}\n`
| Lop (Iname_for_debugger _) -> ()
| Lop (Iprobe _ |Iprobe_is_enabled _) ->
Misc.fatal_error ("Probes not supported.")
| Lreloadretaddr ->
let n = frame_size() in
` lg %r14, {emit_int(n - size_addr)}(%r15)\n`
Expand Down