diff options
author | Sivarv <sivarv@microsoft.com> | 2016-11-17 19:24:12 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-17 19:24:12 -0800 |
commit | eb4920aeb75f40ee5029c5ad1c30545a02006ee3 (patch) | |
tree | 112ce023003b9cd9c41ea40556c90e9e86455135 | |
parent | 204f6e8859e3676114c85f49b8d2c311458ac715 (diff) | |
parent | fca7e09e50bd20ed1917fd88dff390ad8c8acafc (diff) | |
download | coreclr-eb4920aeb75f40ee5029c5ad1c30545a02006ee3.tar.gz coreclr-eb4920aeb75f40ee5029c5ad1c30545a02006ee3.tar.bz2 coreclr-eb4920aeb75f40ee5029c5ad1c30545a02006ee3.zip |
Merge pull request #8182 from mikedn/x86-cmp-long-linqmax
Fix x86 long compares that produce a result
-rw-r--r-- | src/jit/codegenxarch.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/jit/codegenxarch.cpp b/src/jit/codegenxarch.cpp index 5e127cec25..6553d8c6ee 100644 --- a/src/jit/codegenxarch.cpp +++ b/src/jit/codegenxarch.cpp @@ -5803,10 +5803,6 @@ void CodeGen::genCompareLong(GenTreePtr treeNode) emitJumpKind jumpKindLo = genJumpKindForOper(tree->gtOper, CK_UNSIGNED); inst_SET(jumpKindLo, targetReg); - // Set the higher bytes to 0 - inst_RV_RV(ins_Move_Extend(TYP_UBYTE, true), targetReg, targetReg, TYP_UBYTE, emitTypeSize(TYP_UBYTE)); - genProduceReg(tree); - inst_JMP(EJ_jmp, labelFinal); // Define the label for hi jump target here. If we have jumped here, we want to set @@ -5815,11 +5811,10 @@ void CodeGen::genCompareLong(GenTreePtr treeNode) genDefineTempLabel(labelHi); inst_SET(genJumpKindForOper(tree->gtOper, compareKind), targetReg); + genDefineTempLabel(labelFinal); // Set the higher bytes to 0 inst_RV_RV(ins_Move_Extend(TYP_UBYTE, true), targetReg, targetReg, TYP_UBYTE, emitTypeSize(TYP_UBYTE)); genProduceReg(tree); - - genDefineTempLabel(labelFinal); } else { |