From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 44693387547A; Wed, 13 Dec 2023 12:32:51 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 44693387547A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1702470771; bh=b0xCwag2HkEdzXoPDeiMllkX9UgqqsuzMLSwtHYyrak=; h=From:To:Subject:Date:In-Reply-To:References:From; b=xx8o5+Hhao9UNaS3Rayw1t8nP9OpaUCZ5htTpe4UcyhjI151Bt8p38Nog4JOY8/P0 NajV5lKujb76tYfge2LtpkVftGL5EtfCpbOO4sxLYNturDmG/Kz8oxZ2dot8cotKjD denXmboIWMo34BOGBDZWyU3SdgqW4aoB2U2banfQ= From: "rdapp at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/112999] riscv: Infinite loop with mask extraction Date: Wed, 13 Dec 2023 12:32:51 +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: X-Bugzilla-Severity: normal X-Bugzilla-Who: rdapp 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: 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=3D112999 --- Comment #1 from Robin Dapp --- What actually gets in the way of vec_extract here is changing to a "better" vector mode (which is RVVMF4QI here). If we tried to extract from the mask directly everything would work directly. I have a patch locally that does this by refactoring extract_bit_field_1 slightly. Going to post it soon but not sure if people agree with that ide= a.=