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

            Bug ID: 70510
           Summary: ICE: output_operand: invalid %-code with -mavx512bw
                    -masm=intel when emitting vpbroatcast
           Product: gcc
           Version: 6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: zsojka at seznam dot cz
  Target Milestone: ---
            Target: x86_64-pc-linux-gnu

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

Compiler output:
$ gcc -Og -mavx512bw -masm=intel testcase.c
testcase.c: In function 'foo':
testcase.c:9:1: internal compiler error: output_operand: invalid %-code
 }
 ^
0x859d53 output_operand_lossage(char const*, ...)
        /repo/gcc-trunk/gcc/final.c:3409
0x85b0bb output_asm_insn(char const*, rtx_def**)
        /repo/gcc-trunk/gcc/final.c:3774
0x85c801 final_scan_insn(rtx_insn*, _IO_FILE*, int, int, int*)
        /repo/gcc-trunk/gcc/final.c:3015
0x85e4ed final(rtx_insn*, _IO_FILE*, int)
        /repo/gcc-trunk/gcc/final.c:2045
0x85ec6b rest_of_handle_final
        /repo/gcc-trunk/gcc/final.c:4441
0x85ec6b execute
        /repo/gcc-trunk/gcc/final.c:4516
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.

bt shows:
#2  0x000000000085b0bc in output_asm_insn (templ=templ@entry=0x1b38db8
"vpbroadcastd\t{%x1, %0|%0, %<iptr>1}", operands=0x2170140 <recog_data>)
    at /repo/gcc-trunk/gcc/final.c:3774

Reply via email to