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

            Bug ID: 80468
           Summary: [7 Regression] ICE on invalid AVX512 code with -m32
           Product: gcc
           Version: 7.0
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-code
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: marxin at gcc dot gnu.org
                CC: jakub at redhat dot com
  Target Milestone: ---
              Host: x86_64-linux-gnu
            Target: x86_64-linux-gnu

Starting from r246965, we ICE on:

$ cat ice.i
void
a ()
{
  __attribute__ ((__vector_size__ (4 * sizeof (unsigned)))) __int128 b;
  0 != b;
}

$ gcc ice.i -m32
ice.i: In function ‘a’:
ice.i:4:61: error: ‘__int128’ is not supported on this target
   __attribute__ ((__vector_size__ (4 * sizeof (unsigned)))) __int128 b;
                                                             ^~~~~~~~
ice.i:5:3: internal compiler error: Segmentation fault
   0 != b;
   ^
0xc0f12f crash_signal
        ../../gcc/toplev.c:337
0xededb1 tree_class_check(tree_node*, tree_code_class, char const*, int, char
const*)
        ../../gcc/tree.h:3193
0xededb1 make_vector_type
        ../../gcc/tree.c:10065
0xedf6ec build_opaque_vector_type(tree_node*, int)
        ../../gcc/tree.c:11034
0x6aa4bf build_binary_op(unsigned int, tree_code, tree_node*, tree_node*, int)
        ../../gcc/c/c-typeck.c:11461
0x6ac7f6 parser_build_binary_op(unsigned int, tree_code, c_expr, c_expr)
        ../../gcc/c/c-typeck.c:3637
0x6c9dca c_parser_binary_expression
        ../../gcc/c/c-parser.c:6830
0x6ca265 c_parser_conditional_expression
        ../../gcc/c/c-parser.c:6470
0x6ca9c0 c_parser_expr_no_commas
        ../../gcc/c/c-parser.c:6387
0x6cac42 c_parser_expression
        ../../gcc/c/c-parser.c:8588
0x6cd4c9 c_parser_expression_conv
        ../../gcc/c/c-parser.c:8621
0x6e0f79 c_parser_statement_after_labels
        ../../gcc/c/c-parser.c:5405
0x6e2d47 c_parser_compound_statement_nostart
        ../../gcc/c/c-parser.c:4919
0x6e349e c_parser_compound_statement
        ../../gcc/c/c-parser.c:4752
0x6de8dc c_parser_declaration_or_fndef
        ../../gcc/c/c-parser.c:2125
0x6e68ab c_parser_external_declaration
        ../../gcc/c/c-parser.c:1469
0x6e7309 c_parser_translation_unit
        ../../gcc/c/c-parser.c:1349
0x6e7309 c_parse_file()
        ../../gcc/c/c-parser.c:18176
0x745b22 c_common_parse_file()
        ../../gcc/c-family/c-opts.c:1107

Reply via email to