From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 50A503858C62; Fri, 2 Jun 2023 21:23:09 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 50A503858C62 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1685740989; bh=mKyhINHwr1ozvfv/h+F0tkg8rpsDhOkmIgIPtpcbiIs=; h=From:To:Subject:Date:In-Reply-To:References:From; b=x9CfvZ0nGo3ZSpz07GfWHkGI9kbje7fa0/sJAGLIcohFJ/cMo5M32GAe3qBN4A0bE FSHVis1npRdaBaKM0EihCgBolwCu0MP7Og/VYBFBaQjaNZ2gIXZbuqujQUXBxJgLOO Ou6fN8wtQfD8CYtSgQxY1C4gOs+WG+bGQyDuHMcc= From: "wilco at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/110061] libatomic: 128-bit atomics should be lock-free on AArch64 Date: Fri, 02 Jun 2023 21:23:09 +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: 13.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: wilco at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: wilco 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=3D110061 --- Comment #14 from Wilco --- (In reply to Wilco from comment #13) > (In reply to Xi Ruoyao from comment #12) > > (In reply to Wilco from comment #11) > >=20 > > > > Then the compiler (and the standard) is not what they consider. Su= ch > > > > misunderstandings are everywhere and this has no difference. > > >=20 > > > Where is int128 in "the standard"? > >=20 > > Consider this: > >=20 > > const _Atomic long double x =3D 0.1; > >=20 > > int main() > > { > > double y =3D x; > > return y !=3D 0.1; > > } > >=20 > > If CAS is used here, the program will just segfault. Does the standard= say > > this is ill-formed or not? >=20 > I'd say this is ill formed yes. And it will crash on Atom laptops. Correction - it crashes on all AMD cpus too. Are you going to file bugrepor= ts for this?=