GaloisInc / dismantle

A library of assemblers and disassemblers derived from LLVM TableGen data
24 stars 5 forks source link

Negative mask handling improvements in dismantle-tablegen #22

Open travitch opened 4 years ago

travitch commented 4 years ago

Two ideas that are probably not essential for correctness but would help us identify bad or inconsistent input data:

  1. If the "true mask" has any bits set that are not included in the "required bits mask", we could raise an error
  2. We could raise an error if the mask is ever 0