Lines Matching refs:op1
581 IR_FOLD_COPY(op1); in IR_FOLD()
1083 IR_FOLD_COPY(op1_insn->val.u64 <= op2_insn->val.u64 ? op1 : op2); in IR_FOLD()
1092 IR_FOLD_COPY(op1_insn->val.i64 <= op2_insn->val.i64 ? op1 : op2); in IR_FOLD()
1097 IR_FOLD_COPY(op1_insn->val.d <= op2_insn->val.d ? op1 : op2); in IR_FOLD()
1102 IR_FOLD_COPY(op1_insn->val.f <= op2_insn->val.f ? op1 : op2); in IR_FOLD()
1112 IR_FOLD_COPY(op1_insn->val.u64 >= op2_insn->val.u64 ? op1 : op2); in IR_FOLD()
1121 IR_FOLD_COPY(op1_insn->val.i64 >= op2_insn->val.i64 ? op1 : op2); in IR_FOLD()
1126 IR_FOLD_COPY(op1_insn->val.d >= op2_insn->val.d ? op1 : op2); in IR_FOLD()
1131 IR_FOLD_COPY(op1_insn->val.f >= op2_insn->val.f ? op1 : op2); in IR_FOLD()
1341 IR_FOLD_COPY(op1); in IR_FOLD()
1348 IR_FOLD_COPY(op1); in IR_FOLD()
1362 IR_FOLD_COPY(op1); in IR_FOLD()
1402 IR_FOLD_COPY(op1); in IR_FOLD()
1411 IR_FOLD_COPY(op1); in IR_FOLD()
1417 op1 = op1_insn->op1; in IR_FOLD()
1426 IR_FOLD_COPY(op1_insn->op1); in IR_FOLD()
1432 IR_FOLD_COPY(op1); in IR_FOLD()
1443 IR_FOLD_COPY(op1); in IR_FOLD()
1466 if (op2_insn->val.u64 == 0 && ctx->ir_base[op1_insn->op1].type == IR_BOOL) { in IR_FOLD()
1468 op1 = op1_insn->op1; in IR_FOLD()
1490 if (op2_insn->val.u64 == 0 && ctx->ir_base[op1_insn->op1].type == IR_BOOL) { in IR_FOLD()
1491 IR_FOLD_COPY(op1_insn->op1); in IR_FOLD()
1507 if (IR_IS_TYPE_INT(ctx->ir_base[op1_insn->op1].type)) { in IR_FOLD()
1509 op1 = op1_insn->op1; in IR_FOLD()
1555 IR_FOLD_COPY(op1); in IR_FOLD()
1568 op1 = op2; in IR_FOLD()
1645 op1 = op2; in IR_FOLD()
1646 op2 = op1_insn->op1; in IR_FOLD()
1655 op2 = op2_insn->op1; in IR_FOLD()
1664 IR_FOLD_COPY(op1_insn->op1); in IR_FOLD()
1673 if (op2_insn->op2 == op1) { in IR_FOLD()
1675 IR_FOLD_COPY(op2_insn->op1); in IR_FOLD()
1684 if (op1_insn->op1 == op2) { in IR_FOLD()
1689 IR_FOLD_COPY(op1_insn->op1); in IR_FOLD()
1698 if (op2_insn->op1 == op1) { in IR_FOLD()
1701 op1 = op2_insn->op2; in IR_FOLD()
1704 } else if (op2_insn->op2 == op1) { in IR_FOLD()
1707 op1 = op2_insn->op1; in IR_FOLD()
1718 if (op1_insn->op1 == op2) { in IR_FOLD()
1721 op1 = op1_insn->op2; in IR_FOLD()
1732 if (op2_insn->op1 == op1) { in IR_FOLD()
1743 if (op1_insn->op1 == op2_insn->op1) { in IR_FOLD()
1745 op1 = op1_insn->op2; in IR_FOLD()
1748 } else if (op1_insn->op1 == op2_insn->op2) { in IR_FOLD()
1750 op1 = op1_insn->op2; in IR_FOLD()
1751 op2 = op2_insn->op1; in IR_FOLD()
1753 } else if (op1_insn->op2 == op2_insn->op1) { in IR_FOLD()
1755 op1 = op1_insn->op1; in IR_FOLD()
1760 op1 = op1_insn->op1; in IR_FOLD()
1761 op2 = op2_insn->op1; in IR_FOLD()
1782 IR_FOLD_COPY(op1); in IR_FOLD()
1785 op2 = op1; in IR_FOLD()
1801 IR_FOLD_COPY(op1); in IR_FOLD()
1805 op2 = op1; in IR_FOLD()
1820 IR_FOLD_COPY(op1); in IR_FOLD()
1824 op2 = op1; in IR_FOLD()
1839 IR_FOLD_COPY(op1); in IR_FOLD()
1843 op2 = op1; in IR_FOLD()
1860 IR_FOLD_COPY(op1); in IR_FOLD()
1872 IR_FOLD_COPY(op1); in IR_FOLD()
1902 IR_FOLD_COPY(op1); in IR_FOLD()
1916 IR_FOLD_COPY(op1); in IR_FOLD()
1929 op1 = op1_insn->op1; in IR_FOLD()
1930 op2 = op2_insn->op1; in IR_FOLD()
1936 IR_FOLD_COPY(op2_insn->val.b ? op1 : op2); in IR_FOLD()
1947 IR_FOLD_COPY(op1); in IR_FOLD()
1959 IR_FOLD_COPY(op1); in IR_FOLD()
1971 IR_FOLD_COPY(op1); in IR_FOLD()
1983 IR_FOLD_COPY(op1); in IR_FOLD()
1990 IR_FOLD_COPY(op2_insn->val.b ? op2 : op1); in IR_FOLD()
2001 IR_FOLD_COPY(op1); in IR_FOLD()
2013 IR_FOLD_COPY(op1); in IR_FOLD()
2025 IR_FOLD_COPY(op1); in IR_FOLD()
2037 IR_FOLD_COPY(op1); in IR_FOLD()
2046 IR_FOLD_COPY(op1); in IR_FOLD()
2061 IR_FOLD_COPY(op1); in IR_FOLD()
2076 IR_FOLD_COPY(op1); in IR_FOLD()
2091 IR_FOLD_COPY(op1); in IR_FOLD()
2106 IR_FOLD_COPY(op1); in IR_FOLD()
2127 IR_FOLD_COPY(op1); in IR_FOLD()
2131 op2 = op1; in IR_FOLD()
2172 IR_FOLD_COPY(op1); in IR_FOLD()
2196 IR_FOLD_COPY(op1); in IR_FOLD()
2209 IR_FOLD_COPY(op1); in IR_FOLD()
2222 IR_FOLD_COPY(op1); in IR_FOLD()
2235 IR_FOLD_COPY(op1); in IR_FOLD()
2248 IR_FOLD_COPY(op1); in IR_FOLD()
2287 IR_ASSERT(ctx->ir_base[op1_insn->op1].type == IR_FLOAT); in IR_FOLD()
2288 IR_FOLD_COPY(op1_insn->op1); in IR_FOLD()
2296 ir_type src_type = ctx->ir_base[op1_insn->op1].type; in IR_FOLD()
2304 IR_FOLD_COPY(op1_insn->op1); in IR_FOLD()
2313 ir_type src_type = ctx->ir_base[op1_insn->op1].type; in IR_FOLD()
2317 IR_FOLD_COPY(op1_insn->op1); in IR_FOLD()
2320 op1 = op1_insn->op1; in IR_FOLD()
2324 op1 = op1_insn->op1; in IR_FOLD()
2328 op1 = op1_insn->op1; in IR_FOLD()
2338 if (IR_IS_TYPE_INT(ctx->ir_base[op1_insn->op1].type)) { in IR_FOLD()
2339 op1 = op1_insn->op1; in IR_FOLD()
2348 ir_type src_type = ctx->ir_base[op1_insn->op1].type; in IR_FOLD()
2351 IR_FOLD_COPY(op1_insn->op1); in IR_FOLD()
2353 op1 = op1_insn->op1; in IR_FOLD()
2363 op1 = op1_insn->op1; in IR_FOLD()
2369 op1 = op1_insn->op1; in IR_FOLD()
2395 op1 = op1_insn->op1; in IR_FOLD()
2400 op1 = op1_insn->op1; in IR_FOLD()
2405 op1 = op1_insn->op1; in IR_FOLD()
2418 IR_FOLD_COPY(op1); in IR_FOLD()
2429 IR_FOLD_COPY(op1); in IR_FOLD()
2440 IR_FOLD_COPY(op1); in IR_FOLD()
2451 IR_FOLD_COPY(op1); in IR_FOLD()
2469 IR_ASSERT(ctx->ir_base[op1_insn->op1].type == IR_FLOAT); in IR_FOLD()
2471 op1 = op1_insn->op1; in IR_FOLD()
2488 op1 = op1_insn->op1; in IR_FOLD()
2503 op1 = op1_insn->op1; in IR_FOLD()
2519 op1 = op1_insn->op1; in IR_FOLD()
2522 } else if (IR_IS_CONST_REF(op1_insn->op1) && !IR_IS_SYM_CONST(ctx->ir_base[op1_insn->op1].op)) { in IR_FOLD()
2524 val.u64 = ctx->ir_base[op1_insn->op1].val.u64 + op2_insn->val.u64; in IR_FOLD()
2527 op1 = ir_const(ctx, val, IR_OPT_TYPE(opt)); in IR_FOLD()
2545 op1 = op1_insn->op1; in IR_FOLD()
2548 } else if (IR_IS_CONST_REF(op1_insn->op1) && !IR_IS_SYM_CONST(ctx->ir_base[op1_insn->op1].op)) { in IR_FOLD()
2550 val.i64 = ctx->ir_base[op1_insn->op1].val.i64 + op2_insn->val.i64; in IR_FOLD()
2553 op1 = ir_const(ctx, val, IR_OPT_TYPE(opt)); in IR_FOLD()
2569 op1 = op1_insn->op1; in IR_FOLD()
2589 op1 = op1_insn->op1; in IR_FOLD()
2605 op2 = op2_insn->op1; in IR_FOLD()
2606 op1 = ir_const(ctx, val, IR_OPT_TYPE(opt)); in IR_FOLD()
2620 op2 = op2_insn->op1; in IR_FOLD()
2621 op1 = ir_const(ctx, val, IR_OPT_TYPE(opt)); in IR_FOLD()
2640 op1 = op1_insn->op1; in IR_FOLD()
2643 } else if (IR_IS_CONST_REF(op1_insn->op1) && !IR_IS_SYM_CONST(ctx->ir_base[op1_insn->op1].op)) { in IR_FOLD()
2645 val.u64 = ctx->ir_base[op1_insn->op1].val.u64 - op2_insn->val.u64; in IR_FOLD()
2647 op1 = ir_const(ctx, val, IR_OPT_TYPE(opt)); in IR_FOLD()
2665 op1 = op1_insn->op1; in IR_FOLD()
2668 } else if (IR_IS_CONST_REF(op1_insn->op1) && !IR_IS_SYM_CONST(ctx->ir_base[op1_insn->op1].op)) { in IR_FOLD()
2670 val.i64 = ctx->ir_base[op1_insn->op1].val.i64 - op2_insn->val.i64; in IR_FOLD()
2672 op1 = ir_const(ctx, val, IR_OPT_TYPE(opt)); in IR_FOLD()
2687 op2 = op2_insn->op1; in IR_FOLD()
2688 op1 = ir_const(ctx, val, IR_OPT_TYPE(opt)); in IR_FOLD()
2690 } else if (IR_IS_CONST_REF(op2_insn->op1) && !IR_IS_SYM_CONST(ctx->ir_base[op2_insn->op1].op)) { in IR_FOLD()
2692 val.u64 = op1_insn->val.u64 - ctx->ir_base[op2_insn->op1].val.u64; in IR_FOLD()
2697 op1 = op2_insn->op2; in IR_FOLD()
2712 op2 = op2_insn->op1; in IR_FOLD()
2713 op1 = ir_const(ctx, val, IR_OPT_TYPE(opt)); in IR_FOLD()
2715 } else if (IR_IS_CONST_REF(op2_insn->op1) && !IR_IS_SYM_CONST(ctx->ir_base[op2_insn->op1].op)) { in IR_FOLD()
2717 val.i64 = op1_insn->val.i64 - ctx->ir_base[op2_insn->op1].val.i64; in IR_FOLD()
2722 op1 = op2_insn->op2; in IR_FOLD()
2738 op1 = op1_insn->op1; in IR_FOLD()
2753 op1 = op1_insn->op1; in IR_FOLD()
2773 op1 = op1_insn->op1; in IR_FOLD()
2793 op1 = op1_insn->op1; in IR_FOLD()
2813 op1 = op1_insn->op1; in IR_FOLD()
2825 if (op1_insn->op1 == op2 || op1_insn->op2 == op2) { in IR_FOLD()
2833 if (op1_insn->op1 == op2) { in IR_FOLD()
2836 IR_FOLD_COPY(op1_insn->op1); in IR_FOLD()
2847 if (op1_insn->op1 == op2_insn->op1) { in IR_FOLD()
2852 op1 = op1_insn->op1; in IR_FOLD()
2858 && IR_IS_CONST_REF(ctx->ir_base[op2_insn->op2].op1) in IR_FOLD()
2860 … && ctx->ir_base[ctx->ir_base[op2_insn->op2].op1].val.u64 == ir_type_size[IR_OPT_TYPE(opt)] * 8) { in IR_FOLD()
2862 op1 = op1_insn->op1; in IR_FOLD()
2867 && IR_IS_CONST_REF(ctx->ir_base[op1_insn->op2].op1) in IR_FOLD()
2869 … && ctx->ir_base[ctx->ir_base[op1_insn->op2].op1].val.u64 == ir_type_size[IR_OPT_TYPE(opt)] * 8) { in IR_FOLD()
2871 op1 = op2_insn->op1; in IR_FOLD()
2886 if (op1 < op2) { /* move lower ref to op2 */ in IR_FOLD()
2887 SWAP_REFS(op1, op2); in IR_FOLD()
2896 if (op1 < op2) { /* move lower ref to op2 */ in IR_FOLD()
2897 SWAP_REFS(op1, op2); in IR_FOLD()
2906 if (IR_IS_TYPE_INT(IR_OPT_TYPE(opt)) && op1 == op2) { in IR_FOLD()
2914 if (op1 == op2) { in IR_FOLD()
2928 if (op1 == op2) { in IR_FOLD()
2929 IR_FOLD_COPY(op1); in IR_FOLD()
2937 if (op1 == op2) { in IR_FOLD()
2946 if (op1 != op2) { in IR_FOLD()
2960 if (op1 == op2) { in IR_FOLD()
2965 } else if (op1 < op2) { /* move lower ref to op2 */ in IR_FOLD()
2966 SWAP_REFS(op1, op2); in IR_FOLD()
2978 if (op1 == op2) { in IR_FOLD()
2981 } else if (op1 < op2) { /* move lower ref to op2 */ in IR_FOLD()
2982 SWAP_REFS(op1, op2); in IR_FOLD()