This is an archive of the discontinued LLVM Phabricator instance.

[mips][ias] Integers are not registers.
ClosedPublic

Authored by dsanders on Jun 15 2016, 6:22 AM.

Details

Summary

When parseAnyRegister() encounters a symbol alias, it parses integers and adds
a corresponding expression to the operand list. This is clearly wrong since the
only operands that parseAnyRegister() should be accepting are registers.

It's not clear why this code was added and there are no test cases that cover
it. I think it might be leftover from when searchSymbolAlias() was more widely
used.

Diff Detail

Event Timeline

dsanders updated this revision to Diff 60828.Jun 15 2016, 6:22 AM
dsanders retitled this revision from to [mips][ias] Integers are not registers..
dsanders updated this object.
dsanders added a reviewer: sdardis.
dsanders added a subscriber: llvm-commits.
sdardis accepted this revision.Jun 22 2016, 5:07 AM
sdardis edited edge metadata.

LGTM.

This revision is now accepted and ready to land.Jun 22 2016, 5:07 AM
dsanders closed this revision.Jun 23 2016, 4:01 AM