holey-bytes/hblang/tests/codegen_tests_hex_octal_binary_literals.txt

31 lines
575 B
Plaintext
Raw Normal View History

2024-09-03 15:34:17 -05:00
main:
ADDI64 r254, r254, -48d
ST r31, r254, 0a, 48h
LI64 r32, 255d
LI64 r33, 255d
LI64 r34, 255d
LI64 r35, 255d
CP r36, r33
CMPS r32, r32, r36
CMPUI r32, r32, 0d
NOT r32, r32
CP r36, r33
CMPS r34, r34, r36
CMPUI r34, r34, 0d
NOT r34, r34
AND r32, r32, r34
CMPS r35, r35, r33
CMPUI r35, r35, 0d
NOT r35, r35
AND r32, r32, r35
JEQ r32, r0, :0
LI64 r1, 0d
JMP :1
0: LI64 r1, 1d
1: LD r31, r254, 0a, 48h
ADDI64 r254, r254, 48d
JALA r0, r31, 0a
2024-09-01 19:38:11 -05:00
code size: 205
ret: 0
status: Ok(())