From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E78983858C52; Tue, 13 Jun 2023 03:06:59 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E78983858C52 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1686625619; bh=ACchYKa4Bvl/vRCRcy7SgWSVgPcU1N6J45f6B2ahRUE=; h=From:To:Subject:Date:In-Reply-To:References:From; b=LIXNCCFpMSth1fRpxoSbV0OCEethN8a6/wUvRcp9fwspqJYCdnru8NALMozP9jemA MKH/1VKz04chNDi4VarsOs22xDPfNS+NzMhVpeICRnkZrm5b14GrpSzYAXNXwHlzgD zTGbz8IJbLgdiiNrQR3tMjdNt0EV9qHjglIoyrdk= From: "crazylht at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/110227] [13/14 Regression] gcc generates invalid AVX-512 code Date: Tue, 13 Jun 2023 03:06:59 +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: 13.1.0 X-Bugzilla-Keywords: assemble-failure X-Bugzilla-Severity: normal X-Bugzilla-Who: crazylht at gmail dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 13.2 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=3D110227 --- Comment #3 from Hongtao.liu --- (In reply to Andrew Pinski from comment #2) > Semi-Reduced testcase: > ``` > #include >=20 > void f() > { > __m256i mask =3D _mm256_set_epi32(0, 0, 0, 0, -1, -1, -1, -1); > register __m256i reg asm("xmm16") =3D mask; > asm(""::"v"(reg)); > } > ``` >=20 > Most likely introduced by r13-2804-ga282f086ef26d9 . (define_insn "mov_internal" [(set (match_operand:VMOVE 0 "nonimmediate_operand" - "=3Dv,v ,v ,m") + "=3Dv,v ,v,v ,m") (match_operand:VMOVE 1 "nonimmediate_or_sse_const_operand" - " C,,vm,v"))] + " C,,BH,vm,v"))] We need to use "x" instead of "v".=