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

            Bug ID: 70049
           Summary: [6 Regression] Error: operand size mismatch for
                    `vpextrw' (wrong assembly generated) with -masm=intel
           Product: gcc
           Version: 6.0
            Status: UNCONFIRMED
          Keywords: assemble-failure
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: zsojka at seznam dot cz
  Target Milestone: ---
            Target: i686-pc-linux-gnu

Created attachment 37844
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37844&action=edit
reduced testcase

Output:
$ i686-pc-linux-gnu-gcc -Og -march=ivybridge -masm=intel testcase.c
/tmp/ccVYtsb4.s: Assembler messages:
/tmp/ccVYtsb4.s:29: Error: operand size mismatch for `vpextrw'

@@ -26,7 +26,7 @@
        vmovdqa ymm4, ymm0
        mov     ebp, DWORD PTR [esp+164]
        sal     ebp, 28
-       vpextrw DWORD PTR [esp+118], xmm1, 1
+       vpextrw WORD PTR [esp+118], xmm1, 1
        vextractf128    xmm2, ymm2, 0x1
        vmovd   DWORD PTR [esp], xmm2
        mov     DWORD PTR [esp+4], 0

fixes the assembly.
This particular testcase fails only in trunk, but other branches might be
affected as well.

Reply via email to