* Printing long double register pairs on s390x @ 2019-11-08 19:16 Florian Weimer 2019-11-08 20:29 ` Andreas Schwab 0 siblings, 1 reply; 3+ messages in thread From: Florian Weimer @ 2019-11-08 19:16 UTC (permalink / raw) To: gdb Is there a way to print the long double value of a register pair? If I read the Principles of Operation correctly, that's how long double values are stored. I couldn't find any obvious way, and the manual doesn't mention anything, either. (I recently had to look into a floating point issue, but it turned out that it was underlinking of libm, so that the compat double functions were called with long double arguments, so not much actual debugging needed.) ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Printing long double register pairs on s390x 2019-11-08 19:16 Printing long double register pairs on s390x Florian Weimer @ 2019-11-08 20:29 ` Andreas Schwab 2019-11-08 20:38 ` Florian Weimer 0 siblings, 1 reply; 3+ messages in thread From: Andreas Schwab @ 2019-11-08 20:29 UTC (permalink / raw) To: Florian Weimer; +Cc: gdb On Nov 08 2019, Florian Weimer wrote: > Is there a way to print the long double value of a register pair? Since IBM long double is the sum of two doubles, just printing the sum of the registers should do it. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different." ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Printing long double register pairs on s390x 2019-11-08 20:29 ` Andreas Schwab @ 2019-11-08 20:38 ` Florian Weimer 0 siblings, 0 replies; 3+ messages in thread From: Florian Weimer @ 2019-11-08 20:38 UTC (permalink / raw) To: Andreas Schwab; +Cc: gdb * Andreas Schwab: > On Nov 08 2019, Florian Weimer wrote: > >> Is there a way to print the long double value of a register pair? > > Since IBM long double is the sum of two doubles, just printing the sum > of the registers should do it. That's POWER only. long double on s390x is proper float128. ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-11-08 20:38 UTC | newest] Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2019-11-08 19:16 Printing long double register pairs on s390x Florian Weimer 2019-11-08 20:29 ` Andreas Schwab 2019-11-08 20:38 ` Florian Weimer
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox