dlang-tour / core

D Language online tour (https://tour.dlang.org/) and online editor (https://run.dlang.io/)
Boost Software License 1.0
115 stars 48 forks source link

Default generated code uses a lot of Intel 387 instructions, not SSE2+ #752

Closed baryluk closed 4 years ago

baryluk commented 4 years ago

I was exploring some code in ldc and dmd using the website, and found out even a simple code would create a ton of old-FPU style instructions, even with some flags to try to force it to nod to it:

https://run.dlang.io/is/GakIJp

Maybe it is related to the pow, and the silly fact that it does receive the real instead of double ?

Or maybe the dmd and ldc used on the site by default defaults to 32-bit mode somehow?

Geod24 commented 4 years ago

Looks like https://issues.dlang.org/show_bug.cgi?id=18559 ?

baryluk commented 4 years ago

Yes, you are right. This is an issue with the phobos and the compiler, not the dlang-tour.