[Bug d/98607] GDC merging computations but rounding mode has changed

2021-01-15 Thread glisse at gcc dot gnu.org via Gcc-bugs
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

[Bug d/98607] GDC merging computations but rounding mode has changed

2021-01-09 Thread ibuclaw at gdcproject dot org via Gcc-bugs
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

[Bug d/98607] GDC merging computations but rounding mode has changed

2021-01-09 Thread guillaume.piolat at gmail dot com via Gcc-bugs
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

[Bug d/98607] GDC merging computations but rounding mode has changed

2021-01-09 Thread guillaume.piolat at gmail dot com via Gcc-bugs
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

[Bug d/98607] GDC merging computations but rounding mode has changed

2021-01-09 Thread jakub at gcc dot gnu.org via Gcc-bugs
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).

[Bug d/98607] GDC merging computations but rounding mode has changed

2021-01-09 Thread guillaume.piolat at gmail dot com via Gcc-bugs
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?

[Bug d/98607] GDC merging computations but rounding mode has changed

2021-01-09 Thread jakub at gcc dot gnu.org via Gcc-bugs
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

[Bug d/98607] GDC merging computations but rounding mode has changed

2021-01-09 Thread guillaume.piolat at gmail dot com via Gcc-bugs
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 ?

[Bug d/98607] GDC merging computations but rounding mode has changed

2021-01-08 Thread ibuclaw at gdcproject dot org via Gcc-bugs
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)