Commit graph

61 commits

Author SHA1 Message Date
Folkert
e643d1ea3c more backtracking 2021-02-02 18:47:58 +01:00
Sébastien Besnier
fdc2b6ad86 add bitwise xor 2021-01-14 16:12:46 +01:00
rvcas
0aca5ae89a fix: fmt issue in gen_num.rs 2021-01-04 10:03:40 -05:00
Jared Ramirez
faa8f66b6c Add gen support for Nat 2021-01-01 17:40:47 -06:00
Jared Ramirez
37510e6aae Add rest of gen_num tests 2021-01-01 16:35:55 -06:00
Jared Ramirez
18d0141942 [WIP] Merge local changes with new branch 2020-12-31 13:08:50 -06:00
Jared Ramirez
791a0e9404 Use precision in mono/ir to determine which number to generate 2020-12-29 09:33:55 -06:00
Jared Ramirez
48f964adf4 Add percision variable in fp/integer eq constraints 2020-12-28 16:22:34 -06:00
Jared Ramirez
5e332cbad9 [WIP] F32 gen 2020-12-28 14:50:01 -06:00
Jared Ramirez
9b1769b3fb Add basic tests for number gen 2020-12-28 14:50:01 -06:00
Folkert
125146aac7 Merge remote-tracking branch 'origin/trunk' into bughunt 2020-12-26 00:51:22 +01:00
Folkert
59d6cdba04 make Num.neg raise on overflow 2020-12-26 00:50:09 +01:00
Folkert
51cf54e367 raise exception on Num.abs overflow 2020-12-25 21:26:29 +01:00
Richard Feldman
a656778968 Merge remote-tracking branch 'origin/trunk' into overflow_on_mul 2020-12-23 15:37:55 -05:00
Celso Bonutti Filho
e7b2485a15 fix: ambiguous Num.subChecked test 2020-12-23 13:44:28 -03:00
Celso Bonutti Filho
c98d554328 test: adds tests for mulCheck and mulWrap 2020-12-23 13:43:34 -03:00
rvcas
eda5b72060 Merge branch 'trunk' into new_num_layer 2020-12-23 08:24:19 -05:00
Celso Bonutti Filho
cfbc4d1c54 feat: throws exception on multiplication overflow 2020-12-23 10:17:16 -03:00
Celso Bonutti Filho
2608be3df9 adds missing test annotation for float_sub_checked 2020-12-22 23:35:25 -03:00
Celso Bonutti Filho
fe588c120c adds Num.subChecked 2020-12-22 23:27:16 -03:00
Celso Bonutti Filho
5d2abc2bd2 throws subtraction overflow error for floats 2020-12-22 23:26:50 -03:00
Celso Bonutti Filho
313bc2ab86 adds tests for Num.subWrap and sub overflow 2020-12-22 22:18:00 -03:00
rvcas
c9308c0662 add new layer to the Num types 2020-12-21 09:56:11 -05:00
Folkert de Vries
2972437fce
Merge branch 'trunk' into fixing-exceptions 2020-12-21 02:30:39 +01:00
Folkert
725d52f7c6 make exceptions work on linux again 2020-12-21 02:12:30 +01:00
Celso Bonutti Filho
0a24f3b4b4 adds Num.bitwiseAnd 2020-12-20 19:55:10 -03:00
Folkert
0b19c594c5 improve compare/Order 2020-11-09 21:21:14 +01:00
Folkert
2cf7a9fe42 fix tests 2020-11-03 20:13:38 +01:00
Folkert
89e01c63d1 make Num.maxInt and Num.minInt work 2020-11-02 21:49:44 +01:00
Folkert
841d696e6d cleanup 2020-11-02 20:28:12 +01:00
Jared Ramirez
242eb6f905 Build bitcode with zig 🎉 2020-10-28 09:21:56 -07:00
Jared Ramirez
6253ac15e4 Use differnt atan test based on os 2020-10-25 12:11:23 -07:00
Richard Feldman
21d4f8026e
Merge branch 'trunk' into convert-bitcode-gen-to-c 2020-10-25 14:17:17 -04:00
Richard Feldman
17b2eebcfc REVERT THIS! Temporarily disable exception tests.
These currently break on Linux, but pass on macOS.

They worked fine with JITExecutionEngine on Linux,
but JITExecutionEngine failed on macOS.
2020-10-25 01:42:10 -04:00
Richard Feldman
14c8a00f9d Don't link Scrti.o when doing dynamic linking 2020-10-25 01:42:10 -04:00
Richard Feldman
468deebaa3 Clean up dummy test 2020-10-25 01:42:10 -04:00
Richard Feldman
b4377d4d67 Get a basic dylib linking started 2020-10-25 01:41:55 -04:00
Jared Ramirez
d82d6b6fe9 Convert builtins to C 2020-10-24 12:22:51 -07:00
Folkert
89a1146c19 run gen tests as modules 2020-10-13 21:45:41 +02:00
Jared Ramirez
5cafbcd5ad Add Num.atan builtin 2020-09-26 19:00:51 -07:00
Folkert
fb4a796e07 add different variants of addition 2020-09-21 23:38:10 +02:00
Folkert
95177eee5a integer addition operations 2020-09-20 20:21:45 +02:00
Folkert
f732eb3e83 crash upon integer overflow 2020-09-20 17:01:00 +02:00
Jared Ramirez
665c7c7f9f Add Num.floor 2020-09-17 17:44:53 -07:00
Dimitar Apostolov
e89af31015 Use own implementation of pow_int_ instead of llvm
Remove LLVM intrinsics code related to `Num.powInt`.
2020-09-17 14:07:18 +02:00
Jared Ramirez
a0402bca4d Add Num.ceiling 2020-09-15 18:37:45 -07:00
Dimitar Apostolov
bbb05749ab Add LLVM intrinsic for Num.pow 2020-09-14 22:01:12 +02:00
Folkert
1b42831973 implement Num.compare 2020-09-08 19:40:18 +02:00
Folkert
fa5e5ab201 back to a working version 2020-08-19 23:42:45 +02:00
Folkert
5082d40ff5 clean up test imports 2020-08-08 21:56:43 +02:00