This is an archive of the discontinued LLVM Phabricator instance.

[mips] Range check simm5.
ClosedPublic

Authored by dsanders on Mar 14 2016, 7:09 AM.

Details

Summary

We can't check the error message for this one because there's another lw/sw
available that covers a larger range. We therefore check the transition
between the two sizes.

Depends on D18143

Diff Detail

Event Timeline

dsanders updated this revision to Diff 50586.Mar 14 2016, 7:09 AM
dsanders retitled this revision from to [mips] Range check simm5..
dsanders updated this object.
dsanders added a reviewer: vkalintiris.
dsanders added a subscriber: llvm-commits.
vkalintiris accepted this revision.Mar 21 2016, 6:54 AM
vkalintiris edited edge metadata.

LGTM, one comment inline.

lib/Target/Mips/AsmParser/MipsAsmParser.cpp
3735–3737

Is there any other user of this match result, ie. other than lwsp,swsp? If not then we should add a comment explaining that this case will not be hit.

This revision is now accepted and ready to land.Mar 21 2016, 6:54 AM
vkalintiris added inline comments.Mar 21 2016, 7:58 AM
lib/Target/Mips/AsmParser/MipsAsmParser.cpp
3735–3737

Never mind... I just finished reviewing D18177.

dsanders closed this revision.Mar 22 2016, 7:34 AM