holey-bytes/lang/tests/son_tests_advanced_floating_point_arithmetic.txt

49 lines
1 KiB
Plaintext
Raw Normal View History

2024-11-06 11:35:01 -06:00
main:
ADDI64 r254, r254, -24d
ST r31, r254, 0a, 24h
2024-11-06 11:35:01 -06:00
LI32 r32, 1148846080w
CP r2, r32
JAL r31, r0, :sin
2024-11-15 15:35:03 -06:00
CP r33, r1
FMUL32 r32, r33, r32
FTI32 r32, r32, 1b
CP r1, r32
LD r31, r254, 0a, 24h
ADDI64 r254, r254, 24d
2024-11-06 11:35:01 -06:00
JALA r0, r31, 0a
sin:
2024-11-15 15:35:03 -06:00
CP r13, r2
LI32 r14, 1124073472w
LI32 r15, 1078530011w
FMUL32 r14, r13, r14
FDIV32 r14, r14, r15
FTI32 r14, r14, 1b
ANDI r15, r14, 255d
ITF64 r16, r14
MULI64 r15, r15, 4d
LRA r17, r0, :SIN_TABLE
LI32 r18, 1086918619w
FC64T32 r16, r16, 1b
ADDI64 r14, r14, 64d
ADD64 r15, r17, r15
LI32 r19, 1132462080w
FMUL32 r16, r16, r18
ANDI r14, r14, 255d
LI32 r18, 1056964608w
LD r15, r15, 0a, 4h
FDIV32 r16, r16, r19
MULI64 r14, r14, 4d
FMUL32 r18, r15, r18
FSUB32 r13, r13, r16
ADD64 r14, r17, r14
FMUL32 r16, r13, r18
LD r14, r14, 0a, 4h
FSUB32 r14, r14, r16
FMUL32 r13, r14, r13
FADD32 r13, r15, r13
CP r1, r13
2024-11-06 11:35:01 -06:00
JALA r0, r31, 0a
code size: 1315
2024-11-07 03:43:29 -06:00
ret: 826
2024-11-06 11:35:01 -06:00
status: Ok(())