summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarol Eidt <carol.eidt@microsoft.com>2017-10-23 13:44:50 -0700
committerGitHub <noreply@github.com>2017-10-23 13:44:50 -0700
commit458c90a363b22fb29f6581610d5349bf06e17971 (patch)
tree8a4ecf3c019e6f0b16382bee2d6bf50eb9d63959 /src
parent2ba74317c027eb4ff1e854de02fbb9378d00a34e (diff)
parente3a104cea970c00ba39533cfc87832e01a322fc7 (diff)
downloadcoreclr-458c90a363b22fb29f6581610d5349bf06e17971.tar.gz
coreclr-458c90a363b22fb29f6581610d5349bf06e17971.tar.bz2
coreclr-458c90a363b22fb29f6581610d5349bf06e17971.zip
Merge pull request #14649 from mikedn/float-absneg
Always use XORPS/ANDPS for FP NEG/ABS
Diffstat (limited to 'src')
-rw-r--r--src/jit/codegenxarch.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/jit/codegenxarch.cpp b/src/jit/codegenxarch.cpp
index 529dafced1..7da42ce7e5 100644
--- a/src/jit/codegenxarch.cpp
+++ b/src/jit/codegenxarch.cpp
@@ -7285,7 +7285,7 @@ void CodeGen::genSSE2BitwiseOp(GenTreePtr treeNode)
// Neg(x) = flip the sign bit.
// Neg(f) = f ^ 0x80000000
// Neg(d) = d ^ 0x8000000000000000
- ins = genGetInsForOper(GT_XOR, targetType);
+ ins = INS_xorps;
if (targetType == TYP_FLOAT)
{
bitMask = &negBitmaskFlt;
@@ -7311,7 +7311,7 @@ void CodeGen::genSSE2BitwiseOp(GenTreePtr treeNode)
// Abs(x) = set sign-bit to zero
// Abs(f) = f & 0x7fffffff
// Abs(d) = d & 0x7fffffffffffffff
- ins = genGetInsForOper(GT_AND, targetType);
+ ins = INS_andps;
if (targetType == TYP_FLOAT)
{
bitMask = &absBitmaskFlt;