Skip to content
Merged
Show file tree
Hide file tree
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
16 changes: 11 additions & 5 deletions src/coreclr/jit/target.h
Original file line number Diff line number Diff line change
Expand Up @@ -356,24 +356,30 @@ static bool operator>(regMaskTP first, regMaskTP second)
return first.getLow() > second.getLow();
}

static regMaskTP operator<<(regMaskTP& first, const int b)
static regMaskTP operator<<(regMaskTP first, const int b)
{
regMaskTP result(first.getLow() << b);
return result;
}

static regMaskTP operator>>(regMaskTP& first, const int b)
static regMaskTP& operator<<=(regMaskTP& first, const int b)
{
first = first << b;
return first;
}
#endif

static regMaskTP operator>>(regMaskTP first, const int b)
{
regMaskTP result(first.getLow() >> b);
return result;
}

static regMaskTP& operator<<=(regMaskTP& first, const int b)
static regMaskTP& operator>>=(regMaskTP& first, const int b)
{
first = first << b;
first = first >> b;
return first;
}
#endif

static regMaskTP operator~(regMaskTP first)
{
Expand Down
3 changes: 2 additions & 1 deletion src/coreclr/jit/unwind.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -224,11 +224,12 @@ void Compiler::unwindPushPopMaskCFI(regMaskTP regMask, bool isFloat)
// because LLVM only know about D0-D31.
// As such pairs Sx,Sx+1 are referenced as D0-D15 registers in DWARF
// For that we process registers in pairs.
regBit >>= isFloat ? 2 : 1;
regNum = isFloat ? REG_PREV(REG_PREV(regNum)) : REG_PREV(regNum);
#else
regBit >>= 1;
regNum = REG_PREV(regNum);
#endif
regBit = genRegMask(regNum);
}
}

Expand Down