[lldb] Add missing changes to a2363c0cf9

Completely forgot to actually update the change before relanding it.
This adds the Darwin AVX changes.
This commit is contained in:
David Spickett 2021-06-14 09:23:05 +00:00
parent a2363c0cf9
commit 0f94d68a2e
1 changed files with 6 additions and 1 deletions

View File

@ -402,8 +402,13 @@ class RegisterCommandsTestCase(TestBase):
# Returns an SBValueList.
registerSets = currentFrame.GetRegisters()
for registerSet in registerSets:
if 'advanced vector extensions' in registerSet.GetName().lower():
set_name = registerSet.GetName().lower()
if 'advanced vector extensions' in set_name:
has_avx = True
# Darwin reports AVX registers as part of "Floating Point Registers"
else if self.platformIsDarwin() and 'floating point registers' in set_name:
has_avx = registerSet.GetFirstValueByName('ymm0').IsValid()
# FreeBSD/NetBSD reports missing register sets differently
# at the moment and triggers false positive here.
# TODO: remove FreeBSD/NetBSD exception when we make unsupported