summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSiva Chandra <sivachandra@google.com>2015-10-09 23:05:28 +0000
committerSiva Chandra <sivachandra@google.com>2015-10-09 23:05:28 +0000
commit1fa4c1b1775256bdeec50a7339fc08d732a45f74 (patch)
tree9dfeab56692ced2c505568401d235e7eeabf4677
parentf1ff53ecc29c50b4c493225fa11f6777aafa6858 (diff)
downloadbcm5719-llvm-1fa4c1b1775256bdeec50a7339fc08d732a45f74.tar.gz
bcm5719-llvm-1fa4c1b1775256bdeec50a7339fc08d732a45f74.zip
[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 llvm-svn: 249916
-rw-r--r--lldb/test/functionalities/watchpoint/watchpoint_on_vectors/TestValueOfVectorVariable.py2
-rw-r--r--lldb/test/functionalities/watchpoint/watchpoint_on_vectors/main.c8
2 files changed, 6 insertions, 4 deletions
diff --git a/lldb/test/functionalities/watchpoint/watchpoint_on_vectors/TestValueOfVectorVariable.py b/lldb/test/functionalities/watchpoint/watchpoint_on_vectors/TestValueOfVectorVariable.py
index aae807e80f0..4aa07edad49 100644
--- a/lldb/test/functionalities/watchpoint/watchpoint_on_vectors/TestValueOfVectorVariable.py
+++ b/lldb/test/functionalities/watchpoint/watchpoint_on_vectors/TestValueOfVectorVariable.py
@@ -47,7 +47,7 @@ class TestValueOfVectorVariableTestCase(TestBase):
# 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
diff --git a/lldb/test/functionalities/watchpoint/watchpoint_on_vectors/main.c b/lldb/test/functionalities/watchpoint/watchpoint_on_vectors/main.c
index 95f7fc2fc1b..98f8c477eb3 100644
--- a/lldb/test/functionalities/watchpoint/watchpoint_on_vectors/main.c
+++ b/lldb/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;
}
OpenPOWER on IntegriCloud