Updating TestAbbreviations.py to check for a reduced set of instructions when testing 'dis -f'.

Not all of the expected instructions were being generated for the function being disassembled on x86-64-based Linux.  It had no push, pop or leave.

llvm-svn: 170818
This commit is contained in:
Andrew Kaylor 2012-12-21 00:26:22 +00:00
parent f115642b61
commit 06a18d7d56
1 changed files with 2 additions and 4 deletions

View File

@ -148,11 +148,9 @@ class AbbreviationsTestCase(TestBase):
if self.getArchitecture() in ["", 'x86_64', 'i386']:
self.expect("dis -f",
startstr = "a.out`sum(int, int)",
substrs = [' push',
' mov',
substrs = [' mov',
' addl ',
'ret'],
patterns = ['(leave|popq|popl)'])
'ret'])
self.expect("i d l main.cpp",
patterns = ["Line table for .*main.cpp in `a.out"])