From d38bae3c773f0fda578097dc5a35114a83cfc2af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Manuel=20Martinez=20Caama=C3=B1o?= Date: Fri, 9 Aug 2024 09:33:31 +0200 Subject: [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 " after the ".type ,@function" entry which was not considered by the regexp. --- llvm/utils/UpdateTestChecks/asm.py | 1 + 1 file changed, 1 insertion(+) (limited to 'llvm/utils/UpdateTestChecks/asm.py') 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[^,\n]+),@function\n" + r"(^\s*\.amdgpu_hsa_kernel (?P=func)\n)?" r'^_?(?P=func):(?:[ \t]*;+[ \t]*@"?(?P=func)"?)?\n' r"(?P.*?)\n" # (body of the function) # This list is incomplete -- cgit v1.1