diff options
author | woruyu <99597449+woruyu@users.noreply.github.com> | 2025-07-30 15:01:33 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-07-30 08:01:33 +0100 |
commit | d3b2bda19c8074d0f2e867ee82a90b52734f5bc4 (patch) | |
tree | 408e3599097da599d3e99da657e47818f3ae1752 /llvm | |
parent | 957ae8ad46d401b4e263bf786b1eafde06894125 (diff) | |
download | llvm-d3b2bda19c8074d0f2e867ee82a90b52734f5bc4.zip llvm-d3b2bda19c8074d0f2e867ee82a90b52734f5bc4.tar.gz llvm-d3b2bda19c8074d0f2e867ee82a90b52734f5bc4.tar.bz2 |
[utils][UpdateTestChecks] update_llc_test_checks.py - armv7-apple-darwin triple no longer working (#150906)
### Summary
This PR resolves https://github.com/llvm/llvm-project/issues/150207
Diffstat (limited to 'llvm')
-rw-r--r-- | llvm/test/CodeGen/ARM/fcopysign.ll | 1 | ||||
-rw-r--r-- | llvm/utils/UpdateTestChecks/asm.py | 8 |
2 files changed, 4 insertions, 5 deletions
diff --git a/llvm/test/CodeGen/ARM/fcopysign.ll b/llvm/test/CodeGen/ARM/fcopysign.ll index b183418..dbebe44 100644 --- a/llvm/test/CodeGen/ARM/fcopysign.ll +++ b/llvm/test/CodeGen/ARM/fcopysign.ll @@ -85,6 +85,7 @@ define float @test4() nounwind { ; SOFT-NEXT: vadd.f32 d0, d0, d16 ; SOFT-NEXT: vmov r0, s0 ; SOFT-NEXT: pop {lr} +; SOFT-NEXT: bx lr ; ; HARD-LABEL: test4: ; HARD: @ %bb.0: @ %entry diff --git a/llvm/utils/UpdateTestChecks/asm.py b/llvm/utils/UpdateTestChecks/asm.py index c2829c1..98b4b5d 100644 --- a/llvm/utils/UpdateTestChecks/asm.py +++ b/llvm/utils/UpdateTestChecks/asm.py @@ -165,12 +165,10 @@ ASM_FUNCTION_AARCH64_DARWIN_RE = re.compile( ) ASM_FUNCTION_ARM_DARWIN_RE = re.compile( - r"@[ \t]--[ \t]Begin[ \t]function[ \t](?P<func>[^ \t]+?)\n" - r"^[ \t]*\.globl[ \t]*_(?P=func)[ \t]*" + r"^[ \t]*\.globl[ \t]*_(?P<func>[^ \t]+)[ \t]*\@[ \t]*--[ \t]Begin[ \t]function[ \t](?P=func)\n" r"(?P<directives>.*?)" - r"^_(?P=func):\n[ \t]*" - r"(?P<body>.*?)" - r"^[ \t]*@[ \t]--[ \t]End[ \t]function", + r"^_(?P=func):.*?\n" + r"(?P<body>.*?)(?=^[ \t]*@[ \t]--[ \t]End[ \t]function)", flags=(re.M | re.S), ) |