This is an archive of the discontinued LLVM Phabricator instance.

Handle BUNDLE instructions in MipsAsmPrinter
ClosedPublic

Authored by arichardson on Dec 3 2019, 12:56 AM.

Details

Summary

In our CHERI fork we use BUNDLE instructions to ensure that a
three-instruction sequence to generate a program-counter-relative value is
emitted without reordering or insertions (since that would break the 32-bit
offset computation).

Currently MipsAsmPrinter asserts when it encounters a pseudo instruction.
To handle BUNDLE we can simply skip the instruction which will then make
EmitInstruction() process the contents of the bundle in order.

Diff Detail

Event Timeline

arichardson created this revision.Dec 3 2019, 12:56 AM

Build result: pass - 60402 tests passed, 0 failed and 726 were skipped.

Log files: console-log.txt, CMakeCache.txt

This revision is now accepted and ready to land.Dec 3 2019, 5:17 AM
This revision was automatically updated to reflect the committed changes.