aboutsummaryrefslogtreecommitdiff
path: root/llvm/utils/UpdateTestChecks/asm.py
diff options
context:
space:
mode:
authorSheng <ox59616e@gmail.com>2023-06-03 18:05:23 +0800
committerSheng <ox59616e@gmail.com>2023-06-03 19:09:47 +0800
commit2f62803ea458f83dcfc307cffa7f1ebf09eb9655 (patch)
tree5f6990e0ec45d694f01971ac6ef634725d263e45 /llvm/utils/UpdateTestChecks/asm.py
parent41f8b6fe74a916937a23e6f3f7655ff3f9101185 (diff)
downloadllvm-2f62803ea458f83dcfc307cffa7f1ebf09eb9655.zip
llvm-2f62803ea458f83dcfc307cffa7f1ebf09eb9655.tar.gz
llvm-2f62803ea458f83dcfc307cffa7f1ebf09eb9655.tar.bz2
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
Diffstat (limited to 'llvm/utils/UpdateTestChecks/asm.py')
-rw-r--r--llvm/utils/UpdateTestChecks/asm.py9
1 files changed, 5 insertions, 4 deletions
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<func>[^:]+):[ \t]*;[ \t]*@"?(?P=func)"?\n'
- r"(?P<body>.*?)\s*" # (body of the function)
- r".Lfunc_end[0-9]+:\n",
- flags=(re.M | re.S),
-)
+ r'(?:\.L(?P=func)\$local:\n)?' # drop .L<func>$local:
+ r'(?:[ \t]+\.type[ \t]+\.L(?P=func)\$local,@function\n)?' # drop .type .L<func>$local,@function
+ r'(?P<body>.*?)\s*' # (body of the function)
+ r'.Lfunc_end[0-9]+:\n',
+ flags=(re.M | re.S))
ASM_FUNCTION_MIPS_RE = re.compile(
r'^_?(?P<func>[^:]+):[ \t]*#+[ \t]*@"?(?P=func)"?\n[^:]*?' # f: (name of func)