bjorn3 commented on issue #4771:
For reference cg_clif uses compiler-builtins intrinsics for 128bit multiplication and division.
afonso360 commented on issue #4771:
I think we already support i128 multiplications (at least the test case is enabled), but I'd still like to implement i128 div/rem and cleanup cg_clif's codegen!
bjorn3 commented on issue #4771:
Won't 128bit div and rem be rather large? Using compiler-builtins would avoid code bloat in those cases.
bjorn3 edited a comment on issue #4771:
Won't 128bit div and rem be rather large? Using compiler-builtins avoids code bloat in those cases.
afonso360 commented on issue #4771:
Well the plan was to do exactly that, lower them as libcalls, or are they not available in all platforms?
bjorn3 commented on issue #4771:
I see. I believe it is available on all platforms. However LLVM has changed the abi of 128bit compiler builtins on windows before and this may happen again in the future.
Last updated: Dec 23 2024 at 13:07 UTC