https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86632
--- Comment #2 from Ketan <ketan.surender at gmail dot com> --- Created attachment 44419 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44419&action=edit Reproduction Files Contents of archive - compile.sh : Compiles and runs code in -O0 (correct result), -O3 (incorrect result), -O3 -fno-tree-loop-vectorize (correct result) - main.c : Required source file - mDiscBlocks2_repro.c : Required source file - mDiscBlocks2_repro.h : Required header file. Defines various global structures used by the code.