holey-bytes/hblang/tests/codegen_tests_hex_octal_binary_literals.txt

32 lines
591 B
Plaintext

main:
ADDI64 r254, r254, -56d
ST r31, r254, 0a, 56h
LI64 r32, 255d
LI64 r33, 255d
LI64 r34, 255d
LI64 r35, 255d
CP r36, r32
CMPS r36, r36, r33
CMPUI r36, r36, 0d
NOT r36, r36
CP r37, r34
CMPS r37, r37, r33
CMPUI r37, r37, 0d
NOT r37, r37
AND r36, r36, r37
CP r37, r35
CMPS r37, r37, r33
CMPUI r37, r37, 0d
NOT r37, r37
AND r36, r36, r37
JEQ r36, r0, :0
LI64 r1, 0d
JMP :1
0: LI64 r1, 1d
1: LD r31, r254, 0a, 56h
ADDI64 r254, r254, 56d
JALA r0, r31, 0a
code size: 208
ret: 0
status: Ok(())