Skip to content

Commit e21a96f

Browse files
committed
[SIMD] Update tests to reflect the SIMD operators in the standard library
Introducing the SIMD operators back into the standard library regresses one test (SR-139 goes exponential against without the designated types for operatores feature). Split that part of the test out.
1 parent ad17e8a commit e21a96f

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

test/Constraints/tuple.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ func gcd_23700031<T>(_ a: T, b: T) {
153153
var a = a
154154
var b = b
155155
(a, b) = (b, a % b) // expected-error {{binary operator '%' cannot be applied to two 'T' operands}}
156-
// expected-note @-1 {{overloads for '%' exist with these partially matching parameter lists: (Int, Int), (Int16, Int16), (Int32, Int32), (Int64, Int64), (Int8, Int8), (UInt, UInt), (UInt16, UInt16), (UInt32, UInt32), (UInt64, UInt64), (UInt8, UInt8)}}
156+
// expected-note @-1 {{overloads for '%' exist with these partially matching parameter lists: (Int, Int), (Int16, Int16), (Int32, Int32), (Int64, Int64), (Int8, Int8), (Self, Self.Scalar), (Self.Scalar, Self), (UInt, UInt), (UInt16, UInt16), (UInt32, UInt32), (UInt64, UInt64), (UInt8, UInt8)}}
157157
}
158158

159159
// <rdar://problem/24210190>
@@ -259,4 +259,4 @@ func singleElementTuple() {
259259
let _ = (label: 123).label // expected-error {{cannot create a single-element tuple with an element label}} {{12-19=}}
260260
let _ = ((label: 123)) // expected-error {{cannot create a single-element tuple with an element label}} {{13-20=}}
261261
let _ = ((label: 123)).label // expected-error {{cannot create a single-element tuple with an element label}} {{13-20=}}
262-
}
262+
}

test/Sema/complex_expressions.swift

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
// RUN: %target-typecheck-verify-swift
22

3-
// SR-139:
4-
// Infinite recursion parsing bitwise operators
5-
let x = UInt32(0x1FF)&0xFF << 24 | UInt32(0x1FF)&0xFF << 16 | UInt32(0x1FF)&0xFF << 8 | (UInt32(0x1FF)&0xFF);
6-
73
// SR-838:
84
// expression test_seconds() was too complex to be solved in reasonable time
95
struct Nano : CustomStringConvertible {
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// RUN: %target-typecheck-verify-swift
2+
// RUN: %target-swift-frontend -typecheck %s -solver-enable-operator-designated-types
3+
4+
// SR-139:
5+
// Infinite recursion parsing bitwise operators
6+
let x = UInt32(0x1FF)&0xFF << 24 | UInt32(0x1FF)&0xFF << 16 | UInt32(0x1FF)&0xFF << 8 | (UInt32(0x1FF)&0xFF); // expected-error {{reasonable time}}
7+

0 commit comments

Comments
 (0)