Skip to content

Commit f20019e

Browse files
aschwaighoferjrose-apple
authored andcommitted
Update test pic.swift for different code gen (#19595)
rdar://44843229
1 parent 07217b4 commit f20019e

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

test/IRGen/pic.swift

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,10 @@ public func use_global() -> Int {
4444
// armv7k: ldr [[R_ADR]], {{\[}}[[R_ADR]]{{\]}}
4545

4646
// arm64-LABEL: {{_?}}$s4main10use_globalSiyF:
47-
// arm64: adrp [[REG1:x[0-9]+]], _$s4main6globalSivp@PAGE
48-
// arm64: add [[REG1]], [[REG1]], _$s4main6globalSivp@PAGEOFF
49-
// This is a spill around beginAccess that is not strictly necessary.
50-
// arm64: str [[REG1]], {{\[}}sp, #16{{\]}}
51-
// arm64-NEXT: str
52-
// arm64-NEXT: bl _swift_beginAccess
53-
// arm64-NEXT: ldr [[REG2:x[0-9]+]], {{\[}}sp, #16{{\]}}
54-
// arm64-NEXT: ldr {{x[0-9]+}}, {{\[}}[[REG2]]{{\]}}
47+
// arm64: bl _swift_beginAccess
48+
// arm64: adrp [[REG1:x[0-9]+]], _$s4main6globalSivp@PAGE
49+
// arm64: add [[REG1]], [[REG1]], _$s4main6globalSivp@PAGEOFF
50+
// arm64: ldr [[REG2:x[0-9]+]], {{\[}}[[REG1]]{{\]}}
51+
// arm64: str [[REG2]], [sp]
52+
// arm64: bl _swift_endAccess
53+
// arm64: ldr x0, [sp]

0 commit comments

Comments
 (0)