[Lldb-commits] [lldb] r249916 - [TestValueOfVectorVariable] Reduce the vector size to 4.

Siva Chandra via lldb-commits lldb-commits at lists.llvm.org
Fri Oct 9 16:05:28 PDT 2015


Author: sivachandra
Date: Fri Oct  9 18:05:28 2015
New Revision: 249916

URL: http://llvm.org/viewvc/llvm-project?rev=249916&view=rev
Log:
[TestValueOfVectorVariable] Reduce the vector size to 4.

Summary: On x86, we only have 4 watchpoint registers.

Reviewers: mohit.bhakkad

Subscribers: lldb-commits

Differential Revision: http://reviews.llvm.org/D13608

Modified:
    lldb/trunk/test/functionalities/watchpoint/watchpoint_on_vectors/TestValueOfVectorVariable.py
    lldb/trunk/test/functionalities/watchpoint/watchpoint_on_vectors/main.c

Modified: lldb/trunk/test/functionalities/watchpoint/watchpoint_on_vectors/TestValueOfVectorVariable.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/watchpoint/watchpoint_on_vectors/TestValueOfVectorVariable.py?rev=249916&r1=249915&r2=249916&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/watchpoint/watchpoint_on_vectors/TestValueOfVectorVariable.py (original)
+++ lldb/trunk/test/functionalities/watchpoint/watchpoint_on_vectors/TestValueOfVectorVariable.py Fri Oct  9 18:05:28 2015
@@ -47,7 +47,7 @@ class TestValueOfVectorVariableTestCase(
 
         # 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

Modified: lldb/trunk/test/functionalities/watchpoint/watchpoint_on_vectors/main.c
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/watchpoint/watchpoint_on_vectors/main.c?rev=249916&r1=249915&r2=249916&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/watchpoint/watchpoint_on_vectors/main.c (original)
+++ lldb/trunk/test/functionalities/watchpoint/watchpoint_on_vectors/main.c Fri Oct  9 18:05:28 2015
@@ -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;
 }




More information about the lldb-commits mailing list