File tree Expand file tree Collapse file tree
test/floating_point/ez80sf/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44
55 .global __dtof
66 .type __dtof, @function
7+ .global __dtofp
8+ .type __dtofp, @function
79
8- .local __dtof_helper
9- __dtof_helper :
10+ .local __dtofp_helper
11+ __dtofp_helper :
1012 ; Moving this block of code to be behind __dtof ensures that
1113 ; .L.ret_copysign can always be reached by jr in all paths.
1214.L.overflow:
@@ -54,6 +56,7 @@ __dtof_helper:
5456; Quiet NaN: Quiet bit preserved. No signals raised.
5557; NaN Payloads: Copies the most significant payload bits. The LSB of mantissa is set if payload bits were discarded/truncated out.
5658__dtof:
59+ __dtofp:
5760 bit 7, b
5861 push af ; preserve A and signbit
5962 push bc
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 44
55 .global __ftod
66 .type __ftod, @function
7+ .global __fptod
8+ .type __fptod, @function
79
810; input E:UHL (float)
911; ouput BC:UDE:UHL (long double)
1012; NaN payloads are bitshifted
1113__ftod:
14+ __fptod:
1215 sla e ; extract signbit
1316 push af
1417 srl e
Original file line number Diff line number Diff line change @@ -44,8 +44,8 @@ _link_test:
4444 ld hl, __lltofp
4545 ld hl, __ulltofp
4646
47- ; ld hl, __fptod
48- ; ld hl, __dtofp
47+ ld hl, __fptod
48+ ld hl, __dtofp
4949
5050 or a, a
5151 sbc hl, hl
You can’t perform that action at this time.
0 commit comments