https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101324
--- Comment #11 from Peter Bergner <bergner at gcc dot gnu.org> --- (In reply to Martin Liška from comment #10) > (In reply to Peter Bergner from comment #8) > > FYI, here's a smaller test case that still shows the issue with today's > > trunk: > > > > extern void foo (void); > > long int > > __attribute__ ((__optimize__ ("-fno-tree-loop-distribute-patterns"))) > > __memmove_ppc (long int cond) > > { > > if (cond) > > foo (); > > return cond; > > } > > All right, I have a patch candidate. Would it be possible to prepare a GCC > test-suite test-case? Great! I'm not sure we can detect the assembly directly, but I think a runnable test case should work. I'll work on that.