Skip to content

Commit

Permalink
Ensure zroSimd12Elm3 is explicitly nulled out (#85625)
Browse files Browse the repository at this point in the history
  • Loading branch information
tannergooding authored May 2, 2023
1 parent 4772b5d commit 5d370f3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/coreclr/jit/codegencommon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ CodeGen::CodeGen(Compiler* theCompiler) : CodeGenInterface(theCompiler)
negBitmaskDbl = nullptr;
absBitmaskFlt = nullptr;
absBitmaskDbl = nullptr;
zroSimd12Elm3 = nullptr;
u8ToDblBitmask = nullptr;
#endif // defined(TARGET_XARCH)

Expand Down
2 changes: 1 addition & 1 deletion src/coreclr/jit/simdcodegenxarch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,7 @@ void CodeGen::genSimd12UpperClear(regNumber tgtReg)
zroSimd12Elm3 = GetEmitter()->emitSimd16Const(constValue);
}

GetEmitter()->emitIns_SIMD_R_R_C(INS_andpd, EA_16BYTE, tgtReg, tgtReg, zroSimd12Elm3, 0);
GetEmitter()->emitIns_SIMD_R_R_C(INS_andps, EA_16BYTE, tgtReg, tgtReg, zroSimd12Elm3, 0);
}
}

Expand Down

0 comments on commit 5d370f3

Please # to comment.