This is an archive of the discontinued LLVM Phabricator instance.

[PowerPC][altivec] Correct modulo number of vec_promote on vector char
ClosedPublic

Authored by lkail on Aug 21 2023, 9:22 PM.

Details

Summary

According to https://www.ibm.com/docs/en/xl-c-and-cpp-linux/16.1.1?topic=functions-vec-promote, the index should be input modulo the number of elements in the vector. When the type is vector char, the number of elements should be 16.

Diff Detail

Event Timeline

lkail created this revision.Aug 21 2023, 9:22 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 21 2023, 9:22 PM
lkail requested review of this revision.Aug 21 2023, 9:22 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 21 2023, 9:22 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript
lkail retitled this revision from [PowerPC][altivec] Correct modulo number of vector char to [PowerPC][altivec] Correct modulo number of vec_promote on vector char.Aug 21 2023, 9:27 PM
qiucf accepted this revision as: qiucf.Aug 22 2023, 1:40 AM

Thanks for the fix.

This revision is now accepted and ready to land.Aug 22 2023, 1:40 AM
This revision was landed with ongoing or failed builds.Aug 22 2023, 6:58 PM
This revision was automatically updated to reflect the committed changes.