|
17 | 17 | ; Tests with external assembler
|
18 | 18 |
|
19 | 19 | (executables
|
20 |
| - (names basic ops arrays scalar_ops) |
21 |
| - (modules basic ops arrays scalar_ops) |
| 20 | + (names basic ops arrays scalar_ops consts) |
| 21 | + (modules basic ops arrays scalar_ops consts) |
22 | 22 | (libraries simd_test_helpers)
|
23 | 23 | (foreign_archives stubs)
|
24 | 24 | (ocamlopt_flags
|
|
27 | 27 | (rule
|
28 | 28 | (enabled_if
|
29 | 29 | (= %{context_name} "main"))
|
30 |
| - (targets basic.out ops.out arrays.out scalar_ops.out) |
31 |
| - (deps basic.exe ops.exe arrays.exe scalar_ops.exe) |
| 30 | + (targets basic.out ops.out arrays.out scalar_ops.out consts.out) |
| 31 | + (deps basic.exe ops.exe arrays.exe scalar_ops.exe consts.exe) |
32 | 32 | (action
|
33 | 33 | (progn
|
34 | 34 | (with-outputs-to
|
|
42 | 42 | (run ./arrays.exe))
|
43 | 43 | (with-outputs-to
|
44 | 44 | scalar_ops.out
|
45 |
| - (run ./scalar_ops.exe))))) |
| 45 | + (run ./scalar_ops.exe)) |
| 46 | + (with-outputs-to |
| 47 | + consts.out |
| 48 | + (run ./consts.exe))))) |
46 | 49 |
|
47 | 50 | (rule
|
48 | 51 | (alias runtest)
|
|
53 | 56 | (diff empty.expected basic.out)
|
54 | 57 | (diff empty.expected ops.out)
|
55 | 58 | (diff empty.expected arrays.out)
|
56 |
| - (diff empty.expected scalar_ops.out)))) |
57 |
| - |
58 |
| -; Constants - proper inlining not supported on closure |
59 |
| -; CR mslater: these should run on flambda1 and 2, but dune doesn't know about 2 |
60 |
| - |
61 |
| -(executable |
62 |
| - (name consts) |
63 |
| - (modules consts) |
64 |
| - (foreign_archives stubs) |
65 |
| - (ocamlopt_flags |
66 |
| - (:standard -extension simd))) |
67 |
| - |
68 |
| -(rule |
69 |
| - (enabled_if |
70 |
| - (and |
71 |
| - (= %{context_name} "main") |
72 |
| - %{ocaml-config:flambda})) |
73 |
| - (target consts.out) |
74 |
| - (deps consts.exe) |
75 |
| - (action |
76 |
| - (with-outputs-to |
77 |
| - consts.out |
78 |
| - (run ./consts.exe)))) |
79 |
| - |
80 |
| -(rule |
81 |
| - (alias runtest) |
82 |
| - (enabled_if |
83 |
| - (and |
84 |
| - (= %{context_name} "main") |
85 |
| - %{ocaml-config:flambda})) |
86 |
| - (action |
87 |
| - (diff empty.expected consts.out))) |
| 59 | + (diff empty.expected scalar_ops.out) |
| 60 | + (diff empty.expected consts.out)))) |
88 | 61 |
|
89 | 62 | ; Tests with probes / internal assembler - not supported on macOS
|
90 | 63 |
|
|
166 | 139 | (run ./arrays_internal.exe))
|
167 | 140 | (with-outputs-to
|
168 | 141 | scalar_ops_internal.out
|
169 |
| - (run ./scalar_ops_internal.exe))))) |
170 |
| - |
171 |
| -(rule |
172 |
| - (enabled_if |
173 |
| - (and |
174 |
| - (= %{context_name} "main") |
175 |
| - (<> %{system} macosx) |
176 |
| - %{ocaml-config:flambda})) |
177 |
| - (targets consts_internal.out) |
178 |
| - (deps consts_internal.exe) |
179 |
| - (action |
180 |
| - (progn |
| 142 | + (run ./scalar_ops_internal.exe)) |
181 | 143 | (with-outputs-to
|
182 | 144 | consts_internal.out
|
183 | 145 | (run ./consts_internal.exe)))))
|
|
194 | 156 | (diff empty.expected basic_internal.out)
|
195 | 157 | (diff empty.expected ops_internal.out)
|
196 | 158 | (diff empty.expected arrays_internal.out)
|
197 |
| - (diff empty.expected scalar_ops_internal.out)))) |
198 |
| - |
199 |
| -(rule |
200 |
| - (alias runtest) |
201 |
| - (enabled_if |
202 |
| - (and |
203 |
| - (= %{context_name} "main") |
204 |
| - (<> %{system} macosx) |
205 |
| - %{ocaml-config:flambda})) |
206 |
| - (action |
207 |
| - (progn |
| 159 | + (diff empty.expected scalar_ops_internal.out) |
208 | 160 | (diff empty.expected consts_internal.out))))
|
0 commit comments