This is an archive of the discontinued LLVM Phabricator instance.

[AVR] Fix incorrect register state for LDRdPtr
ClosedPublic

Authored by Jim on Mar 2 2020, 12:50 AM.

Details

Summary

LDRdPtr expanded from LDWRdPtr shouldn't define its second operand(SrcReg).
The second operand is its source register.
Add -verify-machineinstrs into command line of testcases can trigger this error.

Diff Detail

Event Timeline

Jim created this revision.Mar 2 2020, 12:50 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 2 2020, 12:50 AM
Jim updated this revision to Diff 247787.Mar 2 2020, 10:21 PM

Add -verify-machineinstrs for brind.ll

Solid fix, once the lint errors are fixed I will approve.

dylanmckay accepted this revision.Mar 2 2020, 10:51 PM

Actually I'll just approve under condition that the pre-merge clang-format checks are fixed before commit.

This revision is now accepted and ready to land.Mar 2 2020, 10:51 PM
Jim updated this revision to Diff 247802.Mar 2 2020, 11:38 PM

Format code.

dylanmckay accepted this revision.Mar 3 2020, 12:15 AM
This revision was automatically updated to reflect the committed changes.