[Issue 6505] Wrong code for expression involving 8 floats, only with -O

2015-06-09 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=6505 Andrei Alexandrescu and...@erdani.com changed: What|Removed |Added Version|D1 D2 |D2 --

[Issue 6505] Wrong code for expression involving 8 floats, only with -O

2011-08-23 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6505 --- Comment #2 from Don clugd...@yahoo.com.au 2011-08-23 01:52:36 PDT --- Thanks bearophile, that reduction is very helpful. The code loads 8 values on the x87 stack. The eighth one would cause an overflow, so in cg87.c, push87(), it inserts:

[Issue 6505] Wrong code for expression involving 8 floats, only with -O

2011-08-23 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6505 --- Comment #3 from Don clugd...@yahoo.com.au 2011-08-23 12:19:44 PDT --- Here's the problem. The scheduler keeps track of the number of used x87 registers via the fpustackused variable. Each instruction has a fpuadjust value which says how

[Issue 6505] Wrong code for expression involving 8 floats, only with -O

2011-08-23 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6505 Walter Bright bugzi...@digitalmars.com changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 6505] Wrong code for expression involving 8 floats, only with -O

2011-08-16 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6505 bearophile_h...@eml.cc changed: What|Removed |Added CC||bearophile_h...@eml.cc ---