This is an archive of the discontinued LLVM Phabricator instance.

[mips] llvm-readobj can parse .MIPS.abiflags. No need to check the bytes.
ClosedPublic

Authored by dsanders on Jun 18 2015, 8:03 AM.

Details

Summary

A small tweak was required to llvm-readobj to avoid false passes.
In FileCheck, 'MIPS32' matches both 'MIPS32' and 'MIPS32r6' so llvm-readobj
now emits 'MIPS32 (MIPS32 revision 1)', 'MIPS2 (MIPS2 revision 0)', etc.

Diff Detail

Event Timeline

dsanders updated this revision to Diff 27935.Jun 18 2015, 8:03 AM
dsanders retitled this revision from to [mips] llvm-readobj can parse .MIPS.abiflags. No need to check the bytes..
dsanders updated this object.
dsanders edited the test plan for this revision. (Show Details)
dsanders added a reviewer: atanasyan.
dsanders added a subscriber: Unknown Object (MLST).
atanasyan accepted this revision.Jun 19 2015, 3:03 AM
atanasyan edited edge metadata.

In general the patch is LGTM. But maybe it is better to achieve the same result without making the llvm-readobj more verbose. The following string does not produce false positive result on ISA: MIPS32r6 input:

ISA: {{MIPS32$}}
This revision is now accepted and ready to land.Jun 19 2015, 3:03 AM
dsanders updated this revision to Diff 28115.Jun 22 2015, 8:35 AM
dsanders edited edge metadata.

Use regex to match EOL rather than make llvm-readobj more verbose.

dsanders closed this revision.Jun 23 2015, 3:15 AM