Skip to content

cmd/compile: binary.BigEndian.UintXX should compile to a load+bswap on amd64 #17151

@rasky

Description

@rasky

Given the existing pattern-matching for binary.LittleEndian.UintXX functions, the functionality could be extended to support also binary.BigEndian, by doing a straight load followed by a BSWAP instruction.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions