Skip to content

Commit

Permalink
Added missing printer for PowerPC 64 bit comparison.
Browse files Browse the repository at this point in the history
These comparisons are supported in the hybrid 64 bit mode.
Bug 30035
  • Loading branch information
bschommer authored and xavierleroy committed Nov 6, 2020
1 parent acaabc6 commit 4011a08
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions powerpc/PrintOp.ml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,14 @@ let print_condition reg pp = function
fprintf pp "%a & 0x%lx == 0" reg r1 (camlint_of_coqint n)
| (Cmasknotzero n, [r1]) ->
fprintf pp "%a & 0x%lx != 0" reg r1 (camlint_of_coqint n)
| (Ccompl c, [r1;r2]) ->
fprintf pp "%a %sls %a" reg r1 (comparison_name c) reg r2
| (Ccomplu c, [r1;r2]) ->
fprintf pp "%a %slu %a" reg r1 (comparison_name c) reg r2
| (Ccomplimm(c, n), [r1]) ->
fprintf pp "%a %sls %Ld" reg r1 (comparison_name c) (camlint64_of_coqint n)
| (Ccompluimm(c, n), [r1]) ->
fprintf pp "%a %slu %Ld" reg r1 (comparison_name c) (camlint64_of_coqint n)
| _ ->
fprintf pp "<bad condition>"

Expand Down

0 comments on commit 4011a08

Please sign in to comment.