| 1602 | } |
| 1603 | |
| 1604 | static const char* GetBinaryOpName(HLSLBinaryOp binaryOp) |
| 1605 | { |
| 1606 | switch (binaryOp) { |
| 1607 | case HLSLBinaryOp_And: |
| 1608 | return "&&"; |
| 1609 | case HLSLBinaryOp_Or: |
| 1610 | return "||"; |
| 1611 | |
| 1612 | case HLSLBinaryOp_Add: |
| 1613 | return "+"; |
| 1614 | case HLSLBinaryOp_Sub: |
| 1615 | return "-"; |
| 1616 | case HLSLBinaryOp_Mul: |
| 1617 | return "*"; |
| 1618 | case HLSLBinaryOp_Div: |
| 1619 | return "/"; |
| 1620 | |
| 1621 | case HLSLBinaryOp_Less: |
| 1622 | return "<"; |
| 1623 | case HLSLBinaryOp_Greater: |
| 1624 | return ">"; |
| 1625 | case HLSLBinaryOp_LessEqual: |
| 1626 | return "<="; |
| 1627 | case HLSLBinaryOp_GreaterEqual: |
| 1628 | return ">="; |
| 1629 | case HLSLBinaryOp_Equal: |
| 1630 | return "=="; |
| 1631 | case HLSLBinaryOp_NotEqual: |
| 1632 | return "!="; |
| 1633 | |
| 1634 | case HLSLBinaryOp_BitAnd: |
| 1635 | return "&"; |
| 1636 | case HLSLBinaryOp_BitOr: |
| 1637 | return "|"; |
| 1638 | case HLSLBinaryOp_BitXor: |
| 1639 | return "^"; |
| 1640 | |
| 1641 | case HLSLBinaryOp_Assign: |
| 1642 | return "="; |
| 1643 | case HLSLBinaryOp_AddAssign: |
| 1644 | return "+="; |
| 1645 | case HLSLBinaryOp_SubAssign: |
| 1646 | return "-="; |
| 1647 | case HLSLBinaryOp_MulAssign: |
| 1648 | return "*="; |
| 1649 | case HLSLBinaryOp_DivAssign: |
| 1650 | return "/="; |
| 1651 | default: |
| 1652 | ASSERT(false); |
| 1653 | return "???"; |
| 1654 | } |
| 1655 | } |
| 1656 | |
| 1657 | /* |
| 1658 | * 1.) Match |
no outgoing calls
no test coverage detected