From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id C35323858D33; Mon, 29 Apr 2024 06:43:19 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C35323858D33 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1714372999; bh=m1l7OeoRFzkceqDnuZWEHvMT40txG4acLvu4NzdNtqM=; h=From:To:Subject:Date:From; b=mcxoD9qz93a6u3CUtlLrya6qLMmSmnujyGqb35PmnnJSy8gnlulOgwNUsjUOgvOQl IXIs+39APoPXACGsEeCpfaFRAs9TZ1i+HVRKktPuNeRf+OnALSs1XPzMDy5jiFmcMF Sca0HdtOgUZcR0cofZanWME7e3rXFf8wiFekDIgc= From: "pan2.li at intel dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/114885] New: RISC-V: ICE of unrecog insn when graphite for both the c/c++ and fortran Date: Mon, 29 Apr 2024 06:43:19 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: pan2.li at intel dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D114885 Bug ID: 114885 Summary: RISC-V: ICE of unrecog insn when graphite for both the c/c++ and fortran Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: pan2.li at intel dot com Target Milestone: --- When some graphite (require the isl build for gcc) tests, there are sorts of ICE that cannot recog the insn. FAIL: gcc.dg/graphite/pr111878.c (internal compiler error: in=20 extract_insn, at recog.cc:2812) FAIL: gfortran.dg/graphite/id-27.f90 -O (internal compiler error: in=20 extract_insn, at recog.cc:2812) FAIL: gfortran.dg/graphite/id-27.f90 -O (test for excess errors) FAIL: gfortran.dg/graphite/pr14741.f90 -O (internal compiler error:=20 in extract_insn, at recog.cc:2812) FAIL: gfortran.dg/graphite/pr14741.f90 -O (test for excess errors) FAIL: gfortran.dg/graphite/pr29581.f90 -O3 -fomit-frame-pointer=20 -funroll-loops -fpeel-loops -ftracer -finline-functions (internal=20 compiler error: in extract_insn, at recog.cc:2812) FAIL: gfortran.dg/graphite/pr29581.f90 -O3 -fomit-frame-pointer=20 -funroll-loops -fpeel-loops -ftracer -finline-functions (test for=20 excess errors) FAIL: gfortran.dg/graphite/pr29581.f90 -O3 -g (internal compiler=20 error: in extract_insn, at recog.cc:2812) FAIL: gfortran.dg/graphite/pr29581.f90 -O3 -g (test for excess errors) FAIL: gfortran.dg/graphite/pr29832.f90 -O3 -fomit-frame-pointer=20 -funroll-loops -fpeel-loops -ftracer -finline-functions (internal=20 compiler error: in extract_insn, at recog.cc:2812) FAIL: gfortran.dg/graphite/pr29832.f90 -O3 -fomit-frame-pointer=20 -funroll-loops -fpeel-loops -ftracer -finline-functions (test for=20 excess errors) FAIL: gfortran.dg/graphite/pr29832.f90 -O3 -g (internal compiler=20 error: in extract_insn, at recog.cc:2812) FAIL: gfortran.dg/graphite/pr29832.f90 -O3 -g (test for excess errors) FAIL: gfortran.dg/graphite/vect-pr40979.f90 -O (internal compiler=20 error: in extract_insn, at recog.cc:2812) FAIL: gfortran.dg/graphite/vect-pr40979.f90 -O (test for excess errors) Reproduce step(s): 1. download isl-0.24, let isl -> /some-where/riscv-gnu-toolchain/gcc/isl-0.= 24 2. mkdir __BUILD__ && cd __BUILD__ && ../configure \ --target=3Driscv64-unknown-elf \ --prefix=3D${INSTALL_DIR} \ --disable-shared \ --enable-threads \ --enable-tls \ --enable-languages=3Dc,c++,fortran \ --with-system-zlib \ --with-newlib \ --disable-libmudflap \ --disable-libssp \ --disable-libquadmath \ --disable-libgomp \ --enable-nls \ --disable-tm-clone-registry \ --src=3D`pwd`/../ \ --with-abi=3Dlp64d \ --with-arch=3Drv64gcv \ --with-tune=3Drocket \ --with-isa-spec=3D20191213 \ CFLAGS_FOR_BUILD=3D"-O0 -g" \ CXXFLAGS_FOR_BUILD=3D"-O0 -g" \ CFLAGS_FOR_TARGET=3D"-O0 -g" \ CXXFLAGS_FOR_TARGET=3D"-O0 -g" \ BOOT_CFLAGS=3D"-O0 -g" \ CFLAGS=3D"-O0 -g" \ CXXFLAGS=3D"-O0 -g" \ GM2FLAGS_FOR_TARGET=3D"-O0 -g" \ GOCFLAGS_FOR_TARGET=3D"-O0 -g" \ GDCFLAGS_FOR_TARGET=3D"-O0 -g" make -j $(nproc) all-gcc && make install-gcc 3. ../__RISC-V_INSTALL___RV64/bin/riscv64-unknown-elf-gcc gcc/testsuite/gcc.dg/graphite/pr111878.c -O3 -fgraphite-identity -fsave-optimization-record -march=3Drv64gcv -mabi=3Dlp64d -c -S -o -=