[PATCH] D85888: Fix update_llc_test_checks function regex for RV64

Alexander Richardson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 13 03:04:12 PDT 2020


arichardson created this revision.
arichardson added a reviewer: MaskRay.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
arichardson requested review of this revision.

Some functions also include a `.Lfunc$local:` label


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D85888

Files:
  llvm/utils/UpdateTestChecks/asm.py


Index: llvm/utils/UpdateTestChecks/asm.py
===================================================================
--- llvm/utils/UpdateTestChecks/asm.py
+++ llvm/utils/UpdateTestChecks/asm.py
@@ -78,7 +78,9 @@
     flags=(re.M | re.S))
 
 ASM_FUNCTION_RISCV_RE = re.compile(
-    r'^_?(?P<func>[^:]+):[ \t]*#+[ \t]*@(?P=func)\n(?:\s*\.?Lfunc_begin[^:\n]*:\n)?[^:]*?'
+    r'^_?(?P<func>[^:]+):[ \t]*#+[ \t]*@(?P=func)\n'
+    r'(?:\s*\.?L(?P=func)\$local:\n)?'  # optional .L<func>$local:
+    r'(?:\s*\.?Lfunc_begin[^:\n]*:\n)?[^:]*?'
     r'(?P<body>^##?[ \t]+[^:]+:.*?)\s*'
     r'.Lfunc_end[0-9]+:\n',
     flags=(re.M | re.S))


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D85888.285300.patch
Type: text/x-patch
Size: 628 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200813/d62348d6/attachment-0001.bin>


More information about the llvm-commits mailing list