This is an archive of the discontinued LLVM Phabricator instance.

[PowerPC] Fix incorrect PC Relative relocations for Big Endian
ClosedPublic

Authored by stefanp on Jun 2 2020, 1:34 PM.

Details

Summary

Fix the incorrect PC Relative relocations for Big Endian for 34 bit offsets.
The offset should be zero for both BE and LE in this situation.

Diff Detail

Event Timeline

stefanp created this revision.Jun 2 2020, 1:34 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 2 2020, 1:34 PM
NeHuang accepted this revision as: NeHuang.Jun 4 2020, 1:11 PM
NeHuang added a subscriber: NeHuang.

LGTM.

This revision is now accepted and ready to land.Jun 4 2020, 1:11 PM
sfertile accepted this revision as: sfertile.Jun 5 2020, 10:18 AM

LGTM.

Minor nit not related to this patch is that the test is really noisy. I realize this is the assembly clang emits, but a lit test can be cleaned up to just the needed constructs. Removing the comments, zero padding after the functions, local aliases (.Lexternal$local) and finally the size directives and the labels that are only needed for those directives goes along way in creating a much simpler test that helps to highlight exactly what functionality is being exercised at a glance. After landing this patch can you do an NFC cleanup of the test?

After landing this patch can you do an NFC cleanup of the test?

Yes, I can certainly do that!

stefanp set the repository for this revision to rG LLVM Github Monorepo.Jun 8 2020, 5:34 PM
This revision was automatically updated to reflect the committed changes.