diff --git a/llvm/utils/UpdateTestChecks/asm.py b/llvm/utils/UpdateTestChecks/asm.py index 3754aa2eeba85..ee70d837d7b7a 100644 --- a/llvm/utils/UpdateTestChecks/asm.py +++ b/llvm/utils/UpdateTestChecks/asm.py @@ -32,7 +32,7 @@ class string: ) ASM_FUNCTION_ARM_RE = re.compile( - r'^(?P[0-9a-zA-Z_$]+):[ \t]*@+[ \t]*@"?(?P=func)"?\n' # f: (name of function) + r'^(?P[0-9a-zA-Z_$]+):[ \t]*(@+[ \t]*@"?(?P=func)"?)?\n' # f: (name of function) r"(?:\.L(?P=func)\$local:\n)?" # drop .L$local: r"(?:\s*\.type\s+\.L(?P=func)\$local,@function\n)?" # drop .type .L$local r"\s+\.fnstart\n" # .fnstart