holey-bytes/lang/tests/son_tests_integer_inference_issues.txt

34 lines
644 B
Plaintext
Raw Normal View History

2024-10-21 12:57:55 -05:00
integer_range:
2024-11-15 15:35:03 -06:00
ADDI64 r254, r254, -32d
ST r32, r254, 0a, 32h
CP r13, r2
CP r14, r3
LI64 r15, 4d
LI64 r16, 3d
CP r2, r16
CP r3, r15
2024-10-21 12:57:55 -05:00
ECA
2024-11-15 15:35:03 -06:00
CP r15, r1
SUB64 r14, r14, r13
ADDI64 r14, r14, 1d
DIRU64 r0, r14, r15, r14
ADD64 r13, r14, r13
CP r1, r13
LD r32, r254, 0a, 32h
ADDI64 r254, r254, 32d
2024-10-21 12:57:55 -05:00
JALA r0, r31, 0a
main:
2024-11-15 15:35:03 -06:00
ADDI64 r254, r254, -24d
ST r31, r254, 0a, 24h
LI64 r32, 1000d
2024-11-13 03:28:16 -06:00
CP r2, r0
2024-11-15 15:35:03 -06:00
CP r3, r32
2024-10-21 12:57:55 -05:00
JAL r31, r0, :integer_range
2024-11-15 15:35:03 -06:00
CP r0, r1
LD r31, r254, 0a, 24h
ADDI64 r254, r254, 24d
2024-10-21 12:57:55 -05:00
JALA r0, r31, 0a
2024-11-15 15:35:03 -06:00
code size: 215
2024-10-21 12:57:55 -05:00
ret: 42
status: Ok(())