Skip to content

[VectorCombine] scalarizeExtExtract uses LE lane mapping on BE targets #158197

@uyoyo0

Description

@uyoyo0

The scalarizeExtExtract combine packs into i(N*8) and then extracts lanes via lshr/and. The shift amount assumes little-endian ordering which is incorrect for big-endian targets.

This causes miscompiles on big-endian targets such as AIX/PowerPC under -O3 -flto.

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    Status

    Done

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions