From: Alex Bradbury Date: Mon, 8 Jul 2019 08:34:16 +0000 (+0000) Subject: [UpdateTestChecks] Skip over .Lfunc_begin for RISC-V X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9d88176dda14139dcccc2691d6de9fe68a5aa7c8;p=llvm [UpdateTestChecks] Skip over .Lfunc_begin for RISC-V This mirrors the change made for X86 in rL336987. Without this patch, update_llc_test_checks will completely skip functions with personality functions. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@365297 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/utils/UpdateTestChecks/asm.py b/utils/UpdateTestChecks/asm.py index 2dc174e0b4d..9c250cd9898 100644 --- a/utils/UpdateTestChecks/asm.py +++ b/utils/UpdateTestChecks/asm.py @@ -71,7 +71,7 @@ ASM_FUNCTION_PPC_RE = re.compile( flags=(re.M | re.S)) ASM_FUNCTION_RISCV_RE = re.compile( - r'^_?(?P[^:]+):[ \t]*#+[ \t]*@(?P=func)\n[^:]*?' + r'^_?(?P[^:]+):[ \t]*#+[ \t]*@(?P=func)\n(?:\s*\.?Lfunc_begin[^:\n]*:\n)?[^:]*?' r'(?P^##?[ \t]+[^:]+:.*?)\s*' r'.Lfunc_end[0-9]+:\n', flags=(re.M | re.S))