forked from OSchip/llvm-project
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:
parent
f115642b61
commit
06a18d7d56
|
@ -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"])
|
||||
|
|
Loading…
Reference in New Issue