Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.

Commit

Permalink
Rotate Left/Right xarch instructions don't set ZF and ZF flag.
Browse files Browse the repository at this point in the history
  • Loading branch information
sivarv committed Nov 2, 2016
1 parent e74cdcb commit 9096360
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/jit/lowerxarch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1176,8 +1176,12 @@ void Lowering::TreeNodeInfoInitShiftRotate(GenTree* tree)
MakeSrcContained(tree, shiftBy);
}

// Codegen of this tree node sets ZF and SF flags.
tree->gtFlags |= GTF_ZSF_SET;
// Codegen of this shift oper sets ZF and SF flags.
// Note that Rotate Left/Right instructions don't set ZF and SF flags.
if (tree->OperIsShift())
{
tree->gtFlags |= GTF_ZSF_SET;
}
}

//------------------------------------------------------------------------
Expand Down

0 comments on commit 9096360

Please sign in to comment.