cproc

Unnamed repository; edit this file 'description' to name the repository.
git clone git://git.nihaljere.xyz/cproc
Log | Files | Refs | Submodules | README | LICENSE

uint64-to-float.qbe (348B)


      1 export
      2 function s $f() {
      3 @start.1
      4 @body.2
      5 	%.1 =l call $g()
      6 	%.2 =w csltl %.1, 0
      7 	jnz %.2, @utof_big.4, @utof_small.3
      8 @utof_small.3
      9 	%.3 =s sltof %.1
     10 	jmp @utof_join.5
     11 @utof_big.4
     12 	%.4 =l and %.1, 1
     13 	%.5 =l shr %.1, 1
     14 	%.6 =l or %.5, %.4
     15 	%.7 =s sltof %.6
     16 	%.8 =s add %.7, %.7
     17 @utof_join.5
     18 	%.9 =s phi @utof_small.3 %.3, @utof_big.4 %.8
     19 	ret %.9
     20 }