issue with each specifically for x86
H. S. Teoh
hsteoh at quickfur.ath.cx
Wed Mar 7 20:32:23 UTC 2018
On Wed, Mar 07, 2018 at 10:21:42PM +0200, ketmar via Digitalmars-d-learn wrote:
[...]
> it looks like ignoring `double` result causes FPU stack imbalance
> ('cause compiler doesn't insert "FPU pop" instruction), and that
> affects the computations.
>
> on 64 bit it doesn't matter, 'cause no FPU is used there.
>
> the fix prolly should be easy: just emit "FPU pop" if function result
> is ignored. codegen should have this info at hand, i believe.
Nice catch! Is there a bug filed for this yet? If not, it should be.
T
--
MACINTOSH: Most Applications Crash, If Not, The Operating System Hangs
More information about the Digitalmars-d-learn
mailing list