[llvm] 3221c24 - Fix update_llc_test_checks function regex for RV64
Alex Richardson via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 25 04:21:52 PDT 2020
Author: Alex Richardson
Date: 2020-08-25T12:20:33+01:00
New Revision: 3221c248d940d6355ad8d0ff35194fd6b87ef87f
URL: https://github.com/llvm/llvm-project/commit/3221c248d940d6355ad8d0ff35194fd6b87ef87f
DIFF: https://github.com/llvm/llvm-project/commit/3221c248d940d6355ad8d0ff35194fd6b87ef87f.diff
LOG: Fix update_llc_test_checks function regex for RV64
Some functions also include a `.Lfunc$local:` label due to
-fno-semantic-interposition
Reviewed By: MaskRay
Differential Revision: https://reviews.llvm.org/D85888
Added:
Modified:
llvm/utils/UpdateTestChecks/asm.py
Removed:
################################################################################
diff --git a/llvm/utils/UpdateTestChecks/asm.py b/llvm/utils/UpdateTestChecks/asm.py
index 84db0145e947..588a2870b989 100644
--- a/llvm/utils/UpdateTestChecks/asm.py
+++ b/llvm/utils/UpdateTestChecks/asm.py
@@ -78,7 +78,9 @@ class string:
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: due to -fno-semantic-interposition
+ r'(?:\s*\.?Lfunc_begin[^:\n]*:\n)?[^:]*?'
r'(?P<body>^##?[ \t]+[^:]+:.*?)\s*'
r'.Lfunc_end[0-9]+:\n',
flags=(re.M | re.S))
More information about the llvm-commits
mailing list