https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104116
--- Comment #1 from Avinash Jayakar <avinashd at gcc dot gnu.org> --- Hi Jakub, This bug is mainly for the fortran compiler right. - Is there a way to reproduce it for c, since it only has an equivalent for mod operator and not the modulo? - For this issue, do I have to revert the commit in gcc/optabs-tree.cc, so that the vector instruction for the floor mod operator is generated as follows vect__3.11_22 = vect__2.7_15 %[fl] { 39, 39, 39, 39 }; and then handle the expansion of the floor mod? Or do it directly in the tree-vect-patterns.cc such that following is generated vect__3.11_22 = vect__2.7_15 % { 39, 39, 39, 39 }; // normal modulo ... add instructions to handle the signed case?