https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71488
Bug ID: 71488 Summary: Wrong code on GCC trunk with ivybridge and westmere targets Product: gcc Version: 7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: anton.mitrokhin at phystech dot edu Target Milestone: --- Created attachment 38673 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38673&action=edit Reproducer It looks like the result on -O3 is incorrect Reproduce: > g++ -std=c++11 -static-libgcc -static-libstdc++ -O0 -march=westmere -o out > crash.cpp Output: -5386832788153059297 > g++ -std=c++11 -static-libgcc -static-libstdc++ -O3 -march=westmere -o out > crash.cpp Output: -5386832788153059298 > g++ -std=c++11 -static-libgcc -static-libstdc++ -O0 -march=ivybridge -o out > crash.cpp Output: -5386832788153059297 > g++ -std=c++11 -static-libgcc -static-libstdc++ -O3 -march=ivybridge -o out > crash.cpp Output: -5386832788153059298 > gcc -v: Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/export/users/amitrokh/gcc_trunk/bin/../libexec/gcc/x86_64-pc-linux-gnu/7.0.0/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: /export/users/gnutester/stability/svn/trunk/configure --with-arch=corei7 --with-cpu=corei7 --enable-clocale=gnu --with-system-zlib --enable-shared --with-demangler-in-ld --enable-cloog-backend=isl --with-fpmath=sse --with-pkgversion=Revision=237240/svn-rev:237241/ --prefix=/export/users/gnutester/stability/work/trunk/64/install --enable-languages=c,c++,fortran,java,lto Thread model: posix gcc version 7.0.0 20160608 (experimental) (Revision=237240/svn-rev:237241/)