https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102372
Bug ID: 102372 Summary: [12 regression] ICE in gfortran.dg/ISO_Fortran_binding_1.f90 after r12-3482 Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: seurer at gcc dot gnu.org Target Milestone: --- g:5f6a6c91d7c592cb49f7c519f289777eac09bb74, r12-3482 This revision causes ICEs on power7 BE. I did not see any failures on power 8 BE nor any power LE machines. make -k check-gcc-fortran RUNTESTFLAGS="dg.exp=gfortran.dg/ISO_Fortran_binding_1.f90" FAIL: gfortran.dg/ISO_Fortran_binding_1.f90 -O3 -fomit-frame-pointer -funroll-loops -fpeel-loops -ftracer -finline-functions (internal compiler error) FAIL: gfortran.dg/ISO_Fortran_binding_1.f90 -O3 -fomit-frame-pointer -funroll-loops -fpeel-loops -ftracer -finline-functions (test for excess errors) FAIL: gfortran.dg/ISO_Fortran_binding_1.f90 -O3 -g (internal compiler error) FAIL: gfortran.dg/ISO_Fortran_binding_1.f90 -O3 -g (test for excess errors) # of expected passes 8 # of unexpected failures 4 # of unresolved testcases 2 spawn -ignore SIGHUP /home/seurer/gcc/git/build/gcc-test/gcc/testsuite/gfortran/../../gfortran -B/home/seurer/gcc/git/build/gcc-test/gcc/testsuite/gfortran/../../ -B/home/seurer/gcc/git/build/gcc-test/powerpc64-unknown-linux-gnu/./libgfortran/ /home/seurer/gcc/git/gcc-test/gcc/testsuite/gfortran.dg/ISO_Fortran_binding_1.f90 -fdiagnostics-plain-output -fdiagnostics-plain-output -O3 -g -pedantic-errors /home/seurer/gcc/git/gcc-test/gcc/testsuite/gfortran.dg/ISO_Fortran_binding_1.c -dumpbase -B/home/seurer/gcc/git/build/gcc-test/powerpc64-unknown-linux-gnu/./libgfortran/.libs -L/home/seurer/gcc/git/build/gcc-test/powerpc64-unknown-linux-gnu/./libgfortran/.libs -L/home/seurer/gcc/git/build/gcc-test/powerpc64-unknown-linux-gnu/./libgfortran/.libs -L/home/seurer/gcc/git/build/gcc-test/powerpc64-unknown-linux-gnu/./libatomic/.libs -B/home/seurer/gcc/git/build/gcc-test/powerpc64-unknown-linux-gnu/./libquadmath/.libs -L/home/seurer/gcc/git/build/gcc-test/powerpc64-unknown-linux-gnu/./libquadmath/.libs -L/home/seurer/gcc/git/build/gcc-test/powerpc64-unknown-linux-gnu/./libquadmath/.libs -lm -o ./ISO_Fortran_binding_1.exe during GIMPLE pass: slp /home/seurer/gcc/git/gcc-test/gcc/testsuite/gfortran.dg/ISO_Fortran_binding_1.f90:6:33: internal compiler error: in rs6000_builtin_vectorization_cost, at config/rs6000/rs6000.c:5215 0x11136277 rs6000_builtin_vectorization_cost /home/seurer/gcc/git/gcc-test/gcc/config/rs6000/rs6000.c:5215 0x10f8f367 builtin_vectorization_cost /home/seurer/gcc/git/gcc-test/gcc/tree-vectorizer.h:1520 0x10f8f367 record_stmt_cost(vec<stmt_info_for_cost, va_heap, vl_ptr>*, int, vect_cost_for_stmt, _stmt_vec_info*, tree_node*, int, vect_cost_model_location) /home/seurer/gcc/git/gcc-test/gcc/tree-vect-stmts.c:109 0x10f8fad7 record_stmt_cost /home/seurer/gcc/git/gcc-test/gcc/tree-vectorizer.h:1913 0x10f8fad7 vect_get_store_cost(vec_info*, _stmt_vec_info*, int, unsigned int*, vec<stmt_info_for_cost, va_heap, vl_ptr>*) /home/seurer/gcc/git/gcc-test/gcc/tree-vect-stmts.c:1049 0x10fb065b vect_model_store_cost /home/seurer/gcc/git/gcc-test/gcc/tree-vect-stmts.c:972 0x10fb065b vectorizable_store /home/seurer/gcc/git/gcc-test/gcc/tree-vect-stmts.c:7421 0x10fba8ef vect_analyze_stmt(vec_info*, _stmt_vec_info*, bool*, _slp_tree*, _slp_instance*, vec<stmt_info_for_cost, va_heap, vl_ptr>*) /home/seurer/gcc/git/gcc-test/gcc/tree-vect-stmts.c:10972 0x11009bab vect_slp_analyze_node_operations_1 /home/seurer/gcc/git/gcc-test/gcc/tree-vect-slp.c:4523 0x11009bab vect_slp_analyze_node_operations /home/seurer/gcc/git/gcc-test/gcc/tree-vect-slp.c:4681 0x1100dc87 vect_slp_analyze_operations(vec_info*) /home/seurer/gcc/git/gcc-test/gcc/tree-vect-slp.c:4920 0x11011153 vect_slp_analyze_bb_1 /home/seurer/gcc/git/gcc-test/gcc/tree-vect-slp.c:5860 0x11011153 vect_slp_region /home/seurer/gcc/git/gcc-test/gcc/tree-vect-slp.c:5907 0x110130d7 vect_slp_bbs /home/seurer/gcc/git/gcc-test/gcc/tree-vect-slp.c:6099 0x11013733 vect_slp_function(function*) /home/seurer/gcc/git/gcc-test/gcc/tree-vect-slp.c:6187 0x1101ee77 execute /home/seurer/gcc/git/gcc-test/gcc/tree-vectorizer.c:1454 Pl commit 5f6a6c91d7c592cb49f7c519f289777eac09bb74 Author: Richard Earnshaw <rearn...@arm.com> Date: Fri Sep 3 17:06:15 2021 +0100 gimple: allow more folding of memcpy [PR102125]