[llvm] [Utils] Fix AArch64 ASM regex after #148287 (PR #156460)
Benjamin Maxwell via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 2 07:14:19 PDT 2025
https://github.com/MacDue created https://github.com/llvm/llvm-project/pull/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.
>From c9f2c50c375bd141d043239e2a3a9988b5032153 Mon Sep 17 00:00:00 2001
From: Benjamin Maxwell <benjamin.maxwell at arm.com>
Date: Tue, 2 Sep 2025 14:12:56 +0000
Subject: [PATCH] [Utils] Fix AArch64 ASM regex after #148287
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.
---
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 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