holey-bytes/lang/tests/son_tests_small_struct_bitcast.txt

30 lines
627 B
Plaintext
Raw Normal View History

2024-10-24 06:58:58 -05:00
main:
ADDI64 r254, r254, -12d
ST r31, r254, 4a, 8h
2024-10-24 06:58:58 -05:00
LRA r1, r0, :white
ADDI64 r4, r254, 0d
LD r2, r1, 0a, 4h
2024-10-24 06:58:58 -05:00
JAL r31, r0, :u32_to_color
ST r1, r254, 0a, 4h
LD r9, r254, 0a, 1h
ANDI r1, r9, 255d
LD r31, r254, 4a, 8h
ADDI64 r254, r254, 12d
2024-10-24 06:58:58 -05:00
JALA r0, r31, 0a
u32_to_color:
ADDI64 r254, r254, -12d
ST r31, r254, 4a, 8h
JAL r31, r0, :u32_to_u32
ADDI64 r5, r254, 0d
ST r1, r254, 0a, 4h
LD r1, r5, 0a, 4h
LD r31, r254, 4a, 8h
ADDI64 r254, r254, 12d
2024-10-24 06:58:58 -05:00
JALA r0, r31, 0a
2024-10-24 07:08:17 -05:00
u32_to_u32:
CP r1, r2
JALA r0, r31, 0a
code size: 263
ret: 255
2024-10-24 06:58:58 -05:00
status: Ok(())