|
12 | 12 | // "XREQUIRES".
|
13 | 13 | // UNSUPPORTED: cuda, hip
|
14 | 14 | // RUN: %clangxx -fsycl %s -fsycl-device-code-split=per_kernel -o %t.out
|
15 |
| -// XRUN: %GPU_RUN_PLACEHOLDER %t.out |
16 |
| -// RUN: false |
17 |
| -// XFAIL: * |
18 |
| -// TODO The tests freezed during runtime when using simd<char, 32>. The test |
19 |
| -// must be enabled when it is resolved. |
| 15 | +// RUN: %GPU_RUN_PLACEHOLDER %t.out |
| 16 | +// |
| 17 | +// TODO The tests freezed during runtime when using simd<char, 32>. The |
| 18 | +// SIMD_RUN_TEST_WITH_CHAR_TYPES macros must be enabled when it is resolved. |
| 19 | +// |
| 20 | +// TODO This test disabled due to simd<short, 32> vector filled with unexpected |
| 21 | +// values from 16th element. The issue was created |
| 22 | +// https://github.com/intel/llvm/issues/5245 and and the |
| 23 | +// SIMD_RUN_TEST_WITH_VECTOR_LEN_32 macros must be enabled when it is resolved. |
20 | 24 | //
|
21 | 25 | // Test for simd constructor from vector.
|
22 | 26 | // This test uses different data types, dimensionality and different simd
|
@@ -159,8 +163,20 @@ int main(int, char **) {
|
159 | 163 |
|
160 | 164 | bool passed = true;
|
161 | 165 |
|
| 166 | +#ifdef SIMD_RUN_TEST_WITH_CHAR_TYPES |
162 | 167 | const auto types = get_tested_types<tested_types::all>();
|
| 168 | +#else |
| 169 | + const auto types = named_type_pack<short, unsigned short, int, unsigned int, |
| 170 | + long, unsigned long, float, double, |
| 171 | + long long, unsigned long long>( |
| 172 | + {"short", "unsigned short", "int", "unsigned int", "long", |
| 173 | + "unsigned long", "float", "double", "long long", "unsigned long long"}); |
| 174 | +#endif |
| 175 | +#ifdef SIMD_RUN_TEST_WITH_VECTOR_LEN_32 |
163 | 176 | const auto dims = get_all_dimensions();
|
| 177 | +#else |
| 178 | + const auto dims = values_pack<1, 8, 16>(); |
| 179 | +#endif |
164 | 180 |
|
165 | 181 | // Run for specific combinations of types, vector length and invocation
|
166 | 182 | // contexts.
|
|
0 commit comments