https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78037
--- Comment #8 from Nicolas Le Scouarnec ---
The same problem may be present in lzcnt which is also expanded as
__builtin_clz which is also undefined if 0.
http://www.felixcloutier.com/x86/LZCNT.html
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78037
--- Comment #4 from Nicolas Le Scouarnec ---
Created attachment 39839
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=39839&action=edit
Incorrect assembly at optimization level O2
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78037
--- Comment #3 from Nicolas Le Scouarnec ---
Created attachment 39838
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=39838&action=edit
Correct Assembly at optimization level O1
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78037
--- Comment #2 from Nicolas Le Scouarnec ---
Created attachment 39837
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=39837&action=edit
i file
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78037
--- Comment #1 from Nicolas Le Scouarnec ---
Created attachment 39836
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=39836&action=edit
C file
: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: nlescoua at gmail dot com
Target Milestone: ---
System: Haswell (Linux 64bit)
The following program compiles incorrectly on gcc 6.2.0 (and also gcc 5.3.1