Skip to content

Commit b41b1c0

Browse files
committed
Add a scale test for SIMD addition.
1 parent a5c38d0 commit b41b1c0

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)