}
else if (op2->gtOper == GT_CNS_LNG)
{
- assertion.op2.lconVal = op2->gtLngCon.gtLconVal;
+ assertion.op2.lconVal = op2->AsLngCon()->gtLconVal;
}
else
{
// overlapping gtIconVal.
else if (tree->OperGet() == GT_CNS_LNG)
{
- *pConstant = tree->gtLngCon.gtLconVal;
+ *pConstant = tree->AsLngCon()->gtLconVal;
*pFlags = tree->GetIconHandleFlag();
return true;
}
{
// When casting from LONG to INT, we need to force cast of the value,
// if the host architecture represents INT and LONG with the same data size.
- gtLngCon.gtLconVal = (INT64)(INT32)gtLngCon.gtLconVal;
+ AsLngCon()->gtLconVal = (INT64)(INT32)AsLngCon()->gtLconVal;
}
#endif // defined(_HOST_64BIT_) && !defined(_TARGET_64BIT_)
#if 0
// TODO-CQ: Enable this in the future
case GT_CNS_LNG:
- if (op1->gtLngCon.gtLconVal == op2->gtLngCon.gtLconVal)
+ if (op1->AsLngCon()->gtLconVal == op2->AsLngCon()->gtLconVal)
return true;
break;
add = tree->gtIntCon.gtIconVal;
break;
case GT_CNS_LNG:
- bits = (UINT64)tree->gtLngCon.gtLconVal;
+ bits = (UINT64)tree->AsLngCon()->gtLconVal;
#ifdef _HOST_64BIT_
add = bits;
#else // 32-bit host
break;
case GT_CNS_LNG:
- copy = gtNewLconNode(tree->gtLngCon.gtLconVal);
+ copy = gtNewLconNode(tree->AsLngCon()->gtLconVal);
break;
case GT_LCL_VAR:
goto DONE;
case GT_CNS_LNG:
- copy = gtNewLconNode(tree->gtLngCon.gtLconVal);
+ copy = gtNewLconNode(tree->AsLngCon()->gtLconVal);
goto DONE;
case GT_CNS_DBL:
break;
case GT_CNS_LNG:
- if (op1->gtLngCon.gtLconVal == op2->gtLngCon.gtLconVal)
+ if (op1->AsLngCon()->gtLconVal == op2->AsLngCon()->gtLconVal)
{
return true;
}
break;
case GT_CNS_LNG:
- printf(" 0x%016I64x", tree->gtLngCon.gtLconVal);
+ printf(" 0x%016I64x", tree->AsLngCon()->gtLconVal);
break;
case GT_CNS_DBL:
emitAttr size;
if (offs == 0)
{
- constVal = (target_ssize_t)(tree->gtLngCon.gtLconVal);
+ constVal = (target_ssize_t)(tree->AsLngCon()->gtLconVal);
size = EA_PTRSIZE;
}
else
{
- constVal = (target_ssize_t)(tree->gtLngCon.gtLconVal >> 32);
+ constVal = (target_ssize_t)(tree->AsLngCon()->gtLconVal >> 32);
size = EA_4BYTE;
}