public inbox for gdb-prs@sourceware.org help / color / mirror / Atom feed
From: "olivier.gay at a3 dot epfl.ch" <sourceware-bugzilla@sourceware.org> To: gdb-prs@sourceware.org Subject: [Bug gdb/18318] New: Printing an hexadecimal floating constant with negative exponent gives wrong result Date: Fri, 24 Apr 2015 13:38:00 -0000 [thread overview] Message-ID: <bug-18318-4717@http.sourceware.org/bugzilla/> (raw) https://sourceware.org/bugzilla/show_bug.cgi?id=18318 Bug ID: 18318 Summary: Printing an hexadecimal floating constant with negative exponent gives wrong result Product: gdb Version: 7.9 Status: NEW Severity: normal Priority: P2 Component: gdb Assignee: unassigned at sourceware dot org Reporter: olivier.gay at a3 dot epfl.ch Printing an hexadecimal floating constant with positive exponent is OK: (gdb) p/f 0x00.1p0 $1 = 0.0625 (gdb) p/f 0x00.1p1 $2 = 0.125 but if the exponent is negative then the result is wrong: (gdb) p/f 0x00.1p-1 $3 = -0.9375 The expected result is 0.031250. Tested with gdb 7.9. -- You are receiving this mail because: You are on the CC list for the bug.
next reply other threads:[~2015-04-24 13:38 UTC|newest] Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top 2015-04-24 13:38 olivier.gay at a3 dot epfl.ch [this message] 2015-04-24 13:40 ` [Bug gdb/18318] " olivier.gay at a3 dot epfl.ch 2015-04-24 14:07 ` huguesdelassus at hotmail dot fr 2015-04-24 15:35 ` huguesdelassus at hotmail dot fr 2020-06-06 15:35 ` tromey at sourceware dot org 2020-06-11 16:35 ` cvs-commit at gcc dot gnu.org 2020-06-11 16:37 ` tromey at sourceware dot org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-18318-4717@http.sourceware.org/bugzilla/ \ --to=sourceware-bugzilla@sourceware.org \ --cc=gdb-prs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).