diff options
author | Alex Richardson <alexrichardson@google.com> | 2022-08-24 13:48:11 +0000 |
---|---|---|
committer | Alex Richardson <alexrichardson@google.com> | 2022-08-24 14:16:20 +0000 |
commit | 2616e00949b18f5bd1223cb6054f7ad8ffa7e9c8 (patch) | |
tree | e52b129355138bb910fe5fd38bcf8bce707bce2b /llvm/utils/UpdateTestChecks/asm.py | |
parent | 2cdf4225aab6976569127406ed917d4a0d826278 (diff) | |
download | llvm-2616e00949b18f5bd1223cb6054f7ad8ffa7e9c8.zip llvm-2616e00949b18f5bd1223cb6054f7ad8ffa7e9c8.tar.gz llvm-2616e00949b18f5bd1223cb6054f7ad8ffa7e9c8.tar.bz2 |
[update_llc_test_checks][VE] Handle .Lfoo$local in function regex
While working on https://reviews.llvm.org/D131429, I got a test diff in
one of the VE tests and running update_llc_test_checks.py deleted all the
code for that function. This updates the regex to handle this new output.
Reviewed By: kaz7
Differential Revision: https://reviews.llvm.org/D131431
Diffstat (limited to 'llvm/utils/UpdateTestChecks/asm.py')
-rw-r--r-- | llvm/utils/UpdateTestChecks/asm.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/utils/UpdateTestChecks/asm.py b/llvm/utils/UpdateTestChecks/asm.py index 7e3bfdc..db853ea 100644 --- a/llvm/utils/UpdateTestChecks/asm.py +++ b/llvm/utils/UpdateTestChecks/asm.py @@ -170,6 +170,9 @@ ASM_FUNCTION_WASM32_RE = re.compile( ASM_FUNCTION_VE_RE = re.compile( 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*\.type\s+\.?L(?P=func)\$local,@function\n)?' # optional .type .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)) |