www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 16098] New: align(32) not respected for stack variables


          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 puremagic.com
          Reporter: Marco.Leise 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. --
May 30 2016