summaryrefslogtreecommitdiff
path: root/src/jit/hwintrinsicxarch.cpp
diff options
context:
space:
mode:
authorCarol Eidt <carol.eidt@microsoft.com>2018-04-02 07:58:44 -0700
committerGitHub <noreply@github.com>2018-04-02 07:58:44 -0700
commit33fed2977ba2d6040f347301a378af8885ee5eb8 (patch)
tree394150ac02caa208dd5f0aefa9e283658cf63c3c /src/jit/hwintrinsicxarch.cpp
parentf2f0e7df851b3cbbec0cc63f403b557373c2e412 (diff)
parent6397a7b3958502476b6e6f91310c8ab4b6a13a2d (diff)
downloadcoreclr-33fed2977ba2d6040f347301a378af8885ee5eb8.tar.gz
coreclr-33fed2977ba2d6040f347301a378af8885ee5eb8.tar.bz2
coreclr-33fed2977ba2d6040f347301a378af8885ee5eb8.zip
Merge pull request #17313 from fiigii/sethilo
Implement AVX SetHighLow
Diffstat (limited to 'src/jit/hwintrinsicxarch.cpp')
-rw-r--r--src/jit/hwintrinsicxarch.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/jit/hwintrinsicxarch.cpp b/src/jit/hwintrinsicxarch.cpp
index df39c29ea6..9edf5facf1 100644
--- a/src/jit/hwintrinsicxarch.cpp
+++ b/src/jit/hwintrinsicxarch.cpp
@@ -1238,6 +1238,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:
{