summaryrefslogtreecommitdiff
path: root/src/jit/codegenxarch.cpp
diff options
context:
space:
mode:
authorPat Gavlin <pgavlin@gmail.com>2016-09-12 15:28:26 -0700
committerGitHub <noreply@github.com>2016-09-12 15:28:26 -0700
commit52931c20b0e98fd0ad3145a43b8e2c4dbd9114c3 (patch)
treea38a13097bb506c358304034bae4e07deffc6415 /src/jit/codegenxarch.cpp
parent7d5bc8321058c6fce4a511e96ff4059171124ff3 (diff)
parent398317d18b0845681671ba449b8d8d9ca2cd505c (diff)
downloadcoreclr-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.cpp3
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