summaryrefslogtreecommitdiffstats
path: root/llvm/utils/UpdateTestChecks/asm.py
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2018-07-13 10:29:23 +0000
committerChandler Carruth <chandlerc@gmail.com>2018-07-13 10:29:23 +0000
commitd86aad699defc0be37ca25971df728a1ce8575ac (patch)
treea4655a572021e1df9e54109c9e7c3db7074692ba /llvm/utils/UpdateTestChecks/asm.py
parent1151692ec5526a93788f804da68320e867b9f45c (diff)
downloadbcm5719-llvm-d86aad699defc0be37ca25971df728a1ce8575ac.tar.gz
bcm5719-llvm-d86aad699defc0be37ca25971df728a1ce8575ac.zip
[UpdateTestChecks] Teach the x86 asm parser to skip over the function
begin label emitted for some routines with personality functions and such. Without this, we don't even recognize such functions as appearing in the output and so don't attach any assertions to them. Happy to tweak this or improve it if folks w/ deeper knowledge of the asm sequences that show up here want. llvm-svn: 336987
Diffstat (limited to 'llvm/utils/UpdateTestChecks/asm.py')
-rw-r--r--llvm/utils/UpdateTestChecks/asm.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/utils/UpdateTestChecks/asm.py b/llvm/utils/UpdateTestChecks/asm.py
index 6bdaaa46ca5..e3f148934aa 100644
--- a/llvm/utils/UpdateTestChecks/asm.py
+++ b/llvm/utils/UpdateTestChecks/asm.py
@@ -14,7 +14,7 @@ else:
##### Assembly parser
ASM_FUNCTION_X86_RE = re.compile(
- r'^_?(?P<func>[^:]+):[ \t]*#+[ \t]*@(?P=func)\n[^:]*?'
+ r'^_?(?P<func>[^:]+):[ \t]*#+[ \t]*@(?P=func)\n(?:\s*.Lfunc_begin[^:\n]*:\n)?[^:]*?'
r'(?P<body>^##?[ \t]+[^:]+:.*?)\s*'
r'^\s*(?:[^:\n]+?:\s*\n\s*\.size|\.cfi_endproc|\.globl|\.comm|\.(?:sub)?section|#+ -- End function)',
flags=(re.M | re.S))
OpenPOWER on IntegriCloud