aboutsummaryrefslogtreecommitdiff
path: root/llvm/utils/UpdateTestChecks/asm.py
diff options
context:
space:
mode:
authorJuan Manuel Martinez CaamaƱo <juamarti@amd.com>2024-08-09 09:33:31 +0200
committerGitHub <noreply@github.com>2024-08-09 09:33:31 +0200
commitd38bae3c773f0fda578097dc5a35114a83cfc2af (patch)
tree92b9bf7a9bafb954aceb2f2c141599b89bff16ea /llvm/utils/UpdateTestChecks/asm.py
parenta9e75b1d4d18d09a63f120df4781013c1866b4ff (diff)
downloadllvm-d38bae3c773f0fda578097dc5a35114a83cfc2af.zip
llvm-d38bae3c773f0fda578097dc5a35114a83cfc2af.tar.gz
llvm-d38bae3c773f0fda578097dc5a35114a83cfc2af.tar.bz2
[update_llc_test_checks][AMDGPU] Update AMDGPU regexp in update_llc_test_checks.py (#102480)
Updating `llvm/test/CodeGen/AMDGPU/GlobalISel/extractelement.ll` with `update_llc_test_checks.py` ended with several kernels with no checks. Llc's output contained the line ".amdgpu_hsa_kernel <funcname>" after the ".type <funcname>,@function" entry which was not considered by the regexp.
Diffstat (limited to 'llvm/utils/UpdateTestChecks/asm.py')
-rw-r--r--llvm/utils/UpdateTestChecks/asm.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/utils/UpdateTestChecks/asm.py b/llvm/utils/UpdateTestChecks/asm.py
index f150098..f05d8b8 100644
--- a/llvm/utils/UpdateTestChecks/asm.py
+++ b/llvm/utils/UpdateTestChecks/asm.py
@@ -52,6 +52,7 @@ ASM_FUNCTION_AARCH64_RE = re.compile(
ASM_FUNCTION_AMDGPU_RE = re.compile(
r"\.type\s+_?(?P<func>[^,\n]+),@function\n"
+ r"(^\s*\.amdgpu_hsa_kernel (?P=func)\n)?"
r'^_?(?P=func):(?:[ \t]*;+[ \t]*@"?(?P=func)"?)?\n'
r"(?P<body>.*?)\n" # (body of the function)
# This list is incomplete