Skip to content

[AArch64] Suboptimal memset for non-power of two sizes #165949

@Kmeakin

Description

@Kmeakin

Split off from #165625

https://godbolt.org/z/n3qq3EYrT

LLVM assembly:

set4:
        mov     w8, #16843009
        and     w9, w1, #0xff
        mul     w8, w9, w8
        str     w8, [x0]
        ret

GCC assembly:

set4:
        dup     v31.16b, w1
        str     s31, [x0]
        ret

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions