Skip to content

Commit 2f62803

Browse files
committed
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<function name>$local: - .type .L<function name>$local,@function Reviewed By: myhsu Differential Revision: https://reviews.llvm.org/D151526
1 parent 41f8b6f commit 2f62803

File tree

1 file changed

+5
-4
lines changed
  • llvm/utils/UpdateTestChecks

1 file changed

+5
-4
lines changed

llvm/utils/UpdateTestChecks/asm.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,11 @@ class string:
7171

7272
ASM_FUNCTION_M68K_RE = re.compile(
7373
r'^_?(?P<func>[^:]+):[ \t]*;[ \t]*@"?(?P=func)"?\n'
74-
r"(?P<body>.*?)\s*" # (body of the function)
75-
r".Lfunc_end[0-9]+:\n",
76-
flags=(re.M | re.S),
77-
)
74+
r'(?:\.L(?P=func)\$local:\n)?' # drop .L<func>$local:
75+
r'(?:[ \t]+\.type[ \t]+\.L(?P=func)\$local,@function\n)?' # drop .type .L<func>$local,@function
76+
r'(?P<body>.*?)\s*' # (body of the function)
77+
r'.Lfunc_end[0-9]+:\n',
78+
flags=(re.M | re.S))
7879

7980
ASM_FUNCTION_MIPS_RE = re.compile(
8081
r'^_?(?P<func>[^:]+):[ \t]*#+[ \t]*@"?(?P=func)"?\n[^:]*?' # f: (name of func)

0 commit comments

Comments
 (0)