Skip to content

Commit

Permalink
Fix "make check_all_arches" in ocaml/ subdirectory (ocaml-flambda#388)
Browse files Browse the repository at this point in the history
  • Loading branch information
gretay-js authored and mshinwell committed Dec 3, 2021
1 parent 440a5cb commit f122a05
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 0 deletions.
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

0 comments on commit f122a05

Please sign in to comment.