[Bug c++/111097] mistifying bug triggered by trivial code change

2023-08-22 Thread fabio at cannizzo dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111097 --- Comment #7 from Fabio Cannizzo --- Apologies for my ignorance. Thank you.

[Bug c++/111097] mistifying bug triggered by trivial code change

2023-08-22 Thread fabio at cannizzo dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111097 --- Comment #3 from Fabio Cannizzo --- Hi Richard Using -fno-strict-aliasing the issue disappear, however I am not sure if that is a real fix, or if it is merely circumstantial. As mentioned, there are many other possible workarounds which als

[Bug c++/111097] mistifying bug triggered by trivial code change

2023-08-21 Thread fabio at cannizzo dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111097 --- Comment #1 from Fabio Cannizzo --- Changing the `#if 1` to `#if 0` is probably the easiest way to isolate the debug. It causes only minimal changes to the generated assembler. I forgot to mention, the code is compiled with the flags -O3 -ms

[Bug c++/111097] New: mistifying bug triggered by trivial code change

2023-08-21 Thread fabio at cannizzo dot net via Gcc-bugs
Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: fabio at cannizzo dot net Target Milestone: --- Created attachment 55774 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55774&action=edit reproducible test case I come across a weird bug. If I instrument t

[Bug rtl-optimization/110202] _mm512_ternarylogic_epi64 generates unnecessary operations

2023-06-12 Thread fabio at cannizzo dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110202 --- Comment #5 from Fabio Cannizzo --- > Well, there is nothing magic on exactly 0x55 immediate, there are 256 > possible immediates, most of them use all of A, B, C, some of them use just > A, B, others just B, C, others just A, C, others just

[Bug c++/110202] New: _mm512_ternarylogic_epi64 generates unnecessary operations

2023-06-10 Thread fabio at cannizzo dot net via Gcc-bugs
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: fabio at cannizzo dot net Target Milestone: --- Consider the following two alternative implementations of a bitwise complement of an avx512 register. #include __m512i negate1(const

[Bug c++/84080] New: the compiler crashes when compiling the following sample file

2018-01-27 Thread fabio at cannizzo dot net
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: fabio at cannizzo dot net Target Milestone: --- The command # g++ -c prova.cpp -o prova.o prova.cpp:9:42: internal compiler error: Segmentation fault template <> au