From baae0827137050581e31540e9d47005fd9490dc4 Mon Sep 17 00:00:00 2001 From: Khushal Modi Date: Thu, 9 May 2024 13:21:58 -0700 Subject: [PATCH] Fix CI errors. Add missing API in Avx10v1.PlatofrmNotSupported ad end line with a new character --- src/coreclr/jit/hwintrinsiccodegenxarch.cpp | 3 ++- .../Intrinsics/X86/Avx10v1.PlatformNotSupported.cs | 9 ++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/coreclr/jit/hwintrinsiccodegenxarch.cpp b/src/coreclr/jit/hwintrinsiccodegenxarch.cpp index c7dec52ab5318f..ee39ebbd61598d 100644 --- a/src/coreclr/jit/hwintrinsiccodegenxarch.cpp +++ b/src/coreclr/jit/hwintrinsiccodegenxarch.cpp @@ -1277,7 +1277,8 @@ void CodeGen::genHWIntrinsic_R_R_R_RM_I( #if defined(DEBUG) NamedIntrinsic intrinsicId = node->GetHWIntrinsicId(); - assert((intrinsicId == NI_AVX512F_TernaryLogic) || (intrinsicId == NI_AVX512F_VL_TernaryLogic) || (intrinsicId == NI_AVX10v1_TernaryLogic)); + assert((intrinsicId == NI_AVX512F_TernaryLogic) || (intrinsicId == NI_AVX512F_VL_TernaryLogic) || + (intrinsicId == NI_AVX10v1_TernaryLogic)); uint8_t control = static_cast(ival); const TernaryLogicInfo& info = TernaryLogicInfo::lookup(control); diff --git a/src/libraries/System.Private.CoreLib/src/System/Runtime/Intrinsics/X86/Avx10v1.PlatformNotSupported.cs b/src/libraries/System.Private.CoreLib/src/System/Runtime/Intrinsics/X86/Avx10v1.PlatformNotSupported.cs index cd92b37205b06d..0b0c2b622496bf 100644 --- a/src/libraries/System.Private.CoreLib/src/System/Runtime/Intrinsics/X86/Avx10v1.PlatformNotSupported.cs +++ b/src/libraries/System.Private.CoreLib/src/System/Runtime/Intrinsics/X86/Avx10v1.PlatformNotSupported.cs @@ -1744,6 +1744,13 @@ internal Avx10v1() { } /// public static Vector256 PermuteVar32x8x2(Vector256 lower, Vector256 indices, Vector256 upper) { throw new PlatformNotSupportedException(); } + /// + /// __m256i _mm256_permutex2var_epi8 (__m256i a, __m256i idx, __m256i b) + /// VPERMI2B ymm1 {k1}{z}, ymm2, ymm3/m256 + /// VPERMT2B ymm1 {k1}{z}, ymm2, ymm3/m256 + /// + public static Vector256 PermuteVar32x8x2(Vector256 lower, Vector256 indices, Vector256 upper) { throw new PlatformNotSupportedException(); } + /// /// __m128 _mm_permutex2var_ps (__m128 a, __m128i idx, __m128i b) /// VPERMI2PS xmm1 {k1}{z}, xmm2, xmm3/m128/m32bcst @@ -3038,4 +3045,4 @@ internal V512() { } public static Vector512 PermuteVar64x8x2(Vector512 lower, Vector512 indices, Vector512 upper) { throw new PlatformNotSupportedException(); } } } -} \ No newline at end of file +}