From 0a72bfbfdc8db9c5904511ff4f56e8f4ac92d97f Mon Sep 17 00:00:00 2001 From: Matt Arsenault <Matthew.Arsenault@amd.com> Date: Fri, 14 Jun 2019 20:40:15 +0000 Subject: [PATCH] UpdateTestChecks: Consider .section as end of function for AMDGPU Kernels seem to go directly to a section switch instead of emitting .Lfunc_end. This fixes including all of the kernel metadata in the check lines, which is undesirable most of the time. llvm-svn: 363452 --- llvm/utils/UpdateTestChecks/asm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/utils/UpdateTestChecks/asm.py b/llvm/utils/UpdateTestChecks/asm.py index a27cd04205b3..208deb79171e 100644 --- a/llvm/utils/UpdateTestChecks/asm.py +++ b/llvm/utils/UpdateTestChecks/asm.py @@ -39,7 +39,7 @@ ASM_FUNCTION_AMDGPU_RE = re.compile( r'^_?(?P<func>[^:]+):[ \t]*;+[ \t]*@(?P=func)\n[^:]*?' r'(?P<body>.*?)\n' # (body of the function) # This list is incomplete - r'.Lfunc_end[0-9]+:\n', + r'^\s*(\.Lfunc_end[0-9]+:\n|\.section)', flags=(re.M | re.S)) ASM_FUNCTION_HEXAGON_RE = re.compile(