Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 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