Skip to content

Commit 7a00619

Browse files
committed
Back out concrete SIMD floating-point inits for now.
I had hoped that #54445 would unblock these, but it doesn't seem to quite be the complete story yet (or at least, these were still failing as implemented).
1 parent 37d2a2f commit 7a00619

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

stdlib/public/core/SIMDFloatConcreteOperations.swift.gyb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ extension SIMD${n} where Scalar == ${Scalar} {
3434
_storage = ${Scalar}.SIMD${storageN}Storage(_builtin)
3535
}
3636

37+
/* Breaks differentiation testing, commented out while we figure out
38+
what to do about that.
3739
@_alwaysEmitIntoClient @_transparent
3840
public init(repeating scalar: ${Scalar}) {
3941
let asVector = Builtin.insertelement_${Builtin}_FPIEEE${bits}_Int32(
@@ -50,6 +52,7 @@ extension SIMD${n} where Scalar == ${Scalar} {
5052
))
5153
%end
5254
}
55+
*/
5356

5457
% if n >= 4:
5558
@_alwaysEmitIntoClient @_transparent

test/stdlib/SIMDFloatInitializers.swift.gyb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@
1414
// RUN: %target-swift-frontend -primary-file %t/SIMDFloatInitializers.swift -S | %FileCheck %t/SIMDFloatInitializers.swift --check-prefix=CHECK --check-prefix=CHECK-%target-cpu --check-prefix=CHECKOnone-%target-cpu
1515
// RUN: %target-swift-frontend -primary-file %t/SIMDFloatInitializers.swift -S -O | %FileCheck %t/SIMDFloatInitializers.swift --check-prefix=CHECK --check-prefix=CHECK-%target-cpu --check-prefix=CHECKO-%target-cpu
1616

17+
// Disable this test for now because aEIC/transparent functions still are not
18+
// correctly differentiable, and so these inits are suppressed in the stdlib.
19+
// REQUIRES: differentiable-aEIC-transparent
20+
1721
import Swift
1822

1923
%for bits in [16,32,64]:

0 commit comments

Comments
 (0)