diff options
author | Pat Gavlin <pgavlin@gmail.com> | 2016-09-12 15:28:26 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-12 15:28:26 -0700 |
commit | 52931c20b0e98fd0ad3145a43b8e2c4dbd9114c3 (patch) | |
tree | a38a13097bb506c358304034bae4e07deffc6415 /src/jit/codegenxarch.cpp | |
parent | 7d5bc8321058c6fce4a511e96ff4059171124ff3 (diff) | |
parent | 398317d18b0845681671ba449b8d8d9ca2cd505c (diff) | |
download | coreclr-52931c20b0e98fd0ad3145a43b8e2c4dbd9114c3.tar.gz coreclr-52931c20b0e98fd0ad3145a43b8e2c4dbd9114c3.tar.bz2 coreclr-52931c20b0e98fd0ad3145a43b8e2c4dbd9114c3.zip |
Merge pull request #7133 from mikedn/x86-cast-long-float
Implement long to float cast for x86
Diffstat (limited to 'src/jit/codegenxarch.cpp')
-rw-r--r-- | src/jit/codegenxarch.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/jit/codegenxarch.cpp b/src/jit/codegenxarch.cpp index 17967cbba7..d91a73b7b5 100644 --- a/src/jit/codegenxarch.cpp +++ b/src/jit/codegenxarch.cpp @@ -8018,7 +8018,8 @@ void CodeGen::genIntToFloatCast(GenTreePtr treeNode) assert(!varTypeIsFloating(srcType) && varTypeIsFloating(dstType)); #if !defined(_TARGET_64BIT_) - NYI_IF(varTypeIsLong(srcType), "Conversion from long to float"); + // We expect morph to replace long to float/double casts with helper calls + noway_assert(!varTypeIsLong(srcType)); #endif // !defined(_TARGET_64BIT_) // Since xarch emitter doesn't handle reporting gc-info correctly while casting away gc-ness we |