Commit Graph

4 Commits

Author SHA1 Message Date
Ayke van Laethem 638bc17eeb compiler: add support for complex add and sub
This is fairly trivial to add and follows the implementation of gc:
https://github.com/golang/go/blob/170b8b4b12be50eeccbcdadb8523fb4fc670ca72/src/cmd/compile/internal/gc/ssa.go#L2179-L2192
2019-05-11 15:33:37 +02:00
Ayke van Laethem e66d457c42 compiler: fix float <-> int conversions 2018-11-03 12:20:55 +01:00
Ayke van Laethem 9b9b66a09d compiler: add complex manipulation
* builtins: real, imag, complex
* printing of complex numbers

No support for complex arithmetic yet.
2018-10-22 13:49:03 +02:00
Ayke van Laethem c1a833c7cc main: add basic float tests 2018-09-29 00:12:23 +02:00