Commit Graph

45 Commits

Author SHA1 Message Date
finagolfin
6611ea97e9 [android][test] Fix or disable the remaining failing tests on the Android CI (#81398)
Also, fix and enable `IRGen/lto_autolink` for all non-Wasm targets and
`IRGen/static_initializer` for aarch64.

This should get [the community Android
CI](https://ci-external.swift.org/job/oss-swift-RA-linux-ubuntu-24.04-android-build/)
green
[again](https://ci-external.swift.org/job/oss-swift-RA-linux-ubuntu-24.04-android-arm64/).
2025-06-11 21:52:04 +05:30
Yuta Saito
1371e22fef [test][IRGen] Disable dylib related tests on WebAssembly 2023-10-12 21:40:07 +00:00
Anthony Latsis
c1908f688e Gardening: Migrate test suite to GH issues: IRGen 2022-09-01 06:35:57 +03:00
Arnold Schwaighofer
5967dbcd15 Fix pic.swift test on arm64e 2021-04-28 05:45:47 -07:00
Robert Widmann
0149ccd0ca Add arm64_32 support for Swift
Commit the platform definition and build script work necessary to
cross-compile for arm64_32.

arm64_32 is a variant of AARCH64 that supports an ILP32 architecture.
2021-04-20 14:59:04 -07:00
Arnold Schwaighofer
1fa20641e0 [rebranch] Fix test IRGen/pic.swift
rdar://73760903
2021-01-29 13:41:47 -08:00
Arnold Schwaighofer
e8f5f62394 [rebranch] Fix IRGen i386 test cases
rdar://73591469
2021-01-26 07:48:18 -08:00
Arnold Schwaighofer
1a5ae1bed5 Adjust test/IRGen/pic.swift for arm64e 2020-08-21 12:31:39 -07:00
Arnold Schwaighofer
6e16b7a2bf Update test IRGen/pic.swift for changed code generation
rdar://66790508
2020-08-10 13:43:45 -07:00
Arnold Schwaighofer
afafae4148 Disable irgen test on linux
rdar://60752860
2020-03-23 10:39:03 -07:00
Kuba Mracek
1bd425da67 [arm64e] Test changes to support arm64e 2020-02-27 16:10:48 -08:00
Daniel Rodríguez Troitiño
6c7cdef5bd Merge pull request #29787 from drodriguez/android-xfail-pic
[android][aarch64] XFAIL IRGen/pic.swift test.
2020-02-12 19:19:00 -08:00
Nate Chandler
de577b70cc [IRGen] Adapt remaining tests to arguments in IR. 2020-02-12 10:50:14 -08:00
Daniel Rodríguez Troitiño
d474b46401 [android][aarch64] XFAIL IRGen/pic.swift test.
The codegen for Android AArch64 differs in order to the expected one
(and the one that seems to happen in Linux AArch64). The SIL and IR are
the same, but the final codegen is different.

More details in https://bugs.swift.org/browse/SR-12194.

This was introduced with the master rebranch of February 10th 2020.
2020-02-12 10:08:10 -08:00
Daniel Rodríguez Troitiño
0dee84a772 [android] Fix PIC test for Android ARMv7/AArch64
For the AArch64 test, the only change is making the @PAGE piece
optional. LLVM doesn't seem to generate that part when targetting
Android or Linux.

For the ARMv7 tests, it is a little bit more complicated. Android seems
to use a different structure for PIC, which involve two labels and
instructions which are not movw/movt. To keep the iOS test undisturbed,
I added an extra check for the target-sdk-name. That allows iOS to be
the same, and Android to have their own checks. For Linux (the only
other SDK I can find that targets ARMv7), I used the Android solution,
because that seems to be what LLVM generates when using
armv7-none-linux.
2019-04-04 18:48:52 -07:00
Lei Zhang
68a33559e2 [test] Add s390x support for test/IRGen/pic.swift 2019-01-24 15:02:59 -05:00
Lei Zhang
05fbe8dc02 [test] Add s390x support for test/IRGen/pic.swift 2019-01-23 17:15:55 -05:00
sarveshtamba
7cb42b740c Changes for #SR-9413:Swift 5.0 test failures on PowerPC #21541 2019-01-16 11:05:02 +00:00
sarveshtamba
56318f3e1f Changes for #SR-9413:Swift 5.0 test failures on PowerPC 2018-12-24 11:37:38 +00:00
Michael Gottesman
fd4828e40a Eliminate -assume-parsing-unqualified-ownership-sil from tests.
I am doing this separately from the actual change to eliminate the option to
make it easier to review.
2018-12-19 12:54:13 -08:00
Saleem Abdulrasool
9ffd6816ab test: update IRGen test for aarch64 (AAPCS64)
Update the syntax/codegen verification to account for differences with
the aarch64 target.  This makes it pass on Linux-aarch64 (and should
also suffice for android-aarch64).
2018-10-12 17:04:56 -07:00
Arnold Schwaighofer
f20019e69c Update test pic.swift for different code gen (#19595)
rdar://44843229
2018-09-27 15:10:54 -07:00
Erik Eckstein
39bb14b094 change mangling prefix from $S to $s
This is the final ABI mangling prefix

rdar://problem/38471478
2018-09-19 13:55:11 -07:00
Michael Gottesman
851caa43e0 [upstream-update] Update non-executable arm64 test for slightly different codegen in master-next
Specifically on master-next for some reason we are introducing a spill around
the beginAccess call.

rdar://42837829
2018-08-02 18:16:08 -07:00
Saleem Abdulrasool
dabbdad811 test: enable additional tests on Linux
Un-XFAIL tests on Linux now that ObjC interop is controllable.  There
are a couple of tests that remain which are dependent on Foundation.
Fix a configuration issue that resulted in a number of tests failing on
Linux.
2018-04-24 11:21:21 -07:00
Arnold Schwaighofer
2d58f08142 Use clang's effective llvm triple for IR generation
Instead of using the target that was passed to the driver. Use the target from
the clang importer that might have been changed by clang (i.e armv7 to thumbv7
on darwin)

rdar://32599805
2018-02-14 15:45:43 -08:00
Erik Eckstein
cd3d50a5d9 ABI: Change the mangling prefix from _T0 to $S 2018-01-06 13:55:59 -08:00
Arnold Schwaighofer
c61af365ed Truly disable thumb emission
Interpreter support for thumb is not yet properly implemented/tested.
Disable thumb emission.

This change is necessary because LLVM now uses the features string in the
metadata. This features string contains '+thumb'.

This is a follow-up to 034241e440.

rdar://32599805
rdar://34781037 (tests that expect non-thumb instructions are failing)
2017-10-03 11:12:13 -07:00
Alex Hoppen
1c7e289b96 [Mangling] Adjust subscript mangling to not include "subscript"
Change the mangling of accessors to have a variable or subscript node
as their only child node, while subscript nodes no longer contain a decl
name.
2017-09-10 19:44:07 +02:00
Arnold Schwaighofer
2e3522fafc Use clang's effective llvm triple for IR generation (#10211)
* Use clang's effective llvm triple for IR generation

Instead of using the target that was passed to the driver. Use the target from
the clang importer that might have been changed by clang (i.e armv7 to thumbv7
on darwin)

rdar://32599805

* Address review comments

* Fix test case osx-targets.swift

* Fix pic.swift test case

* Fix test abi_v7k.swift

* Address review comment for test osx-targets.swift
2017-06-13 16:26:14 -07:00
Andrew Trick
1957e10bee Reenable pic.swift test. 2017-06-01 14:29:49 -07:00
Andrew Trick
275d9e429d Update an armv7 test for beginAccess markers. 2017-06-01 14:29:49 -07:00
Arnold Schwaighofer
9ab90757ee Disable IRGen test case pic.swift until it is fixed
This test fails on armv7 on a bot. Disable until I have fixed it.

rdar://32513284
2017-06-01 10:11:21 -07:00
Erik Eckstein
c4a11f4c92 tests: remove the now unused option -new-mangling-for-tests 2017-03-22 11:28:43 -07:00
Erik Eckstein
1d3724666f tests: convert about 400 tests to the new mangling by using the -new-mangling-for-tests option
When the new mangling is enabled permanently, the option can be removed from the RUN command lines again.
2017-01-24 15:27:45 -08:00
Michael Gottesman
20dd563efb [semantic-arc] Update tests for qualified/unqualified ownership and SILGen emission of copy_value, destroy_value. 2016-10-29 20:11:09 -07:00
Dmitri Gribenko
d175b3b66d Migrate FileCheck to %FileCheck in tests 2016-08-10 23:52:02 -07:00
Dmitri Gribenko
c0eb32a381 tests: add missing CHECK lines for armv7s, copied from armv7 2016-05-31 00:50:45 -07:00
Greg Parker
0386c7fe60 [test] Fix some watchOS test failures.
Swift SVN r29315
2015-06-05 05:47:16 +00:00
Graham Batty
83b4384fac Update test flags for linux failures and support.
Also removed the sdk 'feature' in favour of the more specific
objc_interop.

Swift SVN r24856
2015-01-30 21:31:48 +00:00
Dmitri Hrybenko
3b04d1b013 tests: reorganize tests so that they actually use the target platform
Most tests were using %swift or similar substitutions, which did not
include the target triple and SDK.  The driver was defaulting to the
host OS.  Thus, we could not run the tests when the standard library was
not built for OS X.

Swift SVN r24504
2015-01-19 06:52:49 +00:00
Graham Batty
83f27a8af7 Revert "Mark tests that don't pass on linux as XFAIL."
This reverts commit 2711ca86de7bf6a7885ccea24219a48a590b1e95.

Swift SVN r23577
2014-11-24 17:42:13 +00:00
Graham Batty
198402dcfe Mark tests that don't pass on linux as XFAIL.
Swift SVN r23573
2014-11-24 17:40:37 +00:00
Ted Kremenek
fad874708e Adjust test cases.
Swift SVN r17964
2014-05-12 22:01:52 +00:00
Joe Groff
72be5e8f59 IRGen: Always use PIC relocation model.
Fixes <rdar://problem/15358345>.

Swift SVN r10026
2013-11-07 18:42:53 +00:00