[Bug middle-end/116891] [12/13/14/15 Regression] invalid optimization of -fma(-x,x,-z) when -03 and -frounding-math are used

2024-10-01 Thread walter.mascarenhas at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116891 --- Comment #6 from Walter Mascarenhas --- Hi Andrew, The proper optimization in this case would be to use the instruction vfnmsub132pd followed by a change of sign. It could be something like fma_ru: vfnmsub132pd xmm0, xmm2, xmm1 vmovddup

[Bug middle-end/116891] [12/13/14/15 Regression] invalid optimization of -fma(-x,x,-z) when -03 and -frounding-math are used

2024-10-01 Thread walter.mascarenhas at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116891 --- Comment #8 from Walter Mascarenhas --- sorry, I did not pay enough attention. On Tue, Oct 1, 2024 at 5:18 AM pinskia at gcc dot gnu.org < gcc-bugzi...@gcc.gnu.org> wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116891 > > --- Commen

[Bug middle-end/116891] invalid optimization of -fma(-x,y,-z) when -03 and -frounding-math are used

2024-09-30 Thread walter.mascarenhas at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116891 --- Comment #2 from Walter Mascarenhas --- Hi, You will find two files attached to this message: 1) the cpp file contains the C++ code, with comments describing the exact options used and the g++ version. The bug is described in detail in a

[Bug c++/116891] New: invalid optimization of -fma(-x, y, -z) when -03 and -frounding-math are used

2024-09-29 Thread walter.mascarenhas at gmail dot com via Gcc-bugs
: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: walter.mascarenhas at gmail dot com Target Milestone: --- GCC generates invalid code for this statement x = - fma( -y, z, -w ) with -frounding-math. It "optimize

[Bug libquadmath/78415] New: sqrtq does not round correctly when round mode is upward

2016-11-18 Thread walter.mascarenhas at gmail dot com
Priority: P3 Component: libquadmath Assignee: unassigned at gcc dot gnu.org Reporter: walter.mascarenhas at gmail dot com Target Milestone: --- // // The code below shows that sqrtq does not round // correctly when the rounding mode is upwards. // #include #include

[Bug libquadmath/78414] New: libquamath converts (long double) INFINITY to NAN

2016-11-18 Thread walter.mascarenhas at gmail dot com
Component: libquadmath Assignee: unassigned at gcc dot gnu.org Reporter: walter.mascarenhas at gmail dot com Target Milestone: --- Created attachment 40078 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40078&action=edit a simple code showing the bug Libquadmath conve

[Bug c++/64497] std::scalbln does not round correctly for long doubles

2015-01-05 Thread walter.mascarenhas at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64497 --- Comment #2 from Walter Mascarenhas --- What if there is a difference in the expected behavior for this function in C and C++11? Is it not up to g++ for implementing what is mandated in C++11? (This is not a rhetorical question, I really do n

[Bug c++/64497] New: std::scalbln does not round correctly for long doubles

2015-01-05 Thread walter.mascarenhas at gmail dot com
Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: walter.mascarenhas at gmail dot com The overload std::scalbln(long double, long) may not round the result correctly when the exponent is very small. For instance, with round mode = near, std::scalbln(1.1L, -16446

[Bug c++/60273] New: gcc gets confused when one class uses variadic

2014-02-19 Thread walter.mascarenhas at gmail dot com
++ Assignee: unassigned at gcc dot gnu.org Reporter: walter.mascarenhas at gmail dot com Created attachment 32171 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=32171&action=edit gcc asked me to submit this file // // When compiling this file in Ubuntu 13.04, gc

[Bug c++/59056] ambiguous call to function template overloads not diagnosed

2013-11-14 Thread walter.mascarenhas at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59056 --- Comment #9 from Walter Mascarenhas --- 1) I just wrote that Richard's paragraph, IN ITSELF, does not explain why things are as they are. I did not write that there aren't other reasons to justify the standard's decisions. 2) As I wrote, GCC d

[Bug c++/59056] ambiguous call to function template overloads not diagnosed

2013-11-13 Thread walter.mascarenhas at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59056 --- Comment #7 from Walter Mascarenhas --- In itself, Richard's paragraph "Morally, the function should ambiguous... " implies that the code below is ambiguous. However, it compiles just fine with gcc 4.8.1, because gcc also takes into account the

[Bug c++/59056] New: enable_if turns a non-ambiguous template into an ambiguous one

2013-11-08 Thread walter.mascarenhas at gmail dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: walter.mascarenhas at gmail dot com Created attachment 31187 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=31187&action=edit a simple code illustrating the bug The attach

[Bug c++/56516] New: problem parsing templates: object.field < 10 interpreted as ill formed template

2013-03-04 Thread walter.mascarenhas at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56516 Bug #: 56516 Summary: problem parsing templates: object.field < 10 interpreted as ill formed template Classification: Unclassified Product: gcc Version: unknown