[Lldb-commits] [PATCH] D13608: [TestValueOfVectorVariable] Reduce the vector size to 4.

Siva Chandra via lldb-commits lldb-commits at lists.llvm.org
Fri Oct 9 14:51:14 PDT 2015


sivachandra created this revision.
sivachandra added a reviewer: mohit.bhakkad.
sivachandra added a subscriber: lldb-commits.

On x86, we only have 4 watchpoint registers.

http://reviews.llvm.org/D13608

Files:
  test/functionalities/watchpoint/watchpoint_on_vectors/TestValueOfVectorVariable.py
  test/functionalities/watchpoint/watchpoint_on_vectors/main.c

Index: test/functionalities/watchpoint/watchpoint_on_vectors/main.c
===================================================================
--- test/functionalities/watchpoint/watchpoint_on_vectors/main.c
+++ test/functionalities/watchpoint/watchpoint_on_vectors/main.c
@@ -6,9 +6,11 @@
 // License. See LICENSE.TXT for details.
 //
 //===----------------------------------------------------------------------===//
-typedef short v8i16 __attribute__ ((vector_size(16)));
-v8i16 global_vector = {1, 2, 3, 4, 5, 6, 7, 8};
+typedef char v4i8 __attribute__ ((vector_size(4)));
+v4i8 global_vector = {1, 2, 3, 4};
 
-int main()
+int
+main ()
 {
+  return 0;
 }
Index: test/functionalities/watchpoint/watchpoint_on_vectors/TestValueOfVectorVariable.py
===================================================================
--- test/functionalities/watchpoint/watchpoint_on_vectors/TestValueOfVectorVariable.py
+++ test/functionalities/watchpoint/watchpoint_on_vectors/TestValueOfVectorVariable.py
@@ -47,7 +47,7 @@
 
         # Value of a vector variable should be displayed correctly
         self.expect("watchpoint set variable global_vector", WATCHPOINT_CREATED,
-            substrs = ['new value: (1, 2, 3, 4, 5, 6, 7, 8)'])
+            substrs = ['new value: (1, 2, 3, 4)'])
 
 if __name__ == '__main__':
     import atexit


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D13608.36994.patch
Type: text/x-patch
Size: 1319 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20151009/45fc6269/attachment.bin>


More information about the lldb-commits mailing list