Lines Matching defs:Result
378 /// \brief Evaluate the result of an add between (conceptually) two MCValues.
381 /// Result = (Result_A - Result_B + Result_Cst)
383 /// Result = LHS + RHS
385 /// Result = (LHS_A - LHS_B + LHS_Cst) + (RHS_A - RHS_B + RHS_Cst).
387 /// This routine attempts to aggresively fold the operands such that the result
390 /// \returns True on success, false if the result is not representable in an
410 // Fold the result constant immediately.
420 // Result = (LHS_A - LHS_B + LHS_Cst) + (RHS_A - RHS_B + RHS_Cst).
563 // width, and gas defines the result of comparisons and right shifts
566 int64_t Result = 0;
568 case MCBinaryExpr::Add: Result = LHS + RHS; break;
569 case MCBinaryExpr::And: Result = LHS & RHS; break;
570 case MCBinaryExpr::Div: Result = LHS / RHS; break;
571 case MCBinaryExpr::EQ: Result = LHS == RHS; break;
572 case MCBinaryExpr::GT: Result = LHS > RHS; break;
573 case MCBinaryExpr::GTE: Result = LHS >= RHS; break;
574 case MCBinaryExpr::LAnd: Result = LHS && RHS; break;
575 case MCBinaryExpr::LOr: Result = LHS || RHS; break;
576 case MCBinaryExpr::LT: Result = LHS < RHS; break;
577 case MCBinaryExpr::LTE: Result = LHS <= RHS; break;
578 case MCBinaryExpr::Mod: Result = LHS % RHS; break;
579 case MCBinaryExpr::Mul: Result = LHS * RHS; break;
580 case MCBinaryExpr::NE: Result = LHS != RHS; break;
581 case MCBinaryExpr::Or: Result = LHS | RHS; break;
582 case MCBinaryExpr::Shl: Result = LHS << RHS; break;
583 case MCBinaryExpr::Shr: Result = LHS >> RHS; break;
584 case MCBinaryExpr::Sub: Result = LHS - RHS; break;
585 case MCBinaryExpr::Xor: Result = LHS ^ RHS; break;
588 Res = MCValue::get(Result);