Jaden Weiss
5cc130bb6e
compiler: implement spec-compliant shifts
...
Previously, the compiler used LLVM's shift instructions directly, which have UB whenever the shifts are large or negative.
This commit adds runtime checks for negative shifts, and handles oversized shifts.
2020-03-28 17:35:19 +01:00
Ayke van Laethem
e6720d7ddc
compiler: add support for comparing complex numbers
2019-02-05 17:11:09 +01:00
Ayke van Laethem
f0fb1bd41a
compiler: fix binops on named types in struct fields
2018-11-24 22:13:01 +01:00
Ayke van Laethem
668c1741c3
compiler: implement array equality
...
Implement binops == and != on array types.
2018-11-15 11:51:16 +01:00
Marc-Antoine Ruel
b1cf69a523
compiler: implement binop string: <, <=, >, >=
...
Include unit tests.
2018-11-08 20:48:29 -05:00
Ayke van Laethem
e2f6aedd9d
compiler: implement comparing structs directly
2018-10-23 13:27:18 +02:00