From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id D5544385829D; Wed, 12 Oct 2022 23:21:06 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D5544385829D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1665616866; bh=71AKBNywfxfw0+d40BlENJicrN23ZiKufoCXEAPHlfQ=; h=From:To:Subject:Date:In-Reply-To:References:From; b=RXAR3paE+9nsJ7fcwQg6pX9iJJfHguIiTP6H3TsXBR+WQCUqpYgpGWS7ThAXHlIOR rT7nGaEG//uMRX3OtUDBFB6K8ij79ylCli92KRi6TSkHrq59SYj9XgJFJ03bdSMfmp 1Rm682cGXbqJ8gY+1lbS5uwdV5A75WCy89dNt0lA= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/107238] aarch64: Wrong code converting pointer to __int128 Date: Wed, 12 Oct 2022 23:21:06 +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: ABI, wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: INVALID 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: resolution bug_status 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=3D107238 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |INVALID Status|UNCONFIRMED |RESOLVED --- Comment #1 from Andrew Pinski --- https://gcc.gnu.org/onlinedocs/gcc-12.2.0/gcc/Arrays-and-pointers-implement= ation.html#Arrays-and-pointers-implementation > A cast from integer to pointer discards most-significant bits if the poin= ter representation is smaller than the integer type, extends according to t= he signedness of the integer type if the pointer representation is larger t= han the integer type, otherwise the bits are unchanged.=