From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 79095384AB53; Mon, 13 May 2024 06:09:45 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 79095384AB53 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1715580585; bh=zBs6D3rbDIO3ZGqxykW3zFjAgqNpuVf3ekAuoUuGEdQ=; h=From:To:Subject:Date:In-Reply-To:References:From; b=hLkCVXZxunAlcdKYDFl4iAwYpCvDqWdfTyxJOuq+XOwV+0jbb5u6Wh5iLnm4HcXqK gwBFNOxjg640CvLjLqHdYOg6CbPDxoiY9OdeEeKoBnOQ67qm1vim2DKWzAR31pa+AI P336255SPkY/arOtSi9mJcwJS5E6qEwsalthHjqU= From: "liuhongt at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/101017] ICE: Segmentation fault, convert_memory_address_addr_space_1 with vector_size(32) and target_clone arch=core-avx2/default Date: Mon, 13 May 2024 06:09:44 +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: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: liuhongt at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED 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: cc 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=3D101017 Hongtao Liu changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |haochen.jiang at intel dot= com --- Comment #7 from Hongtao Liu --- > For arch=3Dcore-avx2, function returns in reg(cfun->returns_struct), but = for > "default" and resolver function, it returns in memory(cfun->returns_struct > =3D=3D 1) >=20 > The mismatch between resolver and dispatched function caused the ICE. similar issue for #include __attribute__((target_clones ("avx512f", "default"))) __m512d foo(__m512d a, __m512d b) { c =3D a + b; } with -O2, under avx512f, it returns in reg, by default it returns in memory= .=