-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Open
Labels
arch-arm32-bit ARM32-bit ARMbugObserved behavior contradicts documented or intended behaviorObserved behavior contradicts documented or intended behaviorfrontendTokenization, parsing, AstGen, Sema, and Liveness.Tokenization, parsing, AstGen, Sema, and Liveness.miscompilationThe compiler reports success but produces semantically incorrect code.The compiler reports success but produces semantically incorrect code.
Milestone
Description
Zig Version
0.10.0-dev.3008
Steps to Reproduce
There seem to be a special case in the ABI for arm (and armeb, thumb, thumbeb) with a reduced alignment for 16-bytes vectors.
empirically:
https://godbolt.org/z/ca6G58G19
but I don't know the exact rules.
Expected Behavior
@alignOf(@Vector(4, f32))==8
@alignOf(@Vector(16, i8))==8
Actual Behavior
@alignOf(@Vector(4, f32))==16
@alignOf(@Vector(16, i8))==16
Metadata
Metadata
Assignees
Labels
arch-arm32-bit ARM32-bit ARMbugObserved behavior contradicts documented or intended behaviorObserved behavior contradicts documented or intended behaviorfrontendTokenization, parsing, AstGen, Sema, and Liveness.Tokenization, parsing, AstGen, Sema, and Liveness.miscompilationThe compiler reports success but produces semantically incorrect code.The compiler reports success but produces semantically incorrect code.