Skip to content

Commit 314dc33

Browse files
authored
[Utils] Fix AArch64 ASM regex after #148287 (#156460)
PR #148287 removed the "\s*" before ".Lfunc_end" for AArch64, which broke `update_llc_test_checks.py` for a number of tests including: - `llvm/test/CodeGen/AArch64/sme-za-exceptions.ll` - `llvm/test/CodeGen/AArch64/win-sve.ll` This patch adds the "\s*" back.
1 parent 569d738 commit 314dc33

File tree

1 file changed

+1
-1
lines changed
  • llvm/utils/UpdateTestChecks

1 file changed

+1
-1
lines changed

llvm/utils/UpdateTestChecks/asm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class string:
4646
r"(?:[ \t]+.cfi_startproc\n)?" # drop optional cfi noise
4747
r"(?P<body>.*?)"
4848
# This list is incomplete
49-
r"^(\.Lfunc_end[0-9]+:|// -- End function)",
49+
r"^\s*(\.Lfunc_end[0-9]+:|// -- End function)",
5050
flags=(re.M | re.S),
5151
)
5252

0 commit comments

Comments
 (0)