From f1ae7f85c3311075ec5732492419531b6213b6a2 Mon Sep 17 00:00:00 2001 From: Carol Eidt Date: Wed, 20 Mar 2019 18:27:53 -0700 Subject: [PATCH] Fix Broadcast --- src/jit/lowerxarch.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/jit/lowerxarch.cpp b/src/jit/lowerxarch.cpp index b57a713faf20..373f881a8a2f 100644 --- a/src/jit/lowerxarch.cpp +++ b/src/jit/lowerxarch.cpp @@ -2671,7 +2671,10 @@ bool Lowering::IsContainableHWIntrinsicOp(GenTreeHWIntrinsic* containingNode, Ge case NI_AVX2_BroadcastScalarToVector128: case NI_AVX2_BroadcastScalarToVector256: { - return (node->TypeGet() != TYP_SIMD16); + // The memory form of this already takes a pointer, and cannot be further contained. + // The containable form is the one that takes a SIMD value, that may be in memory. + supportsGeneralLoads = (node->TypeGet() == TYP_SIMD16); + break; } case NI_SSE_ConvertScalarToVector128Single: