This is an archive of the discontinued LLVM Phabricator instance.

Fix UNPREDICTABLE check in EmulateInstructionARM::EmulateADDRegShift
ClosedPublic

Authored by teemperor on Apr 13 2019, 11:43 AM.

Details

Summary

As reported in LLVM bug 41487, the check in this function is wrong and should be
the same as the described check in the comment (which is correctly copied from the
ARM ISA reference).

Diff Detail

Repository
rL LLVM

Event Timeline

teemperor created this revision.Apr 13 2019, 11:43 AM
davide accepted this revision.Apr 13 2019, 2:56 PM
davide added a subscriber: davide.

Add an unittest maybe? otherwise, seems to match the ISA so LGTM

This revision is now accepted and ready to land.Apr 13 2019, 2:56 PM

I don't think I can provide a test for this because I don't really know the code so well (and generating an UNPREDICTABLE seems tricky too). I'll leave this up for a bit to see if someone comes up with a test (or I'll have time to dig into the code) and then commit.

JDevlieghere accepted this revision.Apr 26 2019, 2:41 PM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptApr 27 2019, 11:13 AM