This is an archive of the discontinued LLVM Phabricator instance.

[ARM] Correct SP/PC handling in t2MOVr
ClosedPublic

Authored by john.brawn on Feb 21 2017, 6:52 AM.

Details

Summary

PC isn't allowed in the source operand of t2MOVr, so change the register class to one without PC. SP handling is slightly trickier and changes depending on if we're in ARMv8, so do that in checkTargetMatchPredicate.

Diff Detail

Repository
rL LLVM

Event Timeline

john.brawn created this revision.Feb 21 2017, 6:52 AM
rengolin accepted this revision.Feb 21 2017, 7:13 AM

Good catch! LGTM.

This revision is now accepted and ready to land.Feb 21 2017, 7:13 AM
This revision was automatically updated to reflect the committed changes.