holey-bytes/lang/tests/son_tests_integer_inference_issues.txt

30 lines
571 B
Plaintext
Raw Normal View History

2024-10-21 12:57:55 -05:00
integer_range:
ADDI64 r254, r254, -16d
2024-10-24 02:43:07 -05:00
ST r32, r254, 0a, 16h
2024-10-21 12:57:55 -05:00
CP r32, r2
CP r33, r3
LI64 r3, 4d
LI64 r2, 3d
ECA
CP r2, r32
CP r3, r33
SUB64 r11, r3, r2
ADDI64 r3, r11, 1d
DIRU64 r0, r3, r1, r3
ADD64 r1, r3, r2
2024-10-24 02:43:07 -05:00
LD r32, r254, 0a, 16h
2024-10-21 12:57:55 -05:00
ADDI64 r254, r254, 16d
JALA r0, r31, 0a
main:
ADDI64 r254, r254, -8d
ST r31, r254, 0a, 8h
LI64 r3, 1000d
LI64 r2, 0d
JAL r31, r0, :integer_range
LD r31, r254, 0a, 8h
ADDI64 r254, r254, 8d
JALA r0, r31, 0a
code size: 210
ret: 42
status: Ok(())