Skip to content

Commit 7cb42b7

Browse files
committed
Changes for #SR-9413:Swift 5.0 test failures on PowerPC swiftlang#21541
1 parent cd794b3 commit 7cb42b7

15 files changed

+18
-17
lines changed

test/ClangImporter/cfuncs_parse.swift

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

44
import cfuncs

test/ClangImporter/inlinable_bitfields.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// UNSUPPORTED: CPU=powerpc64le
21
// RUN: %empty-directory(%t)
32
// RUN: %target-swift-frontend %clang-importer-sdk %S/Inputs/inlinable_bitfields_other.swift -emit-module -emit-module-path %t/inlinable_bitfields_other.swiftmodule
43
// RUN: %target-swift-frontend %clang-importer-sdk -I %t %s -emit-ir -disable-llvm-optzns -O | %FileCheck %s -DINT=i%target-ptrsize
@@ -11,4 +10,4 @@ public func g(_ m: MM) -> UInt32 {
1110

1211
// Just make sure this is a definition and not a declaration...
1312

14-
// CHECK: define internal i32 @"$ModRM$rm$getter"
13+
// CHECK: define internal zeroext i32 @"$ModRM$rm$getter"

test/Constraints/diagnostics.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// UNSUPPORTED: CPU=powerpc64le
21
// RUN: %target-typecheck-verify-swift
32

43
protocol P {
@@ -660,7 +659,7 @@ example21890157.property = "confusing" // expected-error {{value of optional ty
660659
struct UnaryOp {}
661660

662661
_ = -UnaryOp() // expected-error {{unary operator '-' cannot be applied to an operand of type 'UnaryOp'}}
663-
// 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)}}
664663

665664

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

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-
// UNSUPPORTED: CPU=powerpc64le
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/class_resilience_objc.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
// UNSUPPORTED: CPU=powerpc64le
21
// 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
32

43
// XFAIL: CPU=armv7k
4+
// XFAIL: CPU=powerpc64le
55

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

test/IRGen/errors.sil

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// UNSUPPORTED: CPU=powerpc64le
1+
// XFAIL: CPU=powerpc64le
22
// RUN: %target-swift-frontend -primary-file %s -emit-ir | %FileCheck %s --check-prefix=CHECK --check-prefix=CHECK-%target-runtime --check-prefix=CHECK-%target-cpu
33
// REQUIRES: executable_test
44

test/IRGen/objc_simd.sil

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

test/IRGen/pic.swift

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// UNSUPPORTED: CPU=powerpc64le
21
// <rdar://problem/15358345> Check that we always use PIC relocations on all
32
// platforms.
43

@@ -61,3 +60,7 @@ public func use_global() -> Int {
6160
// aarch64: str [[REG2]], [sp]
6261
// aarch64: bl swift_endAccess
6362
// aarch64: ldr x0, [sp]
63+
64+
// powerpc64le-LABEL: {{_?}}$s4main10use_globalSiyF:
65+
// powerpc64le: bl swift_beginAccess
66+
// powerpc64le: addi 3, 3, ($s4main6globalSivp)@toc@l

test/Index/Store/output-failure.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// UNSUPPORTED: CPU=powerpc64le
1+
// XFAIL: CPU=powerpc64le
22
// RUN: %empty-directory(%t)
33
// RUN: mkdir %t/idx
44

test/Interpreter/generic_casts.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
// UNSUPPORTED: CPU=powerpc64le
21
// RUN: %target-run-simple-swift | %FileCheck %s
32
// RUN: %target-build-swift -O %s -o %t/a.out.optimized
43
// RUN: %target-codesign %t/a.out.optimized
54
// RUN: %target-run %t/a.out.optimized | %FileCheck %s
65
// REQUIRES: executable_test
6+
// XFAIL: CPU=powerpc64le
77

88
// FIXME: rdar://problem/19648117 Needs splitting objc parts out
99

0 commit comments

Comments
 (0)