This is an archive of the discontinued LLVM Phabricator instance.

[mips][ias] Range check uimm4 operands and fixed a bug this revealed.
ClosedPublic

Authored by dsanders on Oct 23 2015, 4:33 AM.

Details

Summary

The bug was that the sldi instructions have immediate widths dependant on
their element size. So sldi.d has a 1-bit immediate and sldi.b has a 4-bit
immediate. All of these were using 4-bit immediates previously.

Depends on D14016

Diff Detail

Event Timeline

dsanders updated this revision to Diff 38230.Oct 23 2015, 4:33 AM
dsanders retitled this revision from to [mips][ias] Range check uimm4 operands and fixed a bug this revealed..
dsanders updated this object.
dsanders added a reviewer: vkalintiris.
dsanders added subscribers: atanasyan, llvm-commits.
vkalintiris accepted this revision.Oct 26 2015, 10:13 AM
vkalintiris edited edge metadata.

LGTM.

lib/Target/Mips/AsmParser/MipsAsmParser.cpp
3297–3306

Similarly with the previous review requests, we should split the lines larger than 80-cols.

This revision is now accepted and ready to land.Oct 26 2015, 10:13 AM
dsanders closed this revision.Nov 6 2015, 4:44 AM