This is an archive of the discontinued LLVM Phabricator instance.

[llvm-mc-fuzzer] Support untested instruction discovery for variable length instruction sets like microMIPS.
ClosedPublic

Authored by dsanders on Sep 18 2015, 7:01 AM.

Details

Summary

For fixed length instructions, we can use -max_len to limit the fuzzer to a
single instruction. This doesn't work for variable length instruction sets
since a 4-byte input could consist of one 4-byte instruction or two 2-byte
instructions.

This patch adds a --insn-limit to llvm-mc-fuzzer to limit the input in
terms of instructions processed.

Diff Detail

Event Timeline

dsanders updated this revision to Diff 35079.Sep 18 2015, 7:01 AM
dsanders retitled this revision from to [llvm-mc-fuzzer] Support untested instruction discovery for variable length instruction sets like microMIPS..
dsanders updated this object.
dsanders added subscribers: llvm-commits, kcc.
kcc accepted this revision.Sep 18 2015, 11:44 AM
kcc added a reviewer: kcc.

LGTM

This revision is now accepted and ready to land.Sep 18 2015, 11:44 AM
dsanders closed this revision.Sep 22 2015, 2:24 AM