From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E10113858402; Mon, 29 Jan 2024 03:27:12 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E10113858402 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1706498832; bh=+Q2cLpYS6/lVhxRK0p0K66RWTG7qpil7bkf2k8r2JbI=; h=From:To:Subject:Date:In-Reply-To:References:From; b=QCD14AEatLZTnFOnvH9ylFJFfUzpgiShU1odMlGL0YG/6vXhA3AUj/aVUGwsMFACL RZqnuJtYhOWtNeyFWo0Ps859x1invP+vVvzdbNLkShK4kI2ZLe2u5s4dtRwUCo04Ma nNpuD86z1PRzxo0NGvUp/vo6sIpO8abiaqa5g9AQ= From: "juzhe.zhong at rivai dot ai" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/113607] [14] RISC-V rv64gcv vector: Runtime mismatch at -O3 Date: Mon, 29 Jan 2024 03:27:10 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: juzhe.zhong at rivai dot ai 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: Message-ID: In-Reply-To: References: 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=3D113607 --- Comment #15 from JuzheZhong --- Hi, Robin. I tried to disable vec_extract, then the case passed. diff --git a/gcc/config/riscv/autovec.md b/gcc/config/riscv/autovec.md index 3b32369f68c..b61b886ef3d 100644 --- a/gcc/config/riscv/autovec.md +++ b/gcc/config/riscv/autovec.md @@ -1386,7 +1386,7 @@ (match_operand:V_VLS 1 "register_operand") (parallel [(match_operand 2 "nonmemory_operand")])))] - "TARGET_VECTOR" + "0" { /* Element extraction can be done by sliding down the requested element to index 0 and then v(f)mv.[xf].s it to a scalar register. */ I am not so familiar with it (vec extract stuff), could you take a look at = it ?=