diff options
author | Carol Eidt <carol.eidt@microsoft.com> | 2015-07-09 16:28:23 -0700 |
---|---|---|
committer | Carol Eidt <carol.eidt@microsoft.com> | 2015-07-09 16:28:23 -0700 |
commit | 2a4f065005d0b35151b51c849660341b8fe1cba2 (patch) | |
tree | a572d54e14b3d9f477af745068c6770e337ac626 /src/jit/registerfp.cpp | |
parent | ff452ace4ef72f1264e62206d0f7640a36d2ff66 (diff) | |
download | coreclr-2a4f065005d0b35151b51c849660341b8fe1cba2.tar.gz coreclr-2a4f065005d0b35151b51c849660341b8fe1cba2.tar.bz2 coreclr-2a4f065005d0b35151b51c849660341b8fe1cba2.zip |
Support for SIMD Exceptions
For the CopyTo methods, we need to throw ArgumentOutOfRangeException instead of IndexOutOfRangeException for the initial index value, and then ArgumentException if the number of elements exceeds the remaining elements in the array. To support this, the GenTreeBoundsChk node now has a gtThrowKind field which indicates the kind of throw block it will branch to if the check failes.
This requires new helper calls, which I added to the end of corinfo.h.
[tfs-changeset: 1499475]
Diffstat (limited to 'src/jit/registerfp.cpp')
-rw-r--r-- | src/jit/registerfp.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jit/registerfp.cpp b/src/jit/registerfp.cpp index d75d92b83c..39d619a1cb 100644 --- a/src/jit/registerfp.cpp +++ b/src/jit/registerfp.cpp @@ -315,7 +315,7 @@ void CodeGen::genFloatCheckFinite(GenTree *tree, RegSet::RegisterPreference *pre inst_RV_IV(INS_cmp, reg, expMask, EA_4BYTE); // If exponent was all 1's, we need to throw ArithExcep - genJumpToThrowHlpBlk(EJ_je, Compiler::ACK_ARITH_EXCPN); + genJumpToThrowHlpBlk(EJ_je, SCK_ARITH_EXCPN); genCodeForTreeFloat_DONE(tree, op1->gtRegNum); } |