This is an archive of the discontinued LLVM Phabricator instance.

[Arch64AsmParser] better diagnostic for isb
ClosedPublic

Authored by SjoerdMeijer on Apr 19 2017, 8:10 AM.

Details

Summary

Instruction isb takes as an operand either 'sy' or an immediate value. This improves the diagnostic when the string is not 'sy' and adds a test case for this which was missing.

Diff Detail

Repository
rL LLVM

Event Timeline

SjoerdMeijer created this revision.Apr 19 2017, 8:10 AM
john.brawn requested changes to this revision.Apr 19 2017, 8:44 AM

This breaks non-isb barrier instructions, e.g. "dsb foo" ends up getting a segfault.

This revision now requires changes to proceed.Apr 19 2017, 8:44 AM

Oops, thanks for reviewing/checking! This shows we also need more tests for dsb and dmb; currently regression tests check only for incorrect immediate values and not the option.

SjoerdMeijer edited edge metadata.

Fixed segfault and added tests for dsb and dmb.

This revision is now accepted and ready to land.Apr 20 2017, 7:20 AM
This revision was automatically updated to reflect the committed changes.