assert(!tree->OperIs(GT_NOT) || !varTypeIsFloating(targetType));
- regNumber targetReg = tree->gtRegNum;
- instruction ins = genGetInsForOper(tree->OperGet(), targetType);
+ regNumber targetReg = tree->gtRegNum;
+ instruction ins = genGetInsForOper(tree->OperGet(), targetType);
// The arithmetic node must be sitting in a register (since it's not contained)
assert(!tree->isContained());
if (!tree->InReg() && !(tree->gtFlags & GTF_SPILLED))
{
assert(!isRegCandidate);
- getEmitter()->emitIns_R_S(ins_Load(tree->TypeGet()), emitTypeSize(tree), tree->gtRegNum,
- tree->gtLclNum, 0);
+ getEmitter()->emitIns_R_S(ins_Load(tree->TypeGet()), emitTypeSize(tree), tree->gtRegNum, tree->gtLclNum, 0);
genProduceReg(tree);
}
}
else
{
regNumber targetReg = tree->gtRegNum;
- emitter* emit = getEmitter();
- emitAttr cmpAttr;
+ emitter* emit = getEmitter();
+ emitAttr cmpAttr;
genConsumeIfReg(op1);
genConsumeIfReg(op2);
{
assert(op1->TypeGet() == op2->TypeGet());
instruction ins = INS_vcmp;
- cmpAttr = emitTypeSize(op1->TypeGet());
+ cmpAttr = emitTypeSize(op1->TypeGet());
emit->emitInsBinary(ins, cmpAttr, op1, op2);
// vmrs with register 0xf has special meaning of transferring flags
emit->emitIns_R(INS_vmrs, EA_4BYTE, REG_R15);
assert(!tree->OperIs(GT_NOT) || !varTypeIsFloating(targetType));
- regNumber targetReg = tree->gtRegNum;
- instruction ins = genGetInsForOper(tree->OperGet(), targetType);
+ regNumber targetReg = tree->gtRegNum;
+ instruction ins = genGetInsForOper(tree->OperGet(), targetType);
// The arithmetic node must be sitting in a register (since it's not contained)
assert(!tree->isContained());
//
void CodeGen::genCodeForCompare(GenTreeOp* tree)
{
- regNumber targetReg = tree->gtRegNum;
- emitter* emit = getEmitter();
+ regNumber targetReg = tree->gtRegNum;
+ emitter* emit = getEmitter();
// TODO-ARM64-CQ: Check if we can use the currently set flags.
// TODO-ARM64-CQ: Check for the case where we can simply transfer the carry bit to a register
var_types targetType = tree->TypeGet();
regNumber targetReg = tree->gtRegNum;
- assert(targetType != TYP_STRUCT); // Any TYP_STRUCT register args should have been removed by fgMorphMultiregStructArg
+ assert(targetType !=
+ TYP_STRUCT); // Any TYP_STRUCT register args should have been removed by fgMorphMultiregStructArg
// We have a normal non-Struct targetType