[llvm] 314dc33 - [Utils] Fix AArch64 ASM regex after #148287 (#156460)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 2 07:48:09 PDT 2025
Author: Benjamin Maxwell
Date: 2025-09-02T14:48:04Z
New Revision: 314dc33e4dccda18661472956f1990389db111d3
URL: https://github.com/llvm/llvm-project/commit/314dc33e4dccda18661472956f1990389db111d3
DIFF: https://github.com/llvm/llvm-project/commit/314dc33e4dccda18661472956f1990389db111d3.diff
LOG: [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.
Added:
Modified:
llvm/utils/UpdateTestChecks/asm.py
Removed:
################################################################################
diff --git a/llvm/utils/UpdateTestChecks/asm.py b/llvm/utils/UpdateTestChecks/asm.py
index 27b2aa8d0bdbe..570dbd081eb79 100644
--- a/llvm/utils/UpdateTestChecks/asm.py
+++ b/llvm/utils/UpdateTestChecks/asm.py
@@ -46,7 +46,7 @@ class string:
r"(?:[ \t]+.cfi_startproc\n)?" # drop optional cfi noise
r"(?P<body>.*?)"
# This list is incomplete
- r"^(\.Lfunc_end[0-9]+:|// -- End function)",
+ r"^\s*(\.Lfunc_end[0-9]+:|// -- End function)",
flags=(re.M | re.S),
)
More information about the llvm-commits
mailing list