From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id A49193858D32; Wed, 19 Oct 2022 03:55:50 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A49193858D32 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1666151750; bh=PX+yEKG8cc7upGSgrsLoa3jVoVlK1y9L+6q0rh1WAG4=; h=From:To:Subject:Date:In-Reply-To:References:From; b=s+zxiJkcMvEMqfilo+E2i57JQ+mP5+9U0Zj7jVL4j18WNZvJj81EBZFu88HvjUR8X RY6AnhdY2lCKwjjZGNXLJd3VxLPb7Mzv3bPrssBf6BEYuvz/gc4nbDMiu2KAaMtlh8 qMPmC19OT4UEJJ8SJlzbSPwR/d+oDo+Xw2on8JGs= From: "crazylht at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/107304] internal compiler error: in convert_move, at expr.cc:220 with -march=tigerlake Date: Wed, 19 Oct 2022 03:55:50 +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.2.0 X-Bugzilla-Keywords: ice-on-valid-code 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: --- 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=3D107304 --- Comment #16 from Hongtao.liu --- (In reply to H.J. Lu from comment #15) > (In reply to Hongtao.liu from comment #14) > > (In reply to H.J. Lu from comment #12) > > > (In reply to Hongyu Wang from comment #10) > > > >=20 > > > > Clang works properly as it overrides -march=3D to any target clones= . I suppose > > > > we can do similar things in ix86_valid_target_attribute_p > > >=20 > > > That will be wrong since target attribute can be used to disable vect= or > > > instructions. > >=20 > > But target_clones can't? > > https://godbolt.org/z/jn6GMrdsb >=20 > arch=3Dnehalem will disable AVX. The question is should command line -mavx -march=3Dnehalem disable avx? I think the currect implementation only set not clear isa bits. 2173#define DEF_PTA(NAME) \ 2174 if (((processor_alias_table[i].flags & PTA_ ## NAME) !=3D 0) \ 2175 && PTA_ ## NAME !=3D PTA_64BIT \ 2176 && (TARGET_64BIT || PTA_ ## NAME !=3D PTA_UINTR) \ 2177 && !TARGET_EXPLICIT_ ## NAME ## _P (opts)) \ 2178 SET_TARGET_ ## NAME (opts); 2179#include "i386-isa.def" 2180#undef DEF_PTA=