forked from AbleOS/holey-bytes
cfd3eac0a8
the instructions that are only depended by phis are pushed to the end of the block, which usually saves copy instructions Signed-off-by: Jakub Doka <jakub.doka2@gmail.com>
21 lines
379 B
Plaintext
21 lines
379 B
Plaintext
main:
|
|
ADDI64 r254, r254, -128d
|
|
ADDI64 r14, r254, 0d
|
|
LI8 r15, 69b
|
|
LI64 r16, 128d
|
|
CP r13, r0
|
|
2: LD r17, r254, 42a, 1h
|
|
JLTU r13, r16, :0
|
|
ANDI r13, r17, 255d
|
|
CP r1, r13
|
|
JMP :1
|
|
0: ADD64 r17, r14, r13
|
|
ST r15, r17, 0a, 1h
|
|
ADDI64 r13, r13, 1d
|
|
JMP :2
|
|
1: ADDI64 r254, r254, 128d
|
|
JALA r0, r31, 0a
|
|
code size: 138
|
|
ret: 69
|
|
status: Ok(())
|