Skip to content

Commit aaa67a7

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 bca08a2 commit aaa67a7

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
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: (UInt8, UInt8), (Int8, Int8), (UInt16, UInt16), (Int16, Int16), (UInt32, UInt32), (Int32, Int32), (UInt64, UInt64), (Int64, Int64), (UInt, UInt), (Int, Int)}}
156+
// expected-note @-1 {{overloads for '%' exist with these partially matching parameter lists}}
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 & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
11
// RUN: %target-typecheck-verify-swift
22

3-
// SR-139:
4-
// Infinite recursion parsing bitwise operators
5-
// Temporarily disable to get SIMD stuff working. Ideally we can reinstate this
6-
// with Mark's changes.
7-
// let x = UInt32(0x1FF)&0xFF << 24 | UInt32(0x1FF)&0xFF << 16 | UInt32(0x1FF)&0xFF << 8 | (UInt32(0x1FF)&0xFF);
8-
93
// SR-838:
104
// expression test_seconds() was too complex to be solved in reasonable time
115
struct Nano : CustomStringConvertible {
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
// RUN: %target-typecheck-verify-swift
2+
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); // expected-error {{reasonable time}}
6+

0 commit comments

Comments
 (0)