[Bug c++/80372] non-optimal handling of copying a std::complex

2017-04-09 Thread no...@turm-lahnstein.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80372

--- Comment #3 from ead  ---
(In reply to Andrew Pinski from comment #2)
> What options are you using?  -O2 or -O3 ? -mcpu=native ?

It is compiled with -O3, but it is the same for -O2 or -Os. 

If compiled with -march=native, the result uses four vmovsd instead of four
movsd, which does not change much: the new version is still the same slow and
36byte large.

[Bug c++/80372] non-optimal handling of copying a std::complex

2017-04-09 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80372

--- Comment #2 from Andrew Pinski  ---
What options are you using?  -O2 or -O3 ? -mcpu=native ?

[Bug c++/80372] non-optimal handling of copying a std::complex

2017-04-08 Thread trippels at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80372

--- Comment #1 from Markus Trippelsdorf  ---
*** Bug 80373 has been marked as a duplicate of this bug. ***