Closed dplassgit closed 3 months ago
This will require changes to the IL Code generator to "Merge" the last boolean calculation with the IfOp
OR to have a much more complex ifOp
I bet we could do this in the Nasm optimizer
cmp .*
set(x) (8-byte register)
cmp BYTE $1, 0
je (dest)
gets replaced with
cmp .*
j(x) (dest)
cmp DWORD [_NUM_PLANETS], 0
setg BL
cmp BYTE BL, 0
je __loop_end_75
pattern is:
^ cmp (.*)$
^ set([a-z]) ([AL|BL|CL|DL|SIL|DIL|R[89]b|R1[0-5]b])$
^ cmp BYTE \3, 0$ ; this forces it to be the same register as in the previous line
^ je (.*)$
becomes:
cmp $1
jg $4
should be: