1
0
Fork 0
forked from koniifer/ableos
ableos-framebuffer/hblang/tests/codegen_tests_arrays.txt

46 lines
946 B
Plaintext
Raw Normal View History

2024-09-03 15:34:17 -05:00
main:
ADDI64 r254, r254, -40d
ST r31, r254, 24a, 16h
2024-09-03 15:34:17 -05:00
LI64 r32, 1d
2024-09-04 11:48:25 -05:00
ST r32, r254, 0a, 8h
2024-09-03 15:34:17 -05:00
LI64 r32, 2d
2024-09-04 11:48:25 -05:00
ST r32, r254, 8a, 8h
2024-09-03 15:34:17 -05:00
LI64 r32, 4d
2024-09-04 11:48:25 -05:00
ST r32, r254, 16a, 8h
2024-09-03 15:34:17 -05:00
ADDI64 r32, r254, 0d
CP r2, r32
2024-09-03 15:34:17 -05:00
JAL r31, r0, :pass
LD r31, r254, 24a, 16h
ADDI64 r254, r254, 40d
2024-09-03 15:34:17 -05:00
JALA r0, r31, 0a
pass:
ADDI64 r254, r254, -40d
ST r31, r254, 0a, 40h
CP r32, r2
CP r33, r32
LI64 r34, 0d
MULI64 r34, r34, 8d
ADD64 r33, r33, r34
LD r34, r33, 0a, 8h
CP r33, r32
LI64 r35, 1d
MULI64 r35, r35, 8d
ADD64 r33, r33, r35
LD r35, r33, 0a, 8h
ADD64 r34, r34, r35
2024-09-09 18:15:18 -05:00
CP r33, r32
LI64 r35, 1d
MULI64 r35, r35, 8d
ADD64 r32, r32, r35
LD r35, r32, 0a, 8h
MULI64 r35, r35, 8d
ADD64 r33, r33, r35
LD r35, r33, 0a, 8h
ADD64 r1, r34, r35
2024-09-03 15:34:17 -05:00
LD r31, r254, 0a, 40h
ADDI64 r254, r254, 40d
JALA r0, r31, 0a
2024-09-09 18:15:18 -05:00
code size: 378
2024-07-08 11:08:58 -05:00
ret: 7
status: Ok(())