https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82853
--- Comment #26 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Created attachment 44658 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44658&action=edit pr82853-tests.tar.xz A test generator for x % c1 == c2 expansion for unsigned, int, unsigned long long, long long, unsigned int128 and int128 types (assuming ilp32 or lp64) plus tests for those types. Takes about 2 minutes to compile + run on a fast box and uses random (), so not really sure the tests should go into the testsuite. Thoughts on that? After all, the generator isn't extra smart and doesn't try to find problematic corner cases.