We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 820eb61 commit 05fbe8dCopy full SHA for 05fbe8d
test/IRGen/pic.swift
@@ -64,3 +64,12 @@ public func use_global() -> Int {
64
// powerpc64le-LABEL: {{_?}}$s4main10use_globalSiyF:
65
// powerpc64le: bl swift_beginAccess
66
// powerpc64le: addi 3, 3, ($s4main6globalSivp)@toc@l
67
+
68
+// s390x-LABEL: $s4main10use_globalSiyF:
69
+// s390x: brasl %[[REG1:r[0-9]+]], swift_beginAccess@PLT
70
+// s390x: lgrl %[[REG2:r[0-9]+]], ($s4main6globalSivp)
71
+// s390x: lg %[[REG3:r[0-9]+]], 168(%[[REG4:r[0-9]+]])
72
+// s390x: stg %[[REG2]], 160(%[[REG4]])
73
+// s390x: lgr %[[REG2]], %[[REG3]]
74
+// s390x: brasl %[[REG1]], swift_endAccess@PLT
75
+// s390x: lg %[[REG2]], 160(%[[REG4]])
0 commit comments