From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id C97B3385842F; Fri, 2 Feb 2024 20:03:20 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C97B3385842F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1706904200; bh=l+cmW3FIHJSAXBFlMSIGGQM1GyjHl7MBU8EAzHN3aj8=; h=From:To:Subject:Date:In-Reply-To:References:From; b=xwzlxplZO3usIEIBC7XfeOpuNlAvIJyhea9ldWHFdR5xuiDGHnwK7RJZRJJZEVvKq cI58G6ziTH3l6uGg/jn58x4oEOjx3nSpNegsKkEKcvXDLOsjWvcRRuNa5Po6sS84Z9 qV5ixvxjf5LhIrBYGbKBMFeiIFEB8VzlInfuyyl4= From: "hongyuw at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/113711] APX instruction set and instructions longer than 15 bytes (assembly warning) Date: Fri, 02 Feb 2024 20:03:20 +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: 14.0 X-Bugzilla-Keywords: assemble-failure X-Bugzilla-Severity: normal X-Bugzilla-Who: hongyuw at gcc dot gnu.org 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=3D113711 --- Comment #6 from Hongyu Wang --- (In reply to H.J. Lu from comment #5) > (In reply to Hongyu Wang from comment #4) > > Previously I added=20 > > https://gcc.gnu.org/git/?p=3Dgcc.git;a=3Dcommit; > > h=3Dd564198f960a2f5994dde3f6b83d7a62021e49c3 > >=20 > > to prohibit several *POFF constant usage in NDD add alternative. If che= cking > > ADDR_SPACE_GENERIC can avoid the seg prefix usage, we can drop that cha= nge? >=20 > Are there are any testcases for this change? >=20 Cut and edit from gcc.dg\torture\tls\tls-test.c #include __thread int a =3D 255;=20 __thread int *b; int *volatile a_in_other_thread =3D (int *) 12345; void * thread_func (void *arg) { a_in_other_thread =3D &a; //Previously it will try to generate addq $a@tp= off, %fs:0, %rax=20 a+=3D11144; //this was not fixed on trunk as UNSPEC_TPOFF is in mem opera= nd *((int *) arg) =3D a; return (void *)0; }=