File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -303,12 +303,20 @@ let remove_nops l = List.filter ~f:(fun i -> not (Poly.equal i Nop)) l
303
303
304
304
let float64 _ f =
305
305
match classify_float f with
306
- | FP_normal | FP_subnormal | FP_zero | FP_nan -> Printf. sprintf " %h" f
306
+ | FP_normal | FP_subnormal | FP_zero -> Printf. sprintf " %h" f
307
+ | FP_nan ->
308
+ Printf. sprintf
309
+ " nan:0x%Lx"
310
+ Int64. (logand (bits_of_float f) (of_int ((1 lsl 52 ) - 1 )))
307
311
| FP_infinite -> if Float. (f > 0. ) then " inf" else " -inf"
308
312
309
313
let float32 _ f =
310
314
match classify_float f with
311
- | FP_normal | FP_subnormal | FP_zero | FP_nan -> Printf. sprintf " %h" f
315
+ | FP_normal | FP_subnormal | FP_zero -> Printf. sprintf " %h" f
316
+ | FP_nan ->
317
+ Printf. sprintf
318
+ " nan:0x%lx"
319
+ Int32. (logand (bits_of_float f) (of_int ((1 lsl 23 ) - 1 )))
312
320
| FP_infinite -> if Float. (f > 0. ) then " inf" else " -inf"
313
321
314
322
let expression_or_instructions ctx st in_function =
You can’t perform that action at this time.
0 commit comments