Skip to content

Commit b04d40e

Browse files
authored
JIT: Don't allow broadcast lowering to remove cast from decomposed long (#116002)
1 parent d666a78 commit b04d40e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/coreclr/jit/lowerxarch.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9815,7 +9815,7 @@ void Lowering::ContainCheckHWIntrinsic(GenTreeHWIntrinsic* node)
98159815
{
98169816
GenTreeCast* cast = op1->AsCast();
98179817
if (!varTypeIsFloating(cast->CastToType()) &&
9818-
!varTypeIsFloating(cast->CastFromType()) &&
9818+
!varTypeIsFloating(cast->CastFromType()) && !cast->CastOp()->OperIsLong() &&
98199819
(genTypeSize(cast->CastToType()) >= genTypeSize(simdBaseType)) &&
98209820
(genTypeSize(cast->CastFromType()) >= genTypeSize(simdBaseType)))
98219821
{

0 commit comments

Comments
 (0)