https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85525

            Bug ID: 85525
           Summary: Alignment Issue in AVX compiler intrinsics
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: tom at ritter dot vg
                CC: jacek at codeweavers dot com
  Target Milestone: ---

I am using gcc 6.4.0 and MinGW to compile some code that uses AVX intrinsics
for Windows.  Specifically, this code:
https://searchfox.org/mozilla-central/rev/36dec78aecc40539ecc8d78e91612e38810f963c/gfx/skia/skia/src/opts/SkOpts_hsw.cpp

The crashing instruction is:

vmovdqa ymmword ptr [rbp-10h],ymm0 

However at this location, rbp is 0 % 0x20 and vmovdqa expects 0x20 alignment
(and in the assembly offset by 0x10).

We think there is a missing alignment sequence at the beginning the function
(there is one for rbx, but not rbp).

The full disassembly and details are at https://pastebin.mozilla.org/9083932

Reply via email to