Skip to content

Commit fb0fb0a

Browse files
authored
Merge pull request swiftlang#21541 from sarveshtamba/master
Changes for #SR-9413:Swift 5.0 test failures on PowerPC
2 parents bb6c643 + c13c66c commit fb0fb0a

21 files changed

+24
-6
lines changed

test/ClangImporter/cfuncs_parse.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// XFAIL: CPU=powerpc64le
12
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -typecheck -verify -I %S/Inputs %s
23

34
import cfuncs

test/ClangImporter/inlinable_bitfields.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ public func g(_ m: MM) -> UInt32 {
1010

1111
// Just make sure this is a definition and not a declaration...
1212

13-
// CHECK: define internal i32 @"$ModRM$rm$getter"
13+
// CHECK: define internal{{( zeroext)?}} i32 @"$ModRM$rm$getter"

test/Constraints/diagnostics.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -659,7 +659,7 @@ example21890157.property = "confusing" // expected-error {{value of optional ty
659659
struct UnaryOp {}
660660

661661
_ = -UnaryOp() // expected-error {{unary operator '-' cannot be applied to an operand of type 'UnaryOp'}}
662-
// expected-note@-1 {{overloads for '-' exist with these partially matching parameter lists: (Double), (Float), (Float80)}}
662+
// expected-note@-1 {{overloads for '-' exist with these partially matching parameter lists: (Double), (Float)}}
663663

664664

665665
// <rdar://problem/23433271> Swift compiler segfault in failure diagnosis

test/Driver/fuzzer.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// UNSUPPORTED: win32
2+
// UNSUPPORTED: CPU=powerpc64le
23
// RUN: %swiftc_driver -driver-print-jobs -sanitize=fuzzer,address -resource-dir %S/Inputs/fake-resource-dir/lib/swift/ %s | %FileCheck -check-prefix=LIBFUZZER %s
34

45
// LIBFUZZER: libclang_rt.fuzzer

test/IRGen/big_types_corner_cases.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
1+
// XFAIL: CPU=powerpc64le
22
// RUN: %target-swift-frontend -enable-large-loadable-types %s -emit-ir | %FileCheck %s --check-prefix=CHECK --check-prefix=CHECK-%target-ptrsize
33
// REQUIRES: optimized_stdlib
44

test/IRGen/clang_inline_opt.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ func return10() -> UInt32 {
77
// Sanity check that we tell Clang to generate optimizable code when
88
// we're optimizing.
99

10-
// CHECK: define internal i32 @return7() [[CLANG_ATTRS:#[0-9]+]] {
10+
// CHECK: define internal{{( zeroext)?}} i32 @return7() [[CLANG_ATTRS:#[0-9]+]] {
1111

1212
// CHECK: attributes [[CLANG_ATTRS]] = {
1313
// CHECK-NOT: noinline

test/IRGen/class_resilience_objc.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -enable-objc-interop -emit-ir -o - -primary-file %s | %FileCheck %s --check-prefix=CHECK --check-prefix=CHECK-%target-ptrsize
22

33
// XFAIL: CPU=armv7k
4+
// XFAIL: CPU=powerpc64le
45

56
// CHECK: %swift.type = type { [[INT:i32|i64]] }
67

test/IRGen/errors.sil

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// XFAIL: CPU=powerpc64le
12
// RUN: %target-swift-frontend -primary-file %s -emit-ir | %FileCheck %s --check-prefix=CHECK --check-prefix=CHECK-%target-runtime --check-prefix=CHECK-%target-cpu
23

34
sil_stage canonical

test/IRGen/objc_simd.sil

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ entry(%x : $float3):
5757
// armv7s-LABEL: define{{( dllexport)?}}{{( protected)?}} swiftcc { float, float, float, float } @simd_native_args(float, float, float, float)
5858
// armv7k-LABEL: define{{( dllexport)?}}{{( protected)?}} swiftcc { float, float, float, float } @simd_native_args(float, float, float, float)
5959
// powerpc64-LABEL: define{{( dllexport)?}}{{( protected)?}} void @simd_native_args(%T4simd6float4V* noalias nocapture sret, %T4simd6float4V* noalias nocapture dereferenceable({{.*}}))
60-
// powerpc64le-LABEL: define{{( dllexport)?}}{{( protected)?}} void @simd_native_args(%T4simd6float4V* noalias nocapture sret, %T4simd6float4V* noalias nocapture dereferenceable({{.*}}))
60+
// powerpc64le-LABEL: define{{( dllexport)?}}{{( protected)?}} swiftcc { float, float, float, float } @simd_native_args(float, float, float, float)
6161
// s390x-LABEL: define{{( dllexport)?}}{{( protected)?}} void @simd_native_args(%T4simd6float4V* noalias nocapture sret, %T4simd6float4V* noalias nocapture dereferenceable({{.*}}))
6262
sil @simd_native_args : $@convention(thin) (float4) -> float4 {
6363
entry(%x : $float4):

test/IRGen/pic.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,3 +60,7 @@ public func use_global() -> Int {
6060
// aarch64: str [[REG2]], [sp]
6161
// aarch64: bl swift_endAccess
6262
// aarch64: ldr x0, [sp]
63+
64+
// powerpc64le-LABEL: {{_?}}$s4main10use_globalSiyF:
65+
// powerpc64le: bl swift_beginAccess
66+
// powerpc64le: addi 3, 3, ($s4main6globalSivp)@toc@l

0 commit comments

Comments
 (0)