summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAshok Thirumurthi <ashok.thirumurthi@intel.com>2013-05-14 13:34:25 +0000
committerAshok Thirumurthi <ashok.thirumurthi@intel.com>2013-05-14 13:34:25 +0000
commitb5209bd8750ccf1b47ef2678df3ebe1ebdd67a15 (patch)
treec6a4515e090b5ad4d883a3a485d97d427fa72c27
parentb33790d898e7c624874277b7bb796936b98efbd7 (diff)
downloadbcm5719-llvm-b5209bd8750ccf1b47ef2678df3ebe1ebdd67a15.tar.gz
bcm5719-llvm-b5209bd8750ccf1b47ef2678df3ebe1ebdd67a15.zip
Avoid $rax for 32-bit inferiors to fix a failing i386 test on the darwin buildbots.
llvm-svn: 181789
-rw-r--r--lldb/test/functionalities/register/TestRegisters.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/lldb/test/functionalities/register/TestRegisters.py b/lldb/test/functionalities/register/TestRegisters.py
index 153de03e3e3..8789390b300 100644
--- a/lldb/test/functionalities/register/TestRegisters.py
+++ b/lldb/test/functionalities/register/TestRegisters.py
@@ -189,8 +189,9 @@ class RegisterCommandsTestCase(TestBase):
self.expect("expr/x $eax",
substrs = ['unsigned int', ' = 0x'])
- self.expect("expr -- ($rax & 0xffffffff) == $eax",
- substrs = ['true'])
+ if self.getArchitecture() in ['x86_64']:
+ self.expect("expr -- ($rax & 0xffffffff) == $eax",
+ substrs = ['true'])
self.expect("expr $xmm0",
substrs = ['vector_type'])
@@ -235,8 +236,9 @@ class RegisterCommandsTestCase(TestBase):
# Check that "register read eax" works.
self.runCmd("register read eax")
- self.expect("expr -- ($rax & 0xffffffff) == $eax",
- substrs = ['true'])
+ if self.getArchitecture() in ['x86_64']:
+ self.expect("expr -- ($rax & 0xffffffff) == $eax",
+ substrs = ['true'])
self.expect("expr -- $ax == (($ah << 8) | $al)",
substrs = ['true'])
OpenPOWER on IntegriCloud