[lldb] [test/Register] Use initial state for write tests
authorMichał Górny <mgorny@moritz.systems>
Sun, 25 Oct 2020 06:28:56 +0000 (07:28 +0100)
committerMichał Górny <mgorny@moritz.systems>
Mon, 26 Oct 2020 10:54:00 +0000 (11:54 +0100)
commit37d4d3bb4daf409102237132ae8e1db250da83be
tree66da5c0b2fc7e5fd3b05d83b8c4667919dace376
parent7acf2e2e1e8f7e2eac2dd5bbf7d752ba7ad4e79c
[lldb] [test/Register] Use initial state for write tests

Reset registers to their 'initial' state instead of a semi-random
pattern in write tests.  While the latter might have been helpful
while debugging failures (i.e. to distinguish unmodified registers
from mistakenly written zeroes), the former makes it possible to test
whether xstate_bv field is written correctly when using XSAVE.

With this change, the four relevant tests start failing on NetBSD
without D90105.

Differential Revision: https://reviews.llvm.org/D90114
lldb/test/Shell/Register/Inputs/x86-64-write.cpp
lldb/test/Shell/Register/Inputs/x86-mm-xmm-write.cpp
lldb/test/Shell/Register/Inputs/x86-ymm-write.cpp
lldb/test/Shell/Register/Inputs/x86-zmm-write.cpp