From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id C7678385771C; Thu, 25 May 2023 08:51:03 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C7678385771C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1685004663; bh=UYEoxx0iUx4IQVsRzRL/+42+7L1suSYipADaPCV7uTQ=; h=From:To:Subject:Date:In-Reply-To:References:From; b=vXC1KzsYKuBEWu6DRXpqvGxTjq5jOQwKCjVwNTJZEuAy+xSx/y70tDo/9vqOMJh1P E4pHplzkXTy+E91dwwEhlt/o1q8ha822RbNDpP5KnvWPdbRKYgBD4iJQL2rge8sy/B yRJnJc9g8CaA2JKs7lFHhKN9e1TtJ+KeM8wCkMBo= From: "crazylht at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/100711] Miss optimization for pandn Date: Thu, 25 May 2023 08:50:56 +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: 12.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: crazylht at gmail dot com X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED 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=3D100711 --- Comment #11 from Hongtao.liu --- (In reply to jbeulich from comment #10) > (In reply to Hongtao.liu from comment #9) > > We don't have single instruction for V8HI/V16QImode broadcast without A= VX2, > > that's why the first splitter only have VI48_128. >=20 > Does this matter? The splitters are about subsuming the "not". How the > "vec_duplicate" is carried out isn't really relevant here, is it? It's splitted to 2 patterns, but there's no V8HI/V16QImode define_insn for = the first pattern w/o AVX2, there will be ICE of unrecognisable insn. 17110 [(set (match_dup 3) 17111 (vec_duplicate:VI48_128 (match_dup 1))) 17112 (set (match_dup 0) 17113 (and:VI48_128 (not:VI48_128 (match_dup 3)) 17114 (match_dup 2)))]=