From 6397a7b3958502476b6e6f91310c8ab4b6a13a2d Mon Sep 17 00:00:00 2001 From: Fei Peng Date: Fri, 30 Mar 2018 11:41:00 -0700 Subject: Implement AVX SetHighLow --- src/jit/hwintrinsicxarch.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/jit/hwintrinsicxarch.cpp') diff --git a/src/jit/hwintrinsicxarch.cpp b/src/jit/hwintrinsicxarch.cpp index 9da218fc48..50bf25e44c 100644 --- a/src/jit/hwintrinsicxarch.cpp +++ b/src/jit/hwintrinsicxarch.cpp @@ -1236,6 +1236,16 @@ GenTree* Compiler::impAvxOrAvx2Intrinsic(NamedIntrinsic intrinsic, break; } + case NI_AVX_SetHighLow: + { + baseType = getBaseTypeOfSIMDType(sig->retTypeSigClass); + GenTree* lowerVector = impSIMDPopStack(TYP_SIMD16); + GenTree* higherVector = impSIMDPopStack(TYP_SIMD16); + retNode = gtNewSimdHWIntrinsicNode(TYP_SIMD32, lowerVector, higherVector, gtNewIconNode(1), + NI_AVX_InsertVector128, baseType, 32); + break; + } + case NI_AVX_ExtractVector128: case NI_AVX2_ExtractVector128: { -- cgit v1.2.3