This is an archive of the discontinued LLVM Phabricator instance.

[LLDB] Test SVE dynamic resize with multiple threads
ClosedPublic

Authored by omjavaid on Jun 30 2020, 4:40 AM.

Details

Summary

This patch adds a new test case which depends on AArch64 SVE support and dynamic resize capability enabled. It created two seperate threads which have different values of sve registers and SVE vector granule at various points during execution.

We test that LLDB is doing the size and offset updates properly for all of the threads including the main thread and when we VG is updated using prctl call or by 'register write vg' command the appropriate changes are also update in register infos.

Diff Detail

Event Timeline

omjavaid created this revision.Jun 30 2020, 4:40 AM
omjavaid updated this revision to Diff 287333.Aug 24 2020, 3:28 AM

Updated after changes to TestSVERegister.py for detecting SVE support using /proc/cpuinfo

omjavaid updated this revision to Diff 287526.Aug 24 2020, 5:19 PM

This update changes this test;s dependence on register offset API.

omjavaid updated this revision to Diff 288943.Aug 31 2020, 7:08 AM

Update after moving SVE supported function to lldbtest.py

omjavaid updated this revision to Diff 308343.Nov 30 2020, 5:48 AM

Updated after rebase over D91241

labath accepted this revision.Dec 10 2020, 1:04 AM
labath added inline comments.
lldb/test/API/commands/register/register/aarch64_sve_registers/rw_access_dynamic_resize/main.c
59

It looks like it would be simpler if these were two functions.

This revision is now accepted and ready to land.Dec 10 2020, 1:04 AM
omjavaid updated this revision to Diff 314328.Jan 4 2021, 12:54 AM

Added separate thread functions for both threads.

This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptJan 19 2021, 2:02 AM