Skip to content

Commit 05fbe8d

Browse files
committed
[test] Add s390x support for test/IRGen/pic.swift
1 parent 820eb61 commit 05fbe8d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

test/IRGen/pic.swift

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,3 +64,12 @@ public func use_global() -> Int {
6464
// powerpc64le-LABEL: {{_?}}$s4main10use_globalSiyF:
6565
// powerpc64le: bl swift_beginAccess
6666
// 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

Comments
 (0)