[Lldb-commits] [PATCH] D157488: [lldb][AArch64] Add testing of save/restore for Linux MTE control register

David Spickett via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Wed Aug 30 03:20:09 PDT 2023


DavidSpickett added a comment.

> This looks fine but instead of adding a new test cant we add MTE control register tests to already available MTE tests?

We have these existing tests:
mte_core_file - clearly it can't go here, core files are read only.
mte_memory_region - memory regions have nothing to do with registers.
mte_tag_access - Could go here.
mte_tag_faults - Could go here.

You can call it `def test_mte_ctrl_is_restored` and that explains it if it fails among a set of somewhat unrelated tests, but it makes it harder to see at a glance if we've tested that register specifically. Doing it in it's own test file is clear what it's doing and it's next to the other register tests and the forthcoming SME tests.

I know I've gone either way on adding new test cases or tacking onto older ones in the past but in this case that's the way I'm leaning.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D157488/new/

https://reviews.llvm.org/D157488



More information about the lldb-commits mailing list