[Bug middle-end/93634] Improving modular calculations (e.g. divisibility tests).

cassio.neri at gmail dot com gcc-bugzilla@gcc.gnu.org
Tue Feb 11 17:49:00 GMT 2020


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93634

--- Comment #1 from Cassio Neri <cassio.neri at gmail dot com> ---
FYI, this is what clang trunk generates:
  imull $-1431655765, %edi, %eax # imm = 0xAAAAAAAB
  addl $1431655764, %eax # imm = 0x55555554
  rorl %eax
  cmpl $715827882, %eax # imm = 0x2AAAAAAA
  setb %al
  retq


More information about the Gcc-bugs mailing list