Skip to content

Conversation

giordano
Copy link
Member

The issue reported in #42326 (inconsistent sizes for structs involving primitive types with non-power-of-two sizes) is already fixed since upgrading to LLVM 18, this PR adds regressions tests. I verified they already pass on x86_64, i686 and aarch64.

Close #42326.

@giordano giordano added test This change adds or pertains to unit tests compiler:codegen Generation of LLVM IR and native code labels May 16, 2025
@gbaraldi
Copy link
Member

This may break if and when C decides what BitInt is supposed to do alignment wise, but LGTM

@giordano
Copy link
Member Author

Sure, tests can always be consciously changed if necessary, the problem is when something breaks unnoticed.

@giordano giordano merged commit de090a9 into JuliaLang:master May 17, 2025
9 checks passed
@giordano giordano deleted the mg/test-primitive-type branch May 17, 2025 06:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler:codegen Generation of LLVM IR and native code test This change adds or pertains to unit tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Apple M1 shows inconsistent field offset after a primitive type
2 participants