[Issue 2942] asm fadd; accepted, but generates code for faddp.
http://d.puremagic.com/issues/show_bug.cgi?id=2942 Walter Bright bugzi...@digitalmars.com changed: What|Removed |Added Severity|normal |minor --- Comment #3 from Walter Bright bugzi...@digitalmars.com 2009-09-30 23:03:03 PDT --- These pseudo-ops *are* documented in older Intel manuals, like the 387 DX User's Manual. I'm reluctant to change it. The last issue should be in a separate report. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 2942] asm fadd; accepted, but generates code for faddp.
http://d.puremagic.com/issues/show_bug.cgi?id=2942 Don clugd...@yahoo.com.au changed: What|Removed |Added Status|NEW |RESOLVED Resolution||INVALID --- Comment #4 from Don clugd...@yahoo.com.au 2009-10-01 00:27:56 PDT --- (In reply to comment #3) These pseudo-ops *are* documented in older Intel manuals, like the 387 DX User's Manual. I'm reluctant to change it. The last issue should be in a separate report. Interesting. They aren't present in any manual which is still available. I found a website with material which was copied from the 386 manual (not 387), but it said that even in 1997, the manual was no longer officially available. I suspect that a lot of those pseudo-ops were bugs in DEBUG. (DEBUG also accepts fld addr, ST(6);). However, I just checked MSVC, and it _does_ accept fadd; (But it doesn't accept the legal faddp; !!) Pretty useless, and I think they should be abandoned, but no big deal if you want to keep them. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 2942] asm fadd; accepted, but generates code for faddp.
http://d.puremagic.com/issues/show_bug.cgi?id=2942 --- Comment #2 from clugd...@yahoo.com.au 2009-05-08 14:48 --- It gets worse. DMD also copies some hideous DEBUG bugs. This garbage compiles: void main() { double x; asm { fld x, ST(6); } } Even though there's no such instruction, you can't load into ST(6). This wasn't included in my patch. --
[Issue 2942] asm fadd; accepted, but generates code for faddp.
http://d.puremagic.com/issues/show_bug.cgi?id=2942 --- Comment #1 from clugd...@yahoo.com.au 2009-05-06 03:55 --- Created an attachment (id=352) -- (http://d.puremagic.com/issues/attachment.cgi?id=352action=view) Patch against DMD 2.029 This simple patch comments out the problematic instructions. --