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>
27 lines
525 B
Plaintext
27 lines
525 B
Plaintext
main:
|
|
ADDI64 r254, r254, -10240d
|
|
LI8 r14, 64b
|
|
LI64 r15, 1024d
|
|
ADDI64 r16, r254, 0d
|
|
CP r13, r0
|
|
4: JLTU r13, r15, :0
|
|
ADDI64 r14, r16, 10240d
|
|
ADDI64 r13, r16, 1024d
|
|
3: LD r15, r254, 2048a, 1h
|
|
JLTU r13, r14, :1
|
|
ANDI r13, r15, 255d
|
|
CP r1, r13
|
|
JMP :2
|
|
1: BMC r16, r13, 1024h
|
|
ADDI64 r13, r13, 1024d
|
|
JMP :3
|
|
0: ADD64 r17, r16, r13
|
|
ST r14, r17, 0a, 1h
|
|
ADDI64 r13, r13, 1d
|
|
JMP :4
|
|
2: ADDI64 r254, r254, 10240d
|
|
JALA r0, r31, 0a
|
|
code size: 186
|
|
ret: 64
|
|
status: Ok(())
|