OSDN Git Service

[LLDB] Test SVE dynamic resize with multiple threads
authorMuhammad Omair Javaid <omair.javaid@linaro.org>
Tue, 19 Jan 2021 09:52:23 +0000 (14:52 +0500)
committerMuhammad Omair Javaid <omair.javaid@linaro.org>
Tue, 19 Jan 2021 10:01:32 +0000 (15:01 +0500)
commit4d3081331ad854e0bff5032c818ec6414fb974c0
treecd4fc42ea90feecd34d398a5075081cd9a07245a
parente448ad787e16119f8db8cc6999896e678a0356ac
[LLDB] Test SVE dynamic resize with multiple threads

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.

Reviewed By: labath

Differential Revision: https://reviews.llvm.org/D82866
lldb/test/API/commands/register/register/aarch64_sve_registers/rw_access_dynamic_resize/Makefile [new file with mode: 0644]
lldb/test/API/commands/register/register/aarch64_sve_registers/rw_access_dynamic_resize/TestSVEThreadedDynamic.py [new file with mode: 0644]
lldb/test/API/commands/register/register/aarch64_sve_registers/rw_access_dynamic_resize/main.c [new file with mode: 0644]