summaryrefslogtreecommitdiffstats
path: root/llvm/utils/UpdateTestChecks/asm.py
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2019-06-14 20:40:15 +0000
committerMatt Arsenault <Matthew.Arsenault@amd.com>2019-06-14 20:40:15 +0000
commit0a72bfbfdc8db9c5904511ff4f56e8f4ac92d97f (patch)
tree45f80b87d93496163fda655cf6ae770167cb5bbf /llvm/utils/UpdateTestChecks/asm.py
parent545a9fe1063d29de6a2ac81c1abf0eda32a28398 (diff)
downloadbcm5719-llvm-0a72bfbfdc8db9c5904511ff4f56e8f4ac92d97f.tar.gz
bcm5719-llvm-0a72bfbfdc8db9c5904511ff4f56e8f4ac92d97f.zip
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
Diffstat (limited to 'llvm/utils/UpdateTestChecks/asm.py')
-rw-r--r--llvm/utils/UpdateTestChecks/asm.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/utils/UpdateTestChecks/asm.py b/llvm/utils/UpdateTestChecks/asm.py
index a27cd04205b..208deb79171 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(
OpenPOWER on IntegriCloud