Skip to content

Conversation

oscardssmith
Copy link
Member

I believe this code existed to work around bugs that LLVM used to have with 128 bit numbers on 32 bit systems, but I'm not entirely sure.

@oscardssmith oscardssmith added system:32-bit Affects only 32-bit systems maths Mathematical functions labels Mar 26, 2024
@oscardssmith
Copy link
Member Author

given that CI is passing, is this good to merge?

@oscardssmith oscardssmith merged commit 13d4f0e into JuliaLang:master Apr 16, 2024
@oscardssmith oscardssmith deleted the os/simplify-int.jl branch April 16, 2024 18:24
@vtjnash
Copy link
Member

vtjnash commented Apr 16, 2024

It used to be there to workaround the absence of compiler-rt that should be provided by us on those systems, as required by LLVM. We haven't started to provide that, as far as I know, but I guess maybe LLVM doesn't require it anymore?

@oscardssmith
Copy link
Member Author

I believe LLVM has started supporting it natively, but I'm not 100% sure.

topolarity added a commit to topolarity/julia that referenced this pull request Aug 5, 2025
…liaLang#53867)"

This reverts commit 13d4f0e.

This should have included tests to make sure that 32-bit systems were
actually working. As it turns out, they are not
(JuliaLang#58911).
topolarity added a commit to topolarity/julia that referenced this pull request Aug 5, 2025
…liaLang#53867)"

This reverts commit 13d4f0e.

It turns out that LLVM still emits libcalls to `__divti3` in some
scenarios (JuliaLang#58911).
topolarity added a commit that referenced this pull request Aug 5, 2025
…3867)" (#59211)

We need to revert this for now. Resolves
#58911

It seems that the back-end LLVM emits this libcall a lot less often than
it used to, but it still happens sometimes and 32-bit Windows has no
implementation of `__divti3`.
topolarity added a commit that referenced this pull request Aug 5, 2025
…3867)" (#59211)

We need to revert this for now. Resolves
#58911

It seems that the back-end LLVM emits this libcall a lot less often than
it used to, but it still happens sometimes and 32-bit Windows has no
implementation of `__divti3`.
KristofferC pushed a commit that referenced this pull request Sep 5, 2025
…3867)" (#59211)

We need to revert this for now. Resolves
#58911

It seems that the back-end LLVM emits this libcall a lot less often than
it used to, but it still happens sometimes and 32-bit Windows has no
implementation of `__divti3`.
KristofferC pushed a commit that referenced this pull request Sep 15, 2025
…3867)" (#59211)

We need to revert this for now. Resolves
#58911

It seems that the back-end LLVM emits this libcall a lot less often than
it used to, but it still happens sometimes and 32-bit Windows has no
implementation of `__divti3`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maths Mathematical functions system:32-bit Affects only 32-bit systems

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants