Skip to content

Commit bcf046a

Browse files
authored
Merge pull request swiftlang#20998 from rudkx/scale-test-simd-add
Add a scale test for SIMD addition.
2 parents b9437ec + b41b1c0 commit bcf046a

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
// RUN: %scale-test --begin 3 --end 7 --step 1 --select NumLeafScopes %s
2+
// REQUIRES: OS=macosx
3+
// REQUIRES: asserts
4+
5+
import SIMDOperators
6+
7+
func test(_ s: SIMD4<Float>,
8+
%for i in range(0, N):
9+
_ s${i}: SIMD4<Float>,
10+
%end
11+
_ s${N}: SIMD4<Float>
12+
) -> SIMD4<Float> {
13+
return s
14+
%for i in range(0, N):
15+
+ s${i}
16+
%end
17+
}

0 commit comments

Comments
 (0)