Skip to content

Invalid asm code in newlib/libc/machine/xtensa/memcpy.S #11

@berolinux

Description

@berolinux

Line 261 of newlib/libc/machine/xtensa/memcpy.S says
srli a11, a8, 30
This is undefined; srli shifts only by 0 to 15 bits, not 30.
Some assemblers seem to translate the srli statement to extui a11, a8, 30, 2, but some (e.g. clang) don't.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions