9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: erik quanstrom <quanstro@coraid.com>
To: 9fans@cse.psu.edu
Subject: [9fans] acid fpr()
Date: Fri,  5 Jan 2007 22:39:06 -0500	[thread overview]
Message-ID: <993f570297f3df7a7067d45d4fb5a711@coraid.com> (raw)

after updating libmach and acid (and double-checking header files
in /sys/include and /386/include), i still get odd results from acid
on mutiple intel machines.

is there something else that needs updating?

- erik

using
	void
	main(void)
	{
		double x;

		x = atof("3.5");
		x += 3.14;
		exits(0);
	}

i get:

acid: new()
165488: system call	_main	SUBL	$0x48,SP
165488: breakpoint	main+0x3	MOVL	$.string(SB),AX
acid: bpset(main+16)
acid: cont()
165488: breakpoint	main+0x10	FMOVDP	F0,x+0x14(SP)
acid: fpr()
F0	 0.
F1	 0.
F2	 0.
F3	 0.
F4	 0.
F5	 0.
F6	 0.
F7	 0.
control	0x0272
status	0x3900
tag	0x3fff
ip offset	0x0000175d
cs selector	0x0023
opcode	0xe907
data operand offset	0xeee8
operand selector	0x001b
acid: step()
165488: breakpoint	main+0x14	FMOVD	x+0x14(SP),F0
acid: step()
165488: breakpoint	main+0x18	FADDD	$51eb851f.40091eb8(SB),F0
acid: step()
165488: breakpoint	main+0x1e	FMOVDP	F0,x+0x14(SP)
acid: fpr()
F0	-3.37649908e-11
F1	 0.
F2	 0.
F3	 0.
F4	 0.
F5	 0.
F6	 0.
F7	 0.
control	0x0272
status	0x3b20
tag	0x3fff
ip offset	0x00001038
cs selector	0x0023
opcode	0xe907
data operand offset	0x6044
operand selector	0x001b


             reply	other threads:[~2007-01-06  3:39 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-06  3:39 erik quanstrom [this message]
2007-01-06  4:19 ` Russ Cox
2007-01-08 13:05 erik quanstrom

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=993f570297f3df7a7067d45d4fb5a711@coraid.com \
    --to=quanstro@coraid.com \
    --cc=9fans@cse.psu.edu \
    /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: link
Be 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 NNTP newsgroup(s).