Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Ekdohibs committed May 27, 2024
1 parent 4136c50 commit 079832a
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion middle_end/flambda2/to_cmm/to_cmm_primitive.ml
Original file line number Diff line number Diff line change
Expand Up @@ -698,7 +698,14 @@ let unary_primitive env res dbg f arg =
let extra, expr = arithmetic_conversion dbg src dst arg in
extra, res, expr
| Boolean_not -> None, res, C.mk_not dbg arg
| Reinterpret_int64_as_float -> None, res, C.int64_as_float ~dbg arg
| Reinterpret_int64_as_float ->
(* Will be translated to MOVQ by backend/amd64/selection.ml. *)
( None,
res,
C.extcall ~dbg ~alloc:false ~returns:true ~is_c_builtin:false
~effects:Arbitrary_effects ~coeffects:Has_coeffects
~ty_args:[C.exttype_of_kind K.naked_int64]
"caml_int64_float_of_bits_unboxed" Cmm.typ_float [arg] )
| Unbox_number kind -> None, res, unbox_number ~dbg kind arg
| Untag_immediate -> Some (Env.Untag arg), res, C.untag_int arg dbg
| Box_number (kind, alloc_mode) ->
Expand Down

0 comments on commit 079832a

Please sign in to comment.