[Bug middle-end/33103] Redundant multiplications for memset

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sun Aug 22 00:06:55 GMT 2021


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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
   Target Milestone|---                         |12.0
      Known to work|                            |12.0
      Known to fail|                            |10.1.0, 5.1.0
         Resolution|---                         |FIXED

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Fixed on the trunk by r12-285.

This is what we get now:
fill1(char*, int):
        movabsq $72340172838076673, %rax
        movzbl  %sil, %esi
        imulq   %rax, %rsi
        movq    %rsi, (%rdi)
        movq    %rsi, 7(%rdi)
        ret


More information about the Gcc-bugs mailing list