Bug 4911 - IA32 Floating Point Registers appear to report values incorrectly.
Summary: IA32 Floating Point Registers appear to report values incorrectly.
Status: RESOLVED FIXED
Alias: None
Product: frysk
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Phil Muldoon
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-09 21:58 UTC by Phil Muldoon
Modified: 2008-01-09 13:40 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments
FP Test program (1.05 KB, text/x-csrc)
2007-08-09 21:59 UTC, Phil Muldoon
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Phil Muldoon 2007-08-09 21:58:36 UTC
Compile attached program
gcc fptest.c -o fptest

Run it

Inspect the registers (I used the ui for this, but any method works)

st6 and st7 are reported as 1.0000... and 64.0000....

instead of:

1.2339999999999999 (0x3fff9df3b645a1cac000)
101.22399999999999 (0x4005ca72b020c49ba300)
Comment 1 Phil Muldoon 2007-08-09 21:59:15 UTC
Created attachment 1956 [details]
FP Test program

Simple floating point test program
Comment 2 Phil Muldoon 2008-01-09 13:37:39 UTC
Fixed, closed.
Comment 3 Phil Muldoon 2008-01-09 13:40:57 UTC
Bank Registers in the core have been rewritten, and additional code takes
advantage of this new system:

2008-01-03  Phil Muldoon  <pmuldoon@redhat.com>

	* TestCoredumpAction.java (testGeneralPurposeRegisters): Delete. Replaced by
	frysk.proc.dead.TestCoreRegs.
	(testFloatingPointRegisters): Ditto.
	(testXFloatingPointRegisters): Ditto. 
	* IA32LinuxElfCorefile.java (writeNotePRXFPRegSet): Rewrite and
	use BankRegisters.
	(writeNotePRFPRegSet): Ditto.
	* X8664LinuxElfCorefile.java (writeNotePRFPRegSet): Ditto.