Skip to content

Commit ccc654a

Browse files
chore: Move test func from avx512f-builtins to corresponding test file
1 parent 539b86e commit ccc654a

File tree

2 files changed

+6
-11
lines changed

2 files changed

+6
-11
lines changed

clang/test/CodeGen/X86/avx512dq-builtins.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1329,13 +1329,17 @@ __m512d test_mm512_mask_broadcast_f64x2(__m512d __O, __mmask8 __M, double const*
13291329
return _mm512_mask_broadcast_f64x2(__O, __M, _mm_loadu_pd(__A));
13301330
}
13311331

1332+
TEST_CONSTEXPR(match_m512d(_mm512_mask_broadcast_f64x2(_mm512_setzero_pd(), 0xFF, (__m128d)(__v2df){1,2}), 1,2,1,2,1,2,1,2));
1333+
13321334
__m512d test_mm512_maskz_broadcast_f64x2(__mmask8 __M, double const* __A) {
13331335
// CHECK-LABEL: test_mm512_maskz_broadcast_f64x2
13341336
// CHECK: shufflevector <2 x double> %{{.*}}, <2 x double> %{{.*}}, <8 x i32> <i32 0, i32 1, i32 0, i32 1, i32 0, i32 1, i32 0, i32 1>
13351337
// CHECK: select <8 x i1> %{{.*}}, <8 x double> %{{.*}}, <8 x double> %{{.*}}
13361338
return _mm512_maskz_broadcast_f64x2(__M, _mm_loadu_pd(__A));
13371339
}
13381340

1341+
TEST_CONSTEXPR(match_m512d(_mm512_maskz_broadcast_f64x2(0xFF, (__m128d)(__v2df){1,2}), 1,2,1,2,1,2,1,2));
1342+
13391343
__m512i test_mm512_broadcast_i32x2(__m128i __A) {
13401344
// CHECK-LABEL: test_mm512_broadcast_i32x2
13411345
// CHECK: shufflevector <4 x i32> %{{.*}}, <4 x i32> %{{.*}}, <16 x i32> <i32 0, i32 1, i32 0, i32 1, i32 0, i32 1, i32 0, i32 1, i32 0, i32 1, i32 0, i32 1, i32 0, i32 1, i32 0, i32 1>
@@ -1379,6 +1383,8 @@ __m512i test_mm512_maskz_broadcast_i32x8(__mmask16 __M, __m256i const* __A) {
13791383
return _mm512_maskz_broadcast_i32x8(__M, _mm256_loadu_si256(__A));
13801384
}
13811385

1386+
TEST_CONSTEXPR(match_v16si(_mm512_maskz_broadcast_i32x8(0xFFFF, _mm256_set1_epi32(9)), 9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9));
1387+
13821388
__m512i test_mm512_broadcast_i64x2(__m128i const* __A) {
13831389
// CHECK-LABEL: test_mm512_broadcast_i64x2
13841390
// CHECK: shufflevector <2 x i64> %{{.*}}, <2 x i64> %{{.*}}, <8 x i32> <i32 0, i32 1, i32 0, i32 1, i32 0, i32 1, i32 0, i32 1>

clang/test/CodeGen/X86/avx512f-builtins.c

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,6 @@
1111
#include <immintrin.h>
1212
#include "builtin_test_helpers.h"
1313

14-
// Constexpr coverage for DQ broadcast features (f64x2/i32x8) that don't have test functions in this file.
15-
// The corresponding test_mm512_*_broadcast_* functions are in avx512dq-builtins.c.
16-
TEST_CONSTEXPR(match_m512d(_mm512_mask_broadcast_f64x2(_mm512_setzero_pd(), 0xFF, (__m128d)(__v2df){1,2}),
17-
1,2,1,2,1,2,1,2));
18-
19-
TEST_CONSTEXPR(match_m512d(_mm512_maskz_broadcast_f64x2(0xFF, (__m128d)(__v2df){1,2}),
20-
1,2,1,2,1,2,1,2));
21-
22-
TEST_CONSTEXPR(match_v16si(_mm512_maskz_broadcast_i32x8(0xFFFF, _mm256_set1_epi32(9)),
23-
9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9));
24-
2514
__m512d test_mm512_sqrt_pd(__m512d a)
2615
{
2716
// CHECK-LABEL: test_mm512_sqrt_pd

0 commit comments

Comments
 (0)