Commit graph

120 commits

Author SHA1 Message Date
Folkert de Vries
4a593a5b77
Merge pull request #6442 from roc-lang/dev-backend-glue-primitives
Dev backend glue primitives
2024-01-29 00:08:51 +01:00
Folkert
076fafe02f
enable some float conversion tests for gen-dev 2024-01-27 15:04:30 +01:00
Brian Teague
4499f8c6f4
isApproxEq function 2024-01-23 21:06:35 -05:00
Folkert
351c9215fe
dev backend: f32 abs 2024-01-19 15:16:32 +01:00
Folkert
7a365eb88f
enable even more dev-backend num tests 2024-01-02 22:23:47 +01:00
Folkert
b7a41bcb3e
enable many more dev-backend num tests 2024-01-02 21:30:49 +01:00
Folkert
6c521555ea
decimal division in dev backend 2024-01-02 19:53:13 +01:00
Folkert
4bcd195b92
implement NumSub (that panics) in the dev backend 2024-01-02 19:47:17 +01:00
Folkert
cfdfbe18a4
implement panic on overflow for mul in the dev backend 2024-01-02 15:56:28 +01:00
Anton-4
5f1c383aa0
fmt 2024-01-01 17:11:46 +01:00
Anton-4
1126f85b5a
fix clippy unnecessary hashes 2024-01-01 16:38:36 +01:00
Brendan Hansknecht
c87dcd1205
correct wrong test case 2023-12-09 18:11:22 -08:00
Brendan Hansknecht
f738d5a2bf
remove unnecessary call to math.floor in bitcode 2023-12-09 18:11:22 -08:00
Brendan Hansknecht
37656f4cc0
update uitest and mono_test 2023-12-05 12:45:31 -08:00
Brendan Hansknecht
6692f5b15d
correct counting bits to return a u8
Also add an impl to the dev backend
2023-12-05 12:37:10 -08:00
John Murray
298f93d20c
update a bunch of panic message to be capitalized 2023-11-28 20:46:09 -05:00
John Murray
2a762f1379
revert change of integer => Integer in panic messages 2023-11-27 19:59:30 -05:00
John Murray
38207cff8a
fix typo 2023-11-24 10:07:27 -05:00
John Murray
14478c888d
remove bad copy paste 2023-11-24 10:07:26 -05:00
John Murray
abc92ded95
add test for divCeil by 0 2023-11-24 10:07:26 -05:00
John Murray
5df2199ef5
add test for dec division 2023-11-24 10:07:26 -05:00
Brendan Hansknecht
f8b787c93a
disable test with bad rounding 2023-10-23 13:50:31 -07:00
Anton-4
5f878aee93
clippy 2023-09-26 15:08:30 +02:00
Folkert de Vries
3314079819
Merge pull request #5824 from roc-lang/aarch-function-preamble
AArch64 gen_num + gen_records tests
2023-09-18 18:08:00 +02:00
Folkert
f6e4aee10c
make dec checked tests clearer 2023-09-17 16:20:18 +02:00
Brendan Hansknecht
12223191be
update tests 2023-09-16 23:45:16 -07:00
Folkert
124b533bc0
implement some missing checked operations in the dev backend 2023-09-15 16:08:05 +02:00
Folkert
e850f94d05
a proper fix for llvm wasm checked arithmetic 2023-09-15 14:53:00 +02:00
Folkert
5e4f43e1d8
checkpoint 2023-09-14 14:43:24 +02:00
Folkert
134bcf8098
wrapped & saturated multiplication 2023-09-14 14:38:32 +02:00
Folkert
5ca3d3bcf1
make llvm tests work again 2023-09-13 20:24:15 +02:00
Richard Feldman
2da41be29f
Merge remote-tracking branch 'origin/main' into abilities-syntax 2023-08-10 20:36:01 -04:00
Bryce Miller
0132df9b5a
merge main 2023-06-10 15:04:25 -04:00
Fábio Beirão
91580b62cd
Adjust the tests to use i64 instead o i8
For some reason with i8, wasm would error with "ERROR: I found a type mismatch at file offset 0x3aa5. Expected I32, but found I64."
2023-06-09 19:52:19 +02:00
Fábio Beirão
ec94fc87a5
Add Num.min and Num.max
Implements #5533
2023-06-09 14:17:54 +02:00
Ayaz Hafiz
95e2fc3b03
Disable tests on dev for now 2023-06-07 11:52:50 -05:00
Ayaz Hafiz
3a25ec5322
Correctly compile mulChecked for Dec 2023-06-06 17:48:42 -05:00
Ayaz Hafiz
25f3190d33
Correctly compile subChecked for Dec 2023-06-06 17:48:42 -05:00
Ayaz Hafiz
b3966a588a
Fix compilation of addChecked for Dec 2023-06-06 17:48:41 -05:00
Bryce Miller
cb08225bf0
| -> where 2023-06-05 20:19:00 -04:00
Bryce Miller
7e8a151604
Merge branch 'main' into abilities-syntax 2023-06-01 12:57:16 -04:00
Tero Laxström
17be5a6fd1
Fix typo in gen-dev for float_add_overflow test 2023-05-31 20:52:10 +03:00
Bryce Miller
91e37293a2
abilities syntax has -> implements 2023-05-24 21:29:38 -04:00
Basile Henry
9a2afbb09b gen_dev: Implement builtins Num.isNan, Num.isFinite, Num.isInfinite 2023-05-03 11:12:01 +01:00
Basile Henry
b8aaaaabda Implement builtins for Num.isNan, Num.isInfinite, and Num.isFinite
Closes #5310 and closes #5309
2023-05-03 09:33:28 +01:00
Folkert
5363b95c5f
move with sign extension 2023-04-27 19:40:57 +02:00
Folkert
0bf3eefbf2
dev backend: Num.isMultipleOf 2023-04-27 13:50:27 +02:00
Folkert
10a497fdde
sign extension WIP 2023-04-27 12:24:25 +02:00
Folkert
d10ae2412a
num conversion 2023-04-27 11:36:56 +02:00
Folkert
1dd4b470dd
more casts, u128 literals 2023-04-27 11:18:11 +02:00