From 2f62803ea458f83dcfc307cffa7f1ebf09eb9655 Mon Sep 17 00:00:00 2001 From: Sheng Date: Sat, 3 Jun 2023 18:05:23 +0800 Subject: coach UpdateTestChecks to filter out certain symbol aliases for m68k This patch coaches UpdateTestChecks to filter out these symbol aliases in llc test for m68k - .L$local: - .type .L$local,@function Reviewed By: myhsu Differential Revision: https://reviews.llvm.org/D151526 --- llvm/utils/UpdateTestChecks/asm.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'llvm/utils/UpdateTestChecks/asm.py') diff --git a/llvm/utils/UpdateTestChecks/asm.py b/llvm/utils/UpdateTestChecks/asm.py index 72ff67b..3357906 100644 --- a/llvm/utils/UpdateTestChecks/asm.py +++ b/llvm/utils/UpdateTestChecks/asm.py @@ -71,10 +71,11 @@ ASM_FUNCTION_HEXAGON_RE = re.compile( 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) -- cgit v1.1