Skip to content

Commit 385fa55

Browse files
committed
[clang][x86] Fix _mm512_popcnt_epi64 constexpr test
The previous test incorrectly assumed 32-bit integers, leading to incorrect bit counts. This change updates the test result to assume 64-bit integers.
1 parent 109040a commit 385fa55

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ __m512i test_mm512_popcnt_epi64(__m512i __A) {
88
// CHECK: @llvm.ctpop.v8i64
99
return _mm512_popcnt_epi64(__A);
1010
}
11-
TEST_CONSTEXPR(match_v8di(_mm512_popcnt_epi64((__m512i)(__v8di){+5, -3, -10, +8, 0, -256, +256, -128}), 2, 31, 30, 1, 0, 24, 1, 25));
11+
TEST_CONSTEXPR(match_v8di(_mm512_popcnt_epi64((__m512i)(__v8di){+5, -3, -10, +8, 0, -256, +256, -128}), 2, 63, 62, 1, 0, 56, 1, 57));
1212

1313
__m512i test_mm512_mask_popcnt_epi64(__m512i __W, __mmask8 __U, __m512i __A) {
1414
// CHECK-LABEL: @test_mm512_mask_popcnt_epi64

0 commit comments

Comments
 (0)