Commit Graph

3290 Commits

Author SHA1 Message Date
Alastair Houghton
729b75755a [Tests][Runtime] Update availability test for demangleTruncate.
The fix for this issue didn't ship in 10.15, so testing it there just
causes a build failure.

rdar://87181765
2022-09-06 12:43:11 +01:00
nate-chandler
1f38c4bb3b Merge pull request #60790 from nate-chandler/rdar99047747
[Freestanding] Disable checked continuations.
2022-08-31 07:39:21 -07:00
Nate Chandler
c20bd86007 [Freestanding] Disable checked continuations.
In the task-to-thread model, there are no threading mechanisms by which
work could be offloaded onto another thread.  As such, callback based
asynchronous APIs which are not Swift async do not make sense.

rdar://99047747
2022-08-25 16:55:45 -07:00
Alejandro Alonso
284f8d4fdd Fix Substring.removeSubrange for entire substring (#60744)
fix start and end

fix test
2022-08-25 16:08:33 -07:00
Guillaume Lessard
1bba62ec13 Merge pull request #60613 from glessard/pointer-arithmetic-overflow-checks
[stdlib] add overflow checks for some pointer arithmetic
2022-08-25 14:37:44 -06:00
Guillaume Lessard
3fcf2a2046 [test] pointer arithmetic overflow checks 2022-08-23 14:27:42 -06:00
Holly Borla
8713d78704 [PrintOptions] Print explicit 'any' in SIL. 2022-08-18 01:15:12 -04:00
David Smith
50c79f9b3c Fix tests on older/32 bit platforms (#60538)
(cherry picked from commit 503a17cc7e31ef7c3463c1d6a54c67297a150064)
2022-08-15 21:16:24 -07:00
swift-ci
d0700b3f2a Merge remote-tracking branch 'origin/main' into rebranch 2022-08-10 16:34:37 -07:00
Michael Gottesman
471142c838 Merge pull request #60493 from gottesmm/pr-5090c953a85817f4f92399698c8d97134ff8cae4
[move-keyword] Put the move keyword behind the experimental move only flag for now.
2022-08-10 16:20:06 -07:00
Michael Gottesman
f3081d0e9a [move-keyword] Put the move keyword behind the experimental move only flag for now.
Originally move when it was in the stdlib as _move was behind a keyword but we
moved it in front to allow for some testing. Now that we are going with a
keyword (which we can't leave in/deprecate) move it behind the move only
experimental flag until this gets through evolution.
2022-08-10 12:45:17 -07:00
swift-ci
85f48aeb15 Merge remote-tracking branch 'origin/main' into rebranch 2022-08-09 18:53:20 -07:00
swift-ci
7701ddc054 Merge pull request #60428 from Catfish-Man/tag-youre-it
Handle long tagged NSStrings
2022-08-09 18:47:39 -07:00
David Smith
27a27fe034 Fix test 2022-08-09 14:35:10 -07:00
David Smith
ad00633cf1 Fix assert 2022-08-09 14:12:20 -07:00
David Smith
f966017c9c Review feedback 2022-08-08 17:27:23 -07:00
swift-ci
0409774802 Merge remote-tracking branch 'origin/main' into rebranch 2022-08-08 16:56:17 -07:00
David Smith
b3d8875834 Iterate on the long tagged string test 2022-08-08 16:23:54 -07:00
Michael Gottesman
6493886e1d [move-keyword] Wire up support for the move keyword in lvalue/rvalue emission.
I also updated the move function tests to show that this is working. As a nice
bonus, I was able to enable all of the tests also in a non-optimized stdlib.
2022-08-08 12:50:42 -07:00
David Smith
e0dd80fe3b Handle long tagged NSStrings 2022-08-05 19:02:37 -07:00
swift-ci
3da724cee2 Merge remote-tracking branch 'origin/main' into rebranch 2022-08-01 13:34:53 -07:00
Duo Wang
72e0ac2819 [tests] fix missing codesign in test files 2022-07-28 13:59:44 -07:00
swift-ci
3562f25346 Merge remote-tracking branch 'origin/main' into rebranch 2022-07-14 13:34:16 -07:00
Guillaume Lessard
480361b360 [test] move test to a file requiring the full stdlib
- SIMD types are not available in the minimal stdlib
2022-07-14 13:52:21 -06:00
swift-ci
d919357e5f Merge remote-tracking branch 'origin/main' into rebranch 2022-07-13 16:13:25 -07:00
Guillaume Lessard
bee4eaefc4 Merge pull request #60025 from glessard/rdar96841899
[stdlib] fix unaligned loads of large SIMD vectors on x86_64
2022-07-13 17:04:32 -06:00
Guillaume Lessard
9d1ca61bec Update test/stdlib/UnsafeRawPointer.swift 2022-07-13 11:29:44 -06:00
Guillaume Lessard
8bb22f88fc [test] unaligned loads of large, generic SIMD types 2022-07-12 14:50:48 -06:00
swift-ci
a3f161112b Merge remote-tracking branch 'origin/main' into rebranch 2022-07-12 05:14:46 -07:00
Anthony Latsis
d74384cfcf Merge pull request #59931 from AnthonyLatsis/close-issues-3
Add regression tests to close several issues p. 3
2022-07-12 15:11:52 +03:00
swift-ci
7382a9c41e Merge remote-tracking branch 'origin/main' into rebranch 2022-07-11 07:53:46 -07:00
nate-chandler
aff4e799d9 Merge pull request #59726 from nate-chandler/freestanding/task-to-thread-model
[Freestanding] Disable unstructured tasks.
2022-07-11 07:40:31 -07:00
Nate Chandler
34c08b8344 [TaskToThread] Add Task.runInline.
The new intrinsic, exposed via static functions on Task<T, Never> and
Task<T, Error> (rethrowing), begins an asynchronous context within a
synchronous caller's context.  This is only available for use under the
task-to-thread concurrency model, and even then only under SPI.
2022-07-08 08:44:18 -07:00
Nate Chandler
68eea8adec [TaskToThread] No unstructured tasks.
In this mode, the following are disabled:

- task creation
- global actors
- MainActor
- custom executors
2022-07-06 11:51:16 -07:00
swift-ci
33cce02ddb Merge remote-tracking branch 'origin/main' into rebranch 2022-07-06 11:14:12 -07:00
Nate Chandler
3439ce77da [Test] Disable stdlib/Mirror.swift for back deploy.
rdar://96520492
2022-07-06 09:12:52 -07:00
Anthony Latsis
3615aa1106 Add regression test to close #43154 2022-07-05 19:29:07 +03:00
swift-ci
aa5f56d983 Merge remote-tracking branch 'origin/main' into rebranch 2022-06-28 16:53:21 -07:00
Anthony Latsis
087eba83a2 Merge pull request #59757 from AnthonyLatsis/close-issues-2
Add regression tests to close several issues p. 2
2022-06-29 02:48:54 +03:00
Anthony Latsis
f9b76b88f9 Add regression test to resolve #43068 2022-06-28 22:36:14 +03:00
Anthony Latsis
2a84083714 Add regression test to close #43211 2022-06-28 22:36:14 +03:00
Anthony Latsis
e487acf43b Enable additional checks in test/stdlib/Mirror.swift that used to not compile 2022-06-28 22:36:14 +03:00
Anthony Latsis
7732306fa9 Add regression test to close #43135 2022-06-25 00:48:02 +03:00
swift-ci
b8f39b56be Merge remote-tracking branch 'origin/main' into rebranch 2022-06-22 09:15:09 -07:00
Alejandro Alonso
95da55b182 [stdlib] Implement String.WordView (#42414)
* Implement String.WordView

* Add isWordAligned bit

* Hide WordView for now (also separate Index type)

add bidirectional conformance

Fix tests

* Address comments from Karoy and Michael

* Remove word view, use index methods

* Address Karoy's comments

aaa
2022-06-22 09:10:09 -07:00
swift-ci
1ee42620c7 Merge remote-tracking branch 'origin/main' into rebranch 2022-06-09 11:53:31 -07:00
Butta
3933fc0006 [android][test] Fix several tests on the Android CI
- #58975 switched many tests from XFAIL on linux to linux-gnu, so seven
  fail on the Android CI and two natively. They are now explicitly excluded.
- #39605 added several C++ Interop tests, 11 of which fail on the Android CI,
  so disable them for now.
- #42478 removed the @noescape attribute for the non-Android
  SIL/clang-function-types tests, so I remove it for Android too.
- My pull #40779 moved the Swift pointer tags to the second byte, so
  SILOptimizer/concat_string_literals.64 will need to be updated for that,
  disabled it for now.
- Compiler-rt moved the directory in which it places those libraries for
  Android, llvm/llvm-project@a68ccba, so lit.cfg is updated for that.
2022-06-09 14:35:41 +05:30
Ben Barham
bcffb8e543 [next] Temporarily disable tgmath.swift.gyb
Disable `test/stdlib/tgmath.swift.gyb` while it's being looked into in
order to unblock CI.
2022-06-08 15:19:32 -07:00
Allan Shortlidge
e365fd1ef4 Tests: Mark test/stdlib/StringCreate.swift as unsupported on back deployment bots.
Using XFAIL won't work here because the tests pass on the iOS back deployment bots, resulting in a UPASS.

I was able to take a look at the test binary and rule out both codegen for `if #available(...)` and the optimizer as culprits so the next step is to check if `_stdlib_isOSVersionAtLeast()` is actually busted in the runtime libraries in older versions of macOS.
2022-06-06 17:05:18 -07:00
Allan Shortlidge
c0b91c9cad Tests: XFAIL test/stdlib/StringCreate.swift on the back deployment bots until the failures there can be investigated further. 2022-06-02 09:14:23 -07:00