implement unsigned -> float casts
commit74d022f975f22fda20c0d1fe09a3f6fc7680f64f
authorBor Grošelj Simić <bor.groseljsimic@telemach.net>
Fri, 28 Jan 2022 01:06:17 +0000 (28 02:06 +0100)
committerQuentin Carbonneaux <quentin@c9x.me>
Fri, 28 Jan 2022 08:24:15 +0000 (28 09:24 +0100)
treea8b7e9e1e822d8eee5eb694984f7d45d8a7f43f0
parentb0d27d8a019811d6a4e0c0cb7ec804ab27fcec80
implement unsigned -> float casts

amd64 lacks an instruction for this so it has to be implemented with
signed -> float casts:
 - Word casting is done by zero-extending the word to a long and then doing
   a regular signed cast.
 - Long casting is done by dividing by two with correct rounding if the
   highest bit is set and casting that to float, then adding
   1 to mantissa with integer addition
amd64/isel.c
arm64/emit.c
doc/il.txt
fold.c
ops.h
test/fpcnv.ssa