diff --git a/llvm/utils/UpdateTestChecks/asm.py b/llvm/utils/UpdateTestChecks/asm.py --- a/llvm/utils/UpdateTestChecks/asm.py +++ b/llvm/utils/UpdateTestChecks/asm.py @@ -71,10 +71,11 @@ ASM_FUNCTION_M68K_RE = re.compile( r'^_?(?P[^:]+):[ \t]*;[ \t]*@"?(?P=func)"?\n' - r"(?P.*?)\s*" # (body of the function) - r".Lfunc_end[0-9]+:\n", - flags=(re.M | re.S), -) + r'(?:\.L(?P=func)\$local:\n)?' # drop .L$local: + r'(?:[ \t]+\.type[ \t]+\.L(?P=func)\$local,@function\n)?' # drop .type .L$local,@function + r'(?P.*?)\s*' # (body of the function) + r'.Lfunc_end[0-9]+:\n', + flags=(re.M | re.S)) ASM_FUNCTION_MIPS_RE = re.compile( r'^_?(?P[^:]+):[ \t]*#+[ \t]*@"?(?P=func)"?\n[^:]*?' # f: (name of func)