Skip to content

Commit d3b2bda

Browse files
authored
[utils][UpdateTestChecks] update_llc_test_checks.py - armv7-apple-darwin triple no longer working (#150906)
### Summary This PR resolves #150207
1 parent 957ae8a commit d3b2bda

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

llvm/test/CodeGen/ARM/fcopysign.ll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ define float @test4() nounwind {
8585
; SOFT-NEXT: vadd.f32 d0, d0, d16
8686
; SOFT-NEXT: vmov r0, s0
8787
; SOFT-NEXT: pop {lr}
88+
; SOFT-NEXT: bx lr
8889
;
8990
; HARD-LABEL: test4:
9091
; HARD: @ %bb.0: @ %entry

llvm/utils/UpdateTestChecks/asm.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -165,12 +165,10 @@ class string:
165165
)
166166

167167
ASM_FUNCTION_ARM_DARWIN_RE = re.compile(
168-
r"@[ \t]--[ \t]Begin[ \t]function[ \t](?P<func>[^ \t]+?)\n"
169-
r"^[ \t]*\.globl[ \t]*_(?P=func)[ \t]*"
168+
r"^[ \t]*\.globl[ \t]*_(?P<func>[^ \t]+)[ \t]*\@[ \t]*--[ \t]Begin[ \t]function[ \t](?P=func)\n"
170169
r"(?P<directives>.*?)"
171-
r"^_(?P=func):\n[ \t]*"
172-
r"(?P<body>.*?)"
173-
r"^[ \t]*@[ \t]--[ \t]End[ \t]function",
170+
r"^_(?P=func):.*?\n"
171+
r"(?P<body>.*?)(?=^[ \t]*@[ \t]--[ \t]End[ \t]function)",
174172
flags=(re.M | re.S),
175173
)
176174

0 commit comments

Comments
 (0)