[PATCH] D151526: coach UpdateTestChecks to filter out certain symbol aliases for m68k

Sheng via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Jun 3 04:10:24 PDT 2023


This revision was automatically updated to reflect the committed changes.
Closed by commit rG2f62803ea458: coach UpdateTestChecks to filter out certain symbol aliases for m68k (authored by 0x59616e).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D151526/new/

https://reviews.llvm.org/D151526

Files:
  llvm/utils/UpdateTestChecks/asm.py


Index: llvm/utils/UpdateTestChecks/asm.py
===================================================================
--- llvm/utils/UpdateTestChecks/asm.py
+++ llvm/utils/UpdateTestChecks/asm.py
@@ -71,10 +71,11 @@
 
 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, at function\n)?' # drop .type .L<func>$local, at 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)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D151526.528090.patch
Type: text/x-patch
Size: 801 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230603/a8b94965/attachment.bin>


More information about the llvm-commits mailing list