Skip to content

Commit e398408

Browse files
committed
Bug fix.
1 parent 6785a96 commit e398408

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/coreclr/jit/gentree.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25754,7 +25754,9 @@ GenTree* Compiler::gtNewSimdShuffleVariableNode(
2575425754
}
2575525755

2575625756
// the below is implemented for integral types
25757-
if (varTypeIsFloating(simdBaseType))
25757+
var_types origSimdBaseType = simdBaseType;
25758+
25759+
if (varTypeIsFloating(origSimdBaseType))
2575825760
{
2575925761
assert(elementSize == 8);
2576025762
simdBaseType = TYP_LONG;
@@ -25772,8 +25774,8 @@ GenTree* Compiler::gtNewSimdShuffleVariableNode(
2577225774
}
2577325775

2577425776
// the below are implemented with float/int/uint
25775-
simdBaseType = varTypeIsUnsigned(simdBaseType) ? TYP_UINT : TYP_INT;
25776-
if (varTypeIsFloating(simdBaseType))
25777+
simdBaseType = varTypeIsUnsigned(origSimdBaseType) ? TYP_UINT : TYP_INT;
25778+
if (varTypeIsFloating(origSimdBaseType))
2577725779
{
2577825780
simdBaseType = TYP_FLOAT;
2577925781
}

0 commit comments

Comments
 (0)