From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 0C1123858D38; Sun, 9 Oct 2022 18:32:15 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0C1123858D38 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1665340335; bh=Nk7HeEKXUr3Nbkk/TlcfIYslPH+IoCnQf2C/IPmmMhE=; h=From:To:Subject:Date:From; b=gZyOiODs/eiuJX8gr7TQPJJr3/2YGsa0a9somNdYLEmKbRzdBd8/GrX8VU+VEcc1h GpomBZSc1eHaxqfuQBiwMoyWqFJB68fGo4BhwYWl2XlaQiLv0cebz8vhwcJPQDRtoI fPBZD2EvsklXbQgLtYNoMLXzl1CA+IXYRPciBbnI= From: "slyfox at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug ipa/107196] New: [13 Regression] llvm-14.0.6 is miscompiles by gcc-13 in -O3: hangs llvm testsuite (inliner seems to break it) Date: Sun, 09 Oct 2022 18:32:14 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: ipa X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: slyfox at gcc dot gnu.org 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 cc 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=3D107196 Bug ID: 107196 Summary: [13 Regression] llvm-14.0.6 is miscompiles by gcc-13 in -O3: hangs llvm testsuite (inliner seems to break it) Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: ipa Assignee: unassigned at gcc dot gnu.org Reporter: slyfox at gcc dot gnu.org CC: marxin at gcc dot gnu.org Target Milestone: --- It's not a self-contained bug and requires full llvm build to trigger it. My apologies. In my defense I have a few small clues to share! The heavyweight reproducer: download llvm, build it with this week's gcc and run one test that hangs. The bug started happening about 2 weeks ago. The reproducer steps: $ export CC=3Dgcc-13 $ export CXX=3Dg++-13 $ wget -c https://github.com/llvm/llvm-project/releases/download/llvmorg-14.0.6/llvm-= project-14.0.6.src.tar.xz $ tar xf llvm-project-14.0.6.src.tar.xz $ mkdir build $ cd build # We will build only 'llc' and run only one minimal haning test. $ cmake ../llvm-project-14.0.6.src/llvm -DCMAKE_BUILD_TYPE=3DRelease -DLLVM_TARGETS_TO_BUILD=3DRISCV -DLLVM_ENABLE_PROJECTS=3D'llvm' $ make -j $(nproc) llc $ cat >bug.ll <* %x, <8 x half>* %y) { ; LMULMAX1-LABEL: ui2fp_v8i64_v8f16: ; LMULMAX1: # %bb.0: %a =3D load <8 x i64>, <8 x i64>* %x %d =3D uitofp <8 x i64> %a to <8 x half> store <8 x half> %d, <8 x half>* %y ret void } EOF $ timeout 10 bin/llc -mtriple=3Driscv32 -target-abi=3Dilp32d -mattr=3D+v,+zfh,+experimental-zvfh,+f,+d -riscv-v-vector-bits-min=3D128 -riscv-v-fixed-length-vector-lmul-max=3D1 -verify-machineinstrs ./bug.ll &&= echo FINISHED || echo TIMED OUT '+experimental-zvfh' is not a recognized feature for this target (ignoring feature) '+experimental-zvfh' is not a recognized feature for this target (ignoring feature) '+experimental-zvfh' is not a recognized feature for this target (ignoring feature) TIMED OUT $ LANG=3DC $CC -v |& unnix Using built-in specs. COLLECT_GCC=3D/<>/gcc-13.0.0/bin/gcc COLLECT_LTO_WRAPPER=3D/<>/gcc-13.0.0/libexec/gcc/x86_64-unknown-linux-= gnu/13.0.0/lto-wrapper Target: x86_64-unknown-linux-gnu Configured with: Thread model: posix Supported LTO compression algorithms: zlib gcc version 13.0.0 20221002 (experimental) (GCC)=