summaryrefslogtreecommitdiff
path: root/src/jit/gentree.cpp
diff options
context:
space:
mode:
authorTanner Gooding <tagoo@outlook.com>2018-03-08 15:34:33 -0800
committerTanner Gooding <tagoo@outlook.com>2018-03-09 16:34:08 -0800
commit0c0ae80321efc227d6c7f49044e5643d3d2ca0ff (patch)
tree1515b4ae0fcb5623ada9dad1c10fbf997a1e22f5 /src/jit/gentree.cpp
parent34e3ef76afe783326f4232e317bc5561285f7696 (diff)
downloadcoreclr-0c0ae80321efc227d6c7f49044e5643d3d2ca0ff.tar.gz
coreclr-0c0ae80321efc227d6c7f49044e5643d3d2ca0ff.tar.bz2
coreclr-0c0ae80321efc227d6c7f49044e5643d3d2ca0ff.zip
Update isRMWHWIntrinsic to explicitly cover intrinsics that are always RMW
Diffstat (limited to 'src/jit/gentree.cpp')
-rw-r--r--src/jit/gentree.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/jit/gentree.cpp b/src/jit/gentree.cpp
index 99b64312bc..718a566206 100644
--- a/src/jit/gentree.cpp
+++ b/src/jit/gentree.cpp
@@ -18017,9 +18017,18 @@ bool GenTree::isRMWHWIntrinsic(Compiler* comp)
HWIntrinsicFlag flags = Compiler::flagsOfHWIntrinsic(AsHWIntrinsic()->gtHWIntrinsicId);
return ((flags & HW_Flag_NoRMWSemantics) == 0);
}
-#endif // _TARGET_XARCH_
+ switch (AsHWIntrinsic()->gtHWIntrinsicId)
+ {
+ case NI_SSE42_Crc32:
+ return true;
+
+ default:
+ return false;
+ }
+#else
return false;
+#endif // _TARGET_XARCH_
}
GenTreeHWIntrinsic* Compiler::gtNewSimdHWIntrinsicNode(var_types type,