Home | History | Annotate | Download | only in MC

Lines Matching defs:Result

525 /// \brief Evaluate the result of an add between (conceptually) two MCValues.
528 /// Result = (Result_A - Result_B + Result_Cst)
530 /// Result = LHS + RHS
532 /// Result = (LHS_A - LHS_B + LHS_Cst) + (RHS_A - RHS_B + RHS_Cst).
534 /// This routine attempts to aggresively fold the operands such that the result
537 /// \returns True on success, false if the result is not representable in an
557 // Fold the result constant immediately.
567 // Result = (LHS_A - LHS_B + LHS_Cst) + (RHS_A - RHS_B + RHS_Cst).
710 // width, and gas defines the result of comparisons and right shifts
713 int64_t Result = 0;
715 case MCBinaryExpr::Add: Result = LHS + RHS; break;
716 case MCBinaryExpr::And: Result = LHS & RHS; break;
717 case MCBinaryExpr::Div: Result = LHS / RHS; break;
718 case MCBinaryExpr::EQ: Result = LHS == RHS; break;
719 case MCBinaryExpr::GT: Result = LHS > RHS; break;
720 case MCBinaryExpr::GTE: Result = LHS >= RHS; break;
721 case MCBinaryExpr::LAnd: Result = LHS && RHS; break;
722 case MCBinaryExpr::LOr: Result = LHS || RHS; break;
723 case MCBinaryExpr::LT: Result = LHS < RHS; break;
724 case MCBinaryExpr::LTE: Result = LHS <= RHS; break;
725 case MCBinaryExpr::Mod: Result = LHS % RHS; break;
726 case MCBinaryExpr::Mul: Result = LHS * RHS; break;
727 case MCBinaryExpr::NE: Result = LHS != RHS; break;
728 case MCBinaryExpr::Or: Result = LHS | RHS; break;
729 case MCBinaryExpr::Shl: Result = LHS << RHS; break;
730 case MCBinaryExpr::Shr: Result = LHS >> RHS; break;
731 case MCBinaryExpr::Sub: Result = LHS - RHS; break;
732 case MCBinaryExpr::Xor: Result = LHS ^ RHS; break;
735 Res = MCValue::get(Result);