This is an archive of the discontinued LLVM Phabricator instance.

Add post-decode checking of HVC instruction.
ClosedPublic

Authored by chatur01 on Nov 28 2014, 5:28 AM.

Details

Reviewers
t.p.northover
Summary

Add checkDecodedInstruction for post-decode checking of instructions, to catch
the corner cases like HVC that don't fit into the general pattern. Needed to
check for an invalid condition field in instruction encoding despite HVC not
taking a predicate.

Patch by Matthew Wahab.

Diff Detail

Event Timeline

chatur01 retitled this revision from to Add post-decode checking of instructions..
chatur01 updated this object.
chatur01 edited the test plan for this revision. (Show Details)

More context.

chatur01 updated this object.

Add tests.

chatur01 retitled this revision from Add post-decode checking of instructions. to Add post-decode checking of HVC instruction..Nov 28 2014, 7:46 AM
chatur01 set the repository for this revision to rL LLVM.
chatur01 added a subscriber: Unknown Object (MLST).
t.p.northover accepted this revision.Nov 28 2014, 10:51 AM
t.p.northover added a reviewer: t.p.northover.
t.p.northover added a subscriber: t.p.northover.

Hi Charlie,

I think this is reasonable. A bit ugly, but I can't see any alternative if we want to support UNPREDICTABLE for this.

Cheers.

Tim.

This revision is now accepted and ready to land.Nov 28 2014, 10:51 AM

Thanks again for the reviews Tim. Committed as r222989.

Eugene.Zelenko added a subscriber: Eugene.Zelenko.

Committed in rL222992.