[Bug target/101366] memset codegen for constant sized does not use SSE instructions

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Jul 7 20:13:31 GMT 2021


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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |missed-optimization
             Target|                            |x86_64-linux-gnu
   Last reconfirmed|                            |2021-07-07
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |NEW
            Summary|x86 memset codegen for      |memset codegen for constant
                   |constant sized is           |sized does not use SSE
                   |suboptimal                  |instructions
           Severity|normal                      |enhancement

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
AARCH64 is fine:
TestStd(char*):
        ldr     b0, [x0, -1]
        dup     v0.16b, v0.b[0]
        stp     q0, q0, [x0]
        stp     q0, q0, [x0, 32]
        ret


More information about the Gcc-bugs mailing list