[Lldb-commits] [lldb] [lldb] Display GDB remote register vector values (PR #222724)
David Spickett via lldb-commits
lldb-commits at lists.llvm.org
Fri Sep 11 02:55:39 PDT 2026
================
@@ -408,3 +408,68 @@ def test_big_endian_vector_sb_api(self):
vector = frame.FindRegister(name)
self.assert_float_children(vector, [1.5, 2.5])
self.assertEqual(vector.Cast(ull).GetValueAsUnsigned(), 0x3FC0000040200000)
+
+ @skipIfXmlSupportMissing
+ @skipIfRemote
+ def test_direct_vector_cli(self):
+ self.setup_register_test(
+ """\
+ <vector id="v4f" type="ieee_single" count="4"/>
+ <reg name="v0" regnum="0" bitsize="128" type="v4f"/>
+ <reg name="pc" bitsize="64"/>""",
+ "0000c03f000020400000604000009040" + "00" * 8,
+ )
+
+ self.expect(
+ "register read v0",
+ patterns=[
+ r"v0 = \{0x00 0x00 0xc0 0x3f 0x00 0x00 0x20 0x40 "
+ r"0x00 0x00 0x60 0x40 0x00 0x00 0x90 0x40\}\r?\n"
----------------
DavidSpickett wrote:
Did you find a case where you needed to check for `\r`, or another test doing it?
Whenever I've done this I've just matched `\n`, and been able to use `substrs=[` for it because of that.
https://github.com/llvm/llvm-project/pull/222724
More information about the lldb-commits
mailing list