[Issue 16098] New: align(32) not respected for stack variables

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Mon May 30 07:22:17 PDT 2016


          Issue ID: 16098
           Summary: align(32) not respected for stack variables
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Keywords: C++, SIMD
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: Marco.Leise at gmx.de

This is especially true for float8 (AVX, 32-byte alignment) in 64-bit compiles
where the stack is aligned to 16-bytes. Note that AVX is theoretically
available in 32-bit, too, but currently dmd does neither expose intrinsics nor
YMM0-YMM7 in inline asm, so we can't bump into this issue there yet.

>From what I've heard the major compilers gcc, icc, llvm support correct stack
alignment of anything with an alignment >= 16. So this should also be
investigated in the light of C interop.


More information about the Digitalmars-d-bugs mailing list