https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90993
--- Comment #2 from joseph at codesourcery dot com <joseph at codesourcery dot com> --- Note that this is only valid with -fno-trapping-math (since integer division is not permitted to raise the "inexact" exception flag). (With AVX-512 there are instruction variants that suppress exceptions and so could be used even with -ftrapping-math.)