This is an archive of the discontinued LLVM Phabricator instance.

Consider endianness in TargetLowering::scalarizeVectorStore()
ClosedPublic

Authored by jonpa on Feb 1 2018, 1:42 AM.

Details

Summary

The recent fix (D42100) for vector stores of non byte-sized elements lacked consideration of endianness.

After discussion it was agreed that the order of the elements in the built integer should be reversed for Big-Endian targets, which is what this patch is aimed to do.

The SystemZ (Big-Endian) tests are updated as well.

Diff Detail

Event Timeline

jonpa created this revision.Feb 1 2018, 1:42 AM
efriedma accepted this revision.Feb 1 2018, 11:22 AM
efriedma added a subscriber: efriedma.

LGTM

This revision is now accepted and ready to land.Feb 1 2018, 11:22 AM
jonpa closed this revision.Feb 2 2018, 12:51 AM

Thanks for help and review,

Committed as r324063, after clang-format.