From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 589153858D1E; Sat, 4 Mar 2023 10:36:28 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 589153858D1E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1677926188; bh=HOcsmWcx6d4lcQaoRIiNig5dFTq5h8PsySvJi4Ra/Ds=; h=From:To:Subject:Date:In-Reply-To:References:From; b=pSKAL5skBF2cTK9rnjf+DG7l44CNLM+l/XjrgTdykUXkovRvSpven/CrvoVCL5EHz pa5xBygavry+2Ehl9rLtu/ajlnoImOyeGL1KR5zW6OwVNQfOJKmJFoidTCXdY8+qKX KrFViUr2MWwPujo4/TfYRSJqM6kgYGw42sfG6G5Y= From: "bugreporter66 at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/109007] building for POWER8 leaks into POWER9 ISA with g++ 11.3 (cross-compiler on x86_64 host) Date: Sat, 04 Mar 2023 10:36:27 +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: 11.3.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: bugreporter66 at gmail dot com X-Bugzilla-Status: WAITING 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=3D109007 --- Comment #7 from bugreporter66 at gmail dot com --- After disassembling the instruction in question is stxv at 100034b0: 0000000010003470 <_GLOBAL__sub_I_eh_alloc.cc>: 10003470: 15 10 40 3c lis r2,4117 10003474: 00 7c 42 38 addi r2,r2,31744 10003478: a6 02 08 7c mflr r0 1000347c: f0 ff c1 fb std r30,-16(r1) 10003480: f8 ff e1 fb std r31,-8(r1) 10003484: 10 00 01 f8 std r0,16(r1) 10003488: d1 ff 21 f8 stdu r1,-48(r1) 1000348c: 01 00 e0 3f lis r31,1 10003490: d0 02 00 f0 xxspltib vs0,0 10003494: 00 00 c0 3b li r30,0 10003498: 00 00 00 60 nop 1000349c: 00 1c ff 63 ori r31,r31,7168 100034a0: 00 00 00 60 nop 100034a4: f0 c7 22 39 addi r9,r2,-14352 100034a8: 78 fb e3 7f mr r3,r31 100034ac: 28 c8 e2 fb std r31,-14296(r2) 100034b0: 05 00 09 f4 stxv vs0,0(r9) 100034b4: 15 00 09 f4 stxv vs0,16(r9) 100034b8: 00 00 00 60 nop 100034bc: 10 c8 c2 fb std r30,-14320(r2) 100034c0: 29 6a 07 48 bl 10079ee8 <__libc_malloc+0x8>=