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

            Bug ID: 110461
           Summary: [14 regression] ICE when building openh264 with new
                    vector_type checking
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: sjames at gcc dot gnu.org
  Target Milestone: ---

Created attachment 55414
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55414&action=edit
encode_mb_aux.ii

g++ -c encode_mb_aux.ii -O2 is enough to repro.

```
aarch64-unknown-linux-gnu-g++ -O3 -pipe -mcpu=native -fdiagnostics-color=always
 -DNDEBUG -DHAVE_NEON_AARCH64 -Wall -fno-strict-aliasing -fPIC -MMD -MP
-fstack-protector-all -march=armv8-a -DGENERATED_VERSION_HEADER -O3 -pipe
-mcpu=native -fdiagnostics-color=always -Wno-class-memaccess -I./codec/api/wels
-I./codec/common/inc -Icodec/common/inc  -I./codec/encoder/core/inc
-I./codec/encoder/plus/inc -I./codec/processing/interface -c -o
codec/encoder/core/src/encode_mb_aux.o codec/encoder/core/src/encode_mb_aux.cpp
during GIMPLE pass: vect
codec/encoder/core/src/encode_mb_aux.cpp: In function ‘void
WelsEnc::WelsQuantFour4x4Max_c(int16_t*, const int16_t*, const int16_t*,
int16_t*)’:
codec/encoder/core/src/encode_mb_aux.cpp:209:6: internal compiler error: tree
check: expected none of vector_type, have vector_type in gimple_simplify_144,
at gimple-match-3.cc:1027
  209 | void WelsQuantFour4x4Max_c (int16_t* pDct, const int16_t* pFF, const
int16_t* pMF, int16_t* pMax) {
      |      ^~~~~~~~~~~~~~~~~~~~~
0xaaaac959b02b tree_not_check_failed(tree_node const*, char const*, int, char
const*, ...)
       
/usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/tree.cc:8936
0xaaaacb1c6c53 tree_not_check(tree_node*, char const*, int, char const*,
tree_code)
       
/usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/tree.h:3581
0xaaaacb1c6c53 gimple_simplify_144(gimple_match_op*, gimple**, tree_node*
(*)(tree_node*), tree_node*, tree_node**, tree_code)
       
/usr/src/debug/sys-devel/gcc-14.0.0.9999/build/gcc/gimple-match-3.cc:1027
0xaaaacb1a21bb gimple_simplify_BIT_XOR_EXPR(gimple_match_op*, gimple**,
tree_node* (*)(tree_node*), code_helper, tree_node*, tree_node*, tree_node*)
       
/usr/src/debug/sys-devel/gcc-14.0.0.9999/build/gcc/gimple-match-2.cc:9569
0xaaaaca74debf gimple_resimplify2
       
/usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/gimple-match-exports.cc:967
0xaaaaca74e687 gimple_simplify(gimple*, gimple_match_op*, gimple**, tree_node*
(*)(tree_node*), tree_node* (*)(tree_node*))
       
/usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/gimple-match-exports.cc:834
0xaaaac9c8e5b7 gimple_fold_stmt_to_constant_1(gimple*, tree_node*
(*)(tree_node*), tree_node* (*)(tree_node*))
       
/usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/gimple-fold.cc:7472
0xaaaaca2cfe97 try_to_simplify
       
/usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/tree-ssa-sccvn.cc:6096
0xaaaaca2cfe97 visit_stmt
       
/usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/tree-ssa-sccvn.cc:6139
0xaaaaca2d0e6f process_bb
       
/usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/tree-ssa-sccvn.cc:7945
0xaaaaca2d2823 do_rpo_vn_1
       
/usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/tree-ssa-sccvn.cc:8544
0xaaaaca2d448f do_rpo_vn(function*, edge_def*, bitmap_head*, bool, bool,
vn_lookup_kind)
       
/usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/tree-ssa-sccvn.cc:8646
0xaaaaca3ba1f3 execute
       
/usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/tree-vectorizer.cc:1385
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
See <https://bugs.gentoo.org/> for instructions.
```

```
gcc (Gentoo 14.0.0 p, commit 6cb33e2f39e289ec4f25f845d8153053147c5c49) 14.0.0
20230628 (experimental) c7e87e82435b918084f305386b12b8fbcdcf3307
Copyright (C) 2023 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
```

Reply via email to