Direct order for branches
vorotynsky opened this issue · 0 comments
vorotynsky commented
Fix if-branches ordering for compiled code.
if (x == 0, XEZ)
!; if body
else
!; else body
Actual:
cmp ax, 0
je XEZ_begin
; else body
jmp XEZ_end
XEZ_begin:
; if body
XEZ_end:
Expected:
cmp ax, 0
jne XEZ_begin
; if body
jmp XEZ_end
XEZ_begin:
; else body
XEZ_end: