diff options
author | Alex Richardson <Alexander.Richardson@cl.cam.ac.uk> | 2020-08-24 18:56:02 +0100 |
---|---|---|
committer | Alex Richardson <Alexander.Richardson@cl.cam.ac.uk> | 2020-08-25 12:20:33 +0100 |
commit | 3221c248d940d6355ad8d0ff35194fd6b87ef87f (patch) | |
tree | edcbbc0a2ea4f630ca81b01e587798282b9bf3b3 /llvm/utils/UpdateTestChecks/asm.py | |
parent | 39d25064614fb87dcb934739af987c8f66068be2 (diff) | |
download | llvm-3221c248d940d6355ad8d0ff35194fd6b87ef87f.zip llvm-3221c248d940d6355ad8d0ff35194fd6b87ef87f.tar.gz llvm-3221c248d940d6355ad8d0ff35194fd6b87ef87f.tar.bz2 |
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
Diffstat (limited to 'llvm/utils/UpdateTestChecks/asm.py')
-rw-r--r-- | llvm/utils/UpdateTestChecks/asm.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/utils/UpdateTestChecks/asm.py b/llvm/utils/UpdateTestChecks/asm.py index 84db014..588a287 100644 --- a/llvm/utils/UpdateTestChecks/asm.py +++ b/llvm/utils/UpdateTestChecks/asm.py @@ -78,7 +78,9 @@ ASM_FUNCTION_PPC_RE = re.compile( 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)) |