holey-bytes/lang/tests/son_tests_integer_inference_issues.txt

30 lines
567 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
2024-11-13 03:28:16 -06:00
SUB64 r3, r3, r2
ADDI64 r3, r3, 1d
DIRU64 r0, r5, r1, r3
ADD64 r1, r5, 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
2024-11-13 03:28:16 -06:00
CP r2, r0
2024-10-21 12:57:55 -05:00
JAL r31, r0, :integer_range
LD r31, r254, 0a, 8h
ADDI64 r254, r254, 8d
JALA r0, r31, 0a
2024-11-13 03:28:16 -06:00
code size: 203
2024-10-21 12:57:55 -05:00
ret: 42
status: Ok(())