https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103981
Bug ID: 103981
Summary: powerpc64le: Wrong code generated for vec_cntlz_lsbb,
vec_cnttz_lsbb
Product: gcc
Version: 12.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: target
Assignee: unassigned at gcc dot gnu.org
Reporter: wschmidt at gcc dot gnu.org
Target Milestone: ---
Per the PVIPR documentation, vec_cntlz_lsbb should generate vctzlsbb for little
endian, and vclzlsbb for big endian. vec_cnttz_lsbb should do the opposite.
The little-endian code generation is incorrect for both. Clang gets this
right, for what it's worth.