public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug gdb/29795] New: [gdb, PowerPC] gdb.base/store.exp fails to return the correct value
@ 2022-11-16 19:20 cel at us dot ibm.com
  2022-11-16 19:25 ` [Bug gdb/29795] " cel at us dot ibm.com
  0 siblings, 1 reply; 2+ messages in thread
From: cel at us dot ibm.com @ 2022-11-16 19:20 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=29795

            Bug ID: 29795
           Summary: [gdb, PowerPC] gdb.base/store.exp fails to return the
                    correct value
           Product: gdb
           Version: 12.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: gdb
          Assignee: unassigned at sourceware dot org
          Reporter: cel at us dot ibm.com
  Target Milestone: ---

The gdb.base/store.exp fails on Power10, with:

gcc (GCC) 12.2.1 20220819 (Red Hat 12.2.1-2)
Fedora release 36 (Thirty Six)

It generates 5 failures:

(gdb) PASS: gdb.base/store.exp: continue to wack_doublest
print l
$29 = -1.9375
(gdb) FAIL: gdb.base/store.exp: var doublest l; print old l, expecting -1
print r
$30 = 3.20641835417611559822573486476171432e-4938
(gdb) FAIL: gdb.base/store.exp: var doublest l; print old r, expecting -2
set variable l = 4

...

print l
$32 = 3.999996185302734375
(gdb) FAIL: gdb.base/store.exp: var doublest l; print incremented l, expecting
\
2print l

...

$54 = -1.9375
(gdb) FAIL: gdb.base/store.exp: upvar doublest l; print old l, expecting -1
print r
$55 = 3.20680779558280486578025331197365593e-4938
(gdb) FAIL: gdb.base/store.exp: upvar doublest l; print old r, expecting -2
set variable l = 4

I suspect it has something to do with the "new" default use of IEEE 128-bit
floating point.

NOTE: the test does not fail on Power 10 with:
gcc (GCC) 11.2.1 20220127 (Red Hat 11.2.1-9)
Red Hat Enterprise Linux release 9.0 (Plow)

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug gdb/29795] [gdb, PowerPC] gdb.base/store.exp fails to return the correct value
  2022-11-16 19:20 [Bug gdb/29795] New: [gdb, PowerPC] gdb.base/store.exp fails to return the correct value cel at us dot ibm.com
@ 2022-11-16 19:25 ` cel at us dot ibm.com
  0 siblings, 0 replies; 2+ messages in thread
From: cel at us dot ibm.com @ 2022-11-16 19:25 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=29795

Carl E Love <cel at us dot ibm.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ulrich.weigand at de dot ibm.com,
                   |                            |vries at gcc dot gnu.org,
                   |                            |will_schmidt at vnet dot ibm.com

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-11-16 19:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-16 19:20 [Bug gdb/29795] New: [gdb, PowerPC] gdb.base/store.exp fails to return the correct value cel at us dot ibm.com
2022-11-16 19:25 ` [Bug gdb/29795] " cel at us dot ibm.com

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).