Skip to content

Commit 61d241f

Browse files
committed
fix clang avx512bf16 build
1 parent 0b71133 commit 61d241f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/layer/x86/x86_usability.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -1490,9 +1490,9 @@ static NCNN_FORCEINLINE __m256i float2bfloat_avx512(const __m512& v0)
14901490
static NCNN_FORCEINLINE __m512i float2bfloat_avx512(const __m512& v0, const __m512& v1)
14911491
{
14921492
#if __AVX512BF16__
1493-
__m256bh _v0 = _mm512_cvtneps_pbh(v0);
1494-
__m256bh _v1 = _mm512_cvtneps_pbh(v1);
1495-
__m512i _v = _mm512_inserti32x8(_mm512_castsi256_si512((__m256i)_v0), (__m256i)_v1, 1);
1493+
__m256i _v0 = (__m256i)_mm512_cvtneps_pbh(v0);
1494+
__m256i _v1 = (__m256i)_mm512_cvtneps_pbh(v1);
1495+
__m512i _v = _mm512_inserti32x8(_mm512_castsi256_si512(_v0), _v1, 1);
14961496
#else
14971497
__m512i _a = _mm512_castps_si512(v0);
14981498
__m512i _b = _mm512_castps_si512(v1);

0 commit comments

Comments
 (0)