Open Sibylau opened 3 years ago
It seems LLVM doesn't support long bit-width division (>128 bits). I'm trying to see if there's any solution. In the worst case, we might need to implement the division as a series of substractions.
I also found the same error in another public repo: https://github.com/ziglang/zig/issues/1534. @zhangzhiru any suggestion? @zhenkun can you help me tag Jeremy?
We need to prompt an error message first. Later we can provide an additional HCL library to support long division and other related arithmetic operators.
I also found the same error in another public repo: ziglang/zig#1534. @zhangzhiru any suggestion? @zhenkun can you help me tag Jeremy?
@jcasas00
When using the LLVM backend, modulo operation
%
fails with integers longer than 128 bit. The test case is linked here:compiles with error:
LLVM ERROR: Unsupported library call operation!