mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[test] Fix or disable tests for 32-bit platforms (#82501)
Fix two IRGen tests that are failing on Android armv7 and disable eight ClangImporter, C++ Interop, and SILOptimizer tests, two of which that were already failing on other 32-bit platforms.
This commit is contained in:
@@ -15,5 +15,7 @@
|
||||
// CHECK-CLANG-SAME: '-fmodules'
|
||||
// CHECK-CLANG-NOT: clang importer driver args
|
||||
|
||||
// XFAIL: OS=linux-androideabi
|
||||
|
||||
import script
|
||||
var _ : ScriptTy
|
||||
|
||||
@@ -11,6 +11,6 @@ class Foo {
|
||||
}
|
||||
}
|
||||
|
||||
// armv7: define internal void @makeOne(ptr noalias sret({{.*}}) align 4 %agg.result, float{{( noundef)?}} %f, float{{( noundef)?}} %s)
|
||||
// armv7: define internal void @makeOne(ptr{{( dead_on_unwind)?}} noalias{{( writable)?}} sret({{.*}}) align 4 %agg.result, float{{( noundef)?}} %f, float{{( noundef)?}} %s)
|
||||
// armv7s: define internal void @makeOne(ptr noalias sret({{.*}}) align 4 %agg.result, float %f, float %s)
|
||||
// armv7k: define internal %struct.One @makeOne(float {{.*}}%f, float {{.*}}%s)
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
// RUN: %target-swift-ide-test -print-module -module-to-print=Constructors -I %S/Inputs -source-filename=x -enable-experimental-cxx-interop | %FileCheck %s
|
||||
// XFAIL: OS=linux-androideabi
|
||||
|
||||
// CHECK: struct TemplatedCopyConstructor
|
||||
// CHECK: struct TemplatedCopyConstructorWithExtraArg
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
// This test uses -verify-additional-file, which do not work well on Windows.
|
||||
// UNSUPPORTED: OS=windows-msvc
|
||||
// XFAIL: OS=linux-androideabi
|
||||
|
||||
import Constructors
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
// RUN: %target-swift-ide-test -print-module -module-to-print=Constructors -I %S/Inputs/ -source-filename=x -enable-experimental-cxx-interop | %FileCheck %s
|
||||
// XFAIL: OS=linux-androideabi
|
||||
|
||||
// CHECK: struct ExplicitDefaultConstructor {
|
||||
// CHECK-NEXT: init()
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
// RUN: %target-swiftxx-frontend -I %S/Inputs -Xllvm -sil-print-types -emit-silgen %s | %FileCheck %s
|
||||
// XFAIL: OS=linux-androideabi
|
||||
|
||||
import Constructors
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
// RUN: %target-typecheck-verify-swift -verify-ignore-unknown -I %S/Inputs -enable-experimental-cxx-interop
|
||||
// XFAIL: OS=linux-androideabi
|
||||
|
||||
import Constructors
|
||||
|
||||
|
||||
@@ -5,4 +5,4 @@ import CustomNewOperator
|
||||
var x = callsCustomNew()
|
||||
|
||||
// Make sure the definition of `operator new` is emitted.
|
||||
// CHECK: define {{.*}} @{{_ZnwmPv15container_new_t|"\?\?2@YAPEAX_KPEAXUcontainer_new_t@@@Z"}}
|
||||
// CHECK: define {{.*}} @{{_Znw(j|m)Pv15container_new_t|"\?\?2@YAPEAX_KPEAXUcontainer_new_t@@@Z"}}
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
|
||||
// Temporarily disabling on watchOS (both arm64_32 & armv7k):
|
||||
// rdar://140330692 (🟠 OSS Swift CI: oss-swift_tools-RA_stdlib-DA_test-device-non_executable failed...
|
||||
// UNSUPPORTED: OS=watchos
|
||||
// UNSUPPORTED: OS=watchos, OS=linux-androideabi
|
||||
|
||||
//--- main.swift
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
// RUN: -sil-verify-all -module-name=test -emit-sil \
|
||||
// RUN: | %FileCheck --check-prefix CHECK-DISABLED %s
|
||||
|
||||
// UNSUPPORTED: CPU=armv7k || CPU=arm64_32
|
||||
// UNSUPPORTED: CPU=armv7k, CPU=arm64_32, CPU=armv7
|
||||
|
||||
// CHECK-DISABLED-NOT: normal_count
|
||||
|
||||
|
||||
Reference in New Issue
Block a user