https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111367
--- Comment #13 from Kewen Lin <linkw at gcc dot gnu.org> --- (In reply to Michael Meissner from comment #12) > Basically I did not consider the case. IIRC, you only need the stack > protect DI mode case if the stack is large enough (more than 32K). I don't > think 32-bit programs could have a large enough stack that would force them > to use prefixed instructions. > > But it should be simple enough to use the :P iterator to catch both SI and > DI cases. Thanks for the explanation. This reported test case has an array with 10000 long long type element, the corresponding stack size is 80080 bytes and the canary word is put at +80060 which can leverage prefixed insn.