Skip to content

Commit d670008

Browse files
authored
Merge pull request #3240 from linux-on-ibm-z/master-test
2 parents 5b92b39 + efb9337 commit d670008

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/Prototypes/FloatingPoint.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -858,7 +858,7 @@ public protocol FloatingPointInterchange: FloatingPoint {
858858

859859
extension FloatingPointInterchange {
860860
public init(littleEndian encoding: BitPattern) {
861-
#if arch(i386) || arch(x86_64) || arch(arm) || arch(arm64) || arch(powerpc64le)
861+
#if arch(i386) || arch(x86_64) || arch(arm) || arch(arm64) || arch(powerpc64le) || arch(s390x)
862862
self = unsafeBitCast(encoding, to: Self.self)
863863
#else
864864
_UnsupportedArchitectureError()
@@ -868,7 +868,8 @@ extension FloatingPointInterchange {
868868
fatalError("TODO: with low-level generic integer type support for bswap.")
869869
}
870870
public var littleEndian: BitPattern {
871-
#if arch(i386) || arch(x86_64) || arch(arm) || arch(arm64) || arch(powerpc64le)
871+
#if arch(i386) || arch(x86_64) || arch(arm) || arch(arm64) || arch(powerpc64le) || arch(s390x)
872+
872873
return unsafeBitCast(self, to: BitPattern.self)
873874
#else
874875
_UnsupportedArchitectureError()

0 commit comments

Comments
 (0)