From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id F3DD23858C54; Fri, 15 Sep 2023 20:26:51 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org F3DD23858C54 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1694809612; bh=/lveHWlHLZo+eqCgE/31W7iPQQRJvFyqQmAGnvDAldA=; h=From:To:Subject:Date:From; b=dYLx9ZaM3Os1akn7uj9yT2VKJMDHa7gkO2Y2mjuiBVUXVAzAnXYmK9NoYUBfOXBBu u5SmLu16htrGm0ZzWMNnk8dq5mmX59FeQL4nNKu30X27NnyGwz0RTVc6vShYXDGGH6 X1VMLnRkrAS6cnaLcM1u6EQ4i/bYcalo3ozJoxLA= From: "patrick at rivosinc dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/111428] New: RISC-V vector: Flaky segfault in {min|max}val_char_{1|2}.f90 Date: Fri, 15 Sep 2023 20:26:51 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: patrick at rivosinc 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 attachments.created 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=3D111428 Bug ID: 111428 Summary: RISC-V vector: Flaky segfault in {min|max}val_char_{1|2}.f90 Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: patrick at rivosinc dot com Target Milestone: --- Created attachment 55906 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D55906&action=3Dedit Excerpt from the debug log Failures: FAIL: gfortran.dg/minval_char_1.f90 -O3 -g execution test FAIL: gfortran.dg/minval_char_1.f90 -O3 -fomit-frame-pointer -funroll-loo= ps -fpeel-loops -ftracer -finline-functions execution test FAIL: gfortran.dg/minval_char_2.f90 -O3 -g execution test FAIL: gfortran.dg/minval_char_2.f90 -O3 -fomit-frame-pointer -funroll-loo= ps -fpeel-loops -ftracer -finline-functions execution test FAIL: gfortran.dg/maxval_char_1.f90 -O3 -g execution test FAIL: gfortran.dg/maxval_char_1.f90 -O3 -fomit-frame-pointer -funroll-loo= ps -fpeel-loops -ftracer -finline-functions execution test FAIL: gfortran.dg/maxval_char_2.f90 -O3 -g execution test FAIL: gfortran.dg/maxval_char_2.f90 -O3 -fomit-frame-pointer -funroll-loo= ps -fpeel-loops -ftracer -finline-functions execution test Observed on: rv64gcv_zvbb_zvbc_zvkg_zvkn_zvknc_zvkned_zvkng_zvknha_zvknhb_zvks_zvksc_zvk= sed_zvksg_zvksh_zvkt-lp64d rv64gcv-lp64d rv64imafdcv_zicond_zawrs_zbc_zvkng_zvksg_zvbb_zvbc_zicsr_zba_zbb_zbs_zicbom= _zicbop_zicboz_zfhmin_zkt-lp64d Seems to only occur on rv64 glibc targets with the v extension enabled. Known to pass: r14-3834-gd05aac047e0 Known to fail: r14-3840-g88a0a883960 Replicated locally using https://github.com/patrick-rivos/riscv-gnu-toolchain/tree/29d071a8eec4603ff= 5fe4fe21d7e4ffa24f705f0 git submodule update --init gcc cd gcc && git checkout 316d57da5bb9205b946afc56d78582fee874e4b5 cd .. && mkdir build && cd build ../configure --prefix=3D$(pwd) --with-arch=3Drv64gcv --with-abi=3Dlp64 make report-linux -j32 There was previously flaky behavior with these testcases, but it's been resolved for other targets: https://gcc.gnu.org/legacy-ml/gcc-patches/2017-12/msg00807.html https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D83379=