From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id CED1D3857005; Wed, 27 Jul 2022 10:09:52 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CED1D3857005 From: "vries at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug testsuite/29416] [gdb, testsuite/aarch64] FAIL: gdb.ada/literals.exp: print 16#ffffffffffffffff# Date: Wed, 27 Jul 2022 10:09:52 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: testsuite X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: vries at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot 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://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gdb-prs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-prs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Jul 2022 10:09:52 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D29416 --- Comment #1 from Tom de Vries --- With i386, we have: ... (gdb) p int_bits $3 =3D 32 (gdb) p long_bits $4 =3D 32 (gdb) p long_long_bits $5 =3D 64 ... so in processInt we hit the fits-in-unsigned-long-long case where we use as type long long, so we have: ... /* Note: Interprets ULLONG_MAX as -1. */=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 yylval.typed_val.type =3D type_long_long (par_state);=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 ... With aarch64, we have: ... (gdb) p int_bits $1 =3D 32 (gdb) p long_bits $2 =3D 64 (gdb) p long_long_bits $3 =3D 64 ... so in processInt we hit the fits-in-unsigned-long case and we use type unsi= gned long: ... yylval.typed_val.type=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20 =3D builtin_type (par_state->gdbarch ())->builtin_unsigned_long;=20= =20=20=20=20=20=20=20=20 ... This explains the difference between the two results. --=20 You are receiving this mail because: You are on the CC list for the bug.=