From 294a196b0488c737544411bf570f4aa2a23f727e Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Wed, 30 Dec 2020 11:59:36 -0800 Subject: [update_llc_test_checks] Support .Lfunc$local for x86 -relocation-model=pic dsolocal tests --- llvm/utils/UpdateTestChecks/asm.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'llvm/utils/UpdateTestChecks/asm.py') diff --git a/llvm/utils/UpdateTestChecks/asm.py b/llvm/utils/UpdateTestChecks/asm.py index 839b727..7cfd318 100644 --- a/llvm/utils/UpdateTestChecks/asm.py +++ b/llvm/utils/UpdateTestChecks/asm.py @@ -15,7 +15,9 @@ else: ##### Assembly parser ASM_FUNCTION_X86_RE = re.compile( - r'^_?(?P[^:]+):[ \t]*#+[ \t]*(@"?(?P=func)"?| -- Begin function (?P=func))\n(?:\s*\.?Lfunc_begin[^:\n]*:\n)?[^:]*?' + r'^_?(?P[^:]+):[ \t]*#+[ \t]*(@"?(?P=func)"?| -- Begin function (?P=func))\n(?:\s*\.?Lfunc_begin[^:\n]*:\n)?' + r'(?:\.L[^$]+\$local:\n)?' # drop .L$local: + r'(?:[ \t]+.cfi_startproc\n)?' # drop optional cfi noise r'(?P^##?[ \t]+[^:]+:.*?)\s*' r'^\s*(?:[^:\n]+?:\s*\n\s*\.size|\.cfi_endproc|\.globl|\.comm|\.(?:sub)?section|#+ -- End function)', flags=(re.M | re.S)) -- cgit v1.1