https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69442
--- Comment #5 from Zdenek Sojka <zsojka at seznam dot cz> --- (In reply to ktkachov from comment #4) > but for -mtune=cortex-a8 we have a completely different expansion of mod > that seems to be misoptimised or something: At -O1, is seems this expansion is used as well, but the resulting code is correct.