From: Joel Salomon <JoelCSalomon@Gmail.com>
To: 9fans@cse.psu.edu
Subject: [9fans] NaN(2)
Date: Tue, 20 Feb 2007 18:55:31 -0500 [thread overview]
Message-ID: <9c9d07436eff1c038450ca310ea13a7a@plan9.jp> (raw)
My system doesn’t seem to like it when I call NaN(2):
cpu% cat tnan.c
#include <u.h>
#include <libc.h>
void
main(int, char**)
{
double d = NaN();
print("d = %f\n", d);
exits(0);
}
cpu% 8c -FVw tnan.c
cpu% 8l tnan.8
cpu% 8.out
8.out 55798: suicide: sys: fp: invalid operation fppc=0x10a4 status=0x8081 pc=0x00001028
cpu% acid 55798
/proc/55798/text:386 plan 9 executable
/sys/lib/acid/port
/sys/lib/acid/386
acid: stk()
main()+0x8 /usr/chesky/src/hak/lex/tnan.c:7
_main+0x31 /sys/src/libc/386/main9.s:16
acid: asm(main)
main 0x00001020 SUBL $0x1c,SP
main+0x3 0x00001023 CALL NaN(SB)
main+0x8 0x00001028 FMOVDP F0,d+0x14(SP)
…
Why is this happening?
Also, what is Intel’s name for the FMOVDP instruction?
--Joel
next reply other threads:[~2007-02-20 23:55 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-02-20 23:55 Joel Salomon [this message]
2007-02-21 0:00 ` Joel C. Salomon
2007-02-21 0:20 ` Joel Salomon
2007-02-21 1:00 ` erik quanstrom
2007-02-21 2:26 ` Joel Salomon
2007-02-21 4:18 ` erik quanstrom
2007-02-21 4:35 ` Joel C. Salomon
2007-02-21 5:10 ` Joel C. Salomon
2007-02-21 5:50 ` Russ Cox
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=9c9d07436eff1c038450ca310ea13a7a@plan9.jp \
--to=joelcsalomon@gmail.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).