https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98607
--- Comment #9 from Marc Glisse ---
Since I doubt gdc handles rounding modes correctly for scalars, I think you can
ignore this issue in the implementation of the vector intrinsics for now (same
as we do in C and C++).
Note that gcc isn't alone
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98607
--- Comment #8 from Iain Buclaw ---
(In reply to Guillaume Piolat from comment #6)
> I provide intel intrinsics API for D, these intrinsics (like in C++) allows
> to change the rounding mode, and about 200 other functions that depend on
> the
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98607
--- Comment #7 from Guillaume Piolat ---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=47617
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=34678
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98607
--- Comment #6 from Guillaume Piolat ---
I provide intel intrinsics API for D, these intrinsics (like in C++) allows to
change the rounding mode, and about 200 other functions that depend on the
rounding mode can be called. I'm not the one in
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98607
--- Comment #5 from Jakub Jelinek ---
No. You need to put the code that is done with different rounding modes into
separate functions (and ensure those functions aren't inlined into their
caller).
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98607
--- Comment #4 from Guillaume Piolat ---
So, I need to disable inlining for _mm_setcsr and that will be enough?
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98607
Jakub Jelinek changed:
What|Removed |Added
CC||jakub at gcc dot gnu.org
--- Comment #3
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98607
--- Comment #2 from Guillaume Piolat ---
It seems it is the same as https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55752 ?
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98607
--- Comment #1 from Iain Buclaw ---
To be fair, C++ does the same as well. The problem is the inliner (though no
inlining occurs when using immintrin.h)