From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 72054389202E; Wed, 21 Apr 2021 12:19:33 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 72054389202E From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/100181] New: hot-cold partitioned code doesn't assemble Date: Wed, 21 Apr 2021 12:19:33 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 11.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Apr 2021 12:19:33 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D100181 Bug ID: 100181 Summary: hot-cold partitioned code doesn't assemble Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: rguenth at gcc dot gnu.org Target Milestone: --- I see lots of libgomp fails with offloading for amdgcn like ./pr93515.xamdgcn-amdhsa.mkoffload.2.s:634:2: error: undefined label '.L33' s_branch .L33 ^ mkoffload: fatal error: /usr/bin//x86_64-suse-linux-accel-amdgcn-amdhsa-gcc= -11 returned 1 exit status which is because we compile to s_branch .L33 .section .text.unlikely .type main._omp_fn.4.cold, @function main._omp_fn.4.cold: .L33: s_getpc_b64 s[2:3] s_add_u32 s2, s2, abort@rel32@lo+4 s_addc_u32 s3, s3, abort@rel32@hi+4 s_swappc_b64 s[18:19], s[2:3] .text and thus have a section crossing jump using a local label. The amdgcn assembler I'm using doesn't like this, it is > amdgcn-amdhsa-as --version LLVM (http://llvm.org/): LLVM version 11.0.1 Optimized build. Default target: x86_64-unknown-linux-gnu Host CPU: znver2=