Skip to content

Commit 1c2b8ba

Browse files
authored
Merge pull request #26694 from linux-on-ibm-z/swift-master-s390x-082019-test-objcsimd
Fix objc_simd test failure on s390x
2 parents f74ea50 + 81ece42 commit 1c2b8ba

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

lib/ClangImporter/ClangImporter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -715,7 +715,7 @@ addCommonInvocationArguments(std::vector<std::string> &invocationArgStrs,
715715
invocationArgStrs.push_back("-mcpu=cyclone");
716716
}
717717
} else if (triple.getArch() == llvm::Triple::systemz) {
718-
invocationArgStrs.push_back("-march=z196");
718+
invocationArgStrs.push_back("-march=z13");
719719
}
720720

721721
if (!importerOpts.Optimization.empty()) {

test/IRGen/objc_simd.sil

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ entry(%x : $float3):
6161
// armv7k-LABEL: define{{( dllexport)?}}{{( protected)?}} swiftcc { float, float, float, float } @simd_native_args(float, float, float, float)
6262
// powerpc64-LABEL: define{{( dllexport)?}}{{( protected)?}} void @simd_native_args(%T4simd6float4V* noalias nocapture sret, %T4simd6float4V* noalias nocapture dereferenceable({{.*}}))
6363
// powerpc64le-LABEL: define{{( dllexport)?}}{{( protected)?}} swiftcc { float, float, float, float } @simd_native_args(float, float, float, float)
64-
// s390x-LABEL: define{{( dllexport)?}}{{( protected)?}} void @simd_native_args(%T4simd6float4V* noalias nocapture sret, %T4simd6float4V* noalias nocapture dereferenceable({{.*}}))
64+
// s390x-LABEL: define{{( dllexport)?}}{{( protected)?}} swiftcc { float, float, float, float } @simd_native_args(float, float, float, float)
6565
sil @simd_native_args : $@convention(thin) (float4) -> float4 {
6666
entry(%x : $float4):
6767
%f = function_ref @simd_c_args : $@convention(c) (float4) -> float4

test/Misc/target-cpu.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,5 @@
3838
// WATCHSIMULATOR64_CPU: "-target-cpu" "core2"
3939

4040
// RUN: not %swift -typecheck -target s390x-unknown-linux-gnu -Xcc -### %s 2>&1 | %FileCheck -check-prefix=S390X_CPU %s
41-
// S390X_CPU: "-target-cpu" "z196"
41+
// S390X_CPU: "-target-cpu" "z13"
4242

0 commit comments

Comments
 (0)