Skip to content

Commit 579d277

Browse files
authored
Merge pull request #22391 from linux-on-ibm-z/swift5.0-s390x-two-IRGen-tests
[test] Add s390x support for two IRGen tests
2 parents 9772999 + 278e4b1 commit 579d277

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

test/IRGen/pic.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,3 +60,6 @@ public func use_global() -> Int {
6060
// aarch64: str [[REG2]], [sp]
6161
// aarch64: bl swift_endAccess
6262
// aarch64: ldr x0, [sp]
63+
64+
// s390x-LABEL: $s4main10use_globalSiyF:
65+
// s390x: lgrl %[[REG1:r[0-9]+]], ($s4main6globalSivp)

test/Inputs/clang-importer-sdk/swift-modules/CoreGraphics.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ public func == (lhs: CGPoint, rhs: CGPoint) -> Bool {
88
public struct CGFloat {
99
#if arch(i386) || arch(arm)
1010
public typealias UnderlyingType = Float
11-
#elseif arch(x86_64) || arch(arm64)
11+
#elseif arch(x86_64) || arch(arm64) || arch(s390x)
1212
public typealias UnderlyingType = Double
1313
#endif
1414

0 commit comments

Comments
 (0)