File tree Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -44,11 +44,10 @@ public func use_global() -> Int {
44
44
// armv7k: ldr [[R_ADR]], {{\[}}[[R_ADR]]{{\]}}
45
45
46
46
// 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]
You can’t perform that action at this time.
0 commit comments