clash-lang / clash-compiler

Haskell to VHDL/Verilog/SystemVerilog compiler
https://clash-lang.org/
Other
1.43k stars 151 forks source link

Fix numeric prims #2689

Closed leonschoorl closed 6 months ago

leonschoorl commented 7 months ago

This fixes various issues with primitives on various number types. Some of it caused by changes in GHC, like the change from integer-gmp to ghc-bignum and the addition of sized versions of unboxed Int and unboxed Word. And some that were just never tested properly.

For more details see the individual commits.

Still TODO:

leonschoorl commented 7 months ago

I'll squash/fixup the new commits later. But I've kept them separate for your re-reviewing pleasure.