Lines Matching refs:op2

1084 	IR_FOLD_COPY(op1_insn->val.u64 <= op2_insn->val.u64 ? op1 : op2);  in IR_FOLD()
1093 IR_FOLD_COPY(op1_insn->val.i64 <= op2_insn->val.i64 ? op1 : op2); in IR_FOLD()
1098 IR_FOLD_COPY(op1_insn->val.d <= op2_insn->val.d ? op1 : op2); in IR_FOLD()
1103 IR_FOLD_COPY(op1_insn->val.f <= op2_insn->val.f ? op1 : op2); in IR_FOLD()
1113 IR_FOLD_COPY(op1_insn->val.u64 >= op2_insn->val.u64 ? op1 : op2); in IR_FOLD()
1122 IR_FOLD_COPY(op1_insn->val.i64 >= op2_insn->val.i64 ? op1 : op2); in IR_FOLD()
1127 IR_FOLD_COPY(op1_insn->val.d >= op2_insn->val.d ? op1 : op2); in IR_FOLD()
1132 IR_FOLD_COPY(op1_insn->val.f >= op2_insn->val.f ? op1 : op2); in IR_FOLD()
1362 if (!op2) { in IR_FOLD()
1371 if (op2 == op3 && op3 != IR_UNUSED) { in IR_FOLD()
1372 IR_FOLD_COPY(op2); in IR_FOLD()
1394 IR_FOLD_COPY(op2); in IR_FOLD()
1432 if (op2 == IR_TRUE) { in IR_FOLD()
1436 op2 = IR_UNUSED; in IR_FOLD()
1443 if (op2 != IR_TRUE) { in IR_FOLD()
1447 op2 = IR_UNUSED; in IR_FOLD()
1470 op2 = IR_UNUSED; in IR_FOLD()
1511 op2 = op1_insn->op2; in IR_FOLD()
1539 op2 = op1_insn->op2; in IR_FOLD()
1597 op1 = op2; in IR_FOLD()
1598 op2 = IR_UNUSED; in IR_FOLD()
1674 op1 = op2; in IR_FOLD()
1675 op2 = op1_insn->op1; in IR_FOLD()
1684 op2 = op2_insn->op1; in IR_FOLD()
1691 if (op1_insn->op2 == op2) { in IR_FOLD()
1702 if (op2_insn->op2 == op1) { in IR_FOLD()
1713 if (op1_insn->op1 == op2) { in IR_FOLD()
1715 IR_FOLD_COPY(op1_insn->op2); in IR_FOLD()
1716 } else if (op1_insn->op2 == op2) { in IR_FOLD()
1730 op1 = op2_insn->op2; in IR_FOLD()
1731 op2 = IR_UNUSED; in IR_FOLD()
1733 } else if (op2_insn->op2 == op1) { in IR_FOLD()
1737 op2 = IR_UNUSED; in IR_FOLD()
1747 if (op1_insn->op1 == op2) { in IR_FOLD()
1750 op1 = op1_insn->op2; in IR_FOLD()
1751 op2 = IR_UNUSED; in IR_FOLD()
1763 IR_FOLD_COPY(op2_insn->op2); in IR_FOLD()
1774 op1 = op1_insn->op2; in IR_FOLD()
1775 op2 = op2_insn->op2; in IR_FOLD()
1777 } else if (op1_insn->op1 == op2_insn->op2) { in IR_FOLD()
1779 op1 = op1_insn->op2; in IR_FOLD()
1780 op2 = op2_insn->op1; in IR_FOLD()
1782 } else if (op1_insn->op2 == op2_insn->op1) { in IR_FOLD()
1785 op2 = op2_insn->op2; in IR_FOLD()
1787 } else if (op1_insn->op2 == op2_insn->op2) { in IR_FOLD()
1790 op2 = op2_insn->op1; in IR_FOLD()
1809 IR_FOLD_COPY(op2); in IR_FOLD()
1823 IR_FOLD_COPY(op2); in IR_FOLD()
1830 op2 = IR_UNUSED; in IR_FOLD()
1844 op2 = op1; in IR_FOLD()
1849 op2 = IR_UNUSED; in IR_FOLD()
1863 op2 = op1; in IR_FOLD()
1868 op2 = IR_UNUSED; in IR_FOLD()
1896 op2 = IR_UNUSED; in IR_FOLD()
1926 op2 = IR_UNUSED; in IR_FOLD()
1940 op2 = IR_UNUSED; in IR_FOLD()
1950 op2 = op2_insn->op1; in IR_FOLD()
1956 IR_FOLD_COPY(op2_insn->val.b ? op1 : op2); in IR_FOLD()
1965 IR_FOLD_COPY(op2); in IR_FOLD()
1977 IR_FOLD_COPY(op2); in IR_FOLD()
1989 IR_FOLD_COPY(op2); in IR_FOLD()
2001 IR_FOLD_COPY(op2); in IR_FOLD()
2010 IR_FOLD_COPY(op2_insn->val.b ? op2 : op1); in IR_FOLD()
2019 IR_FOLD_COPY(op2); in IR_FOLD()
2031 IR_FOLD_COPY(op2); in IR_FOLD()
2043 IR_FOLD_COPY(op2); in IR_FOLD()
2055 IR_FOLD_COPY(op2); in IR_FOLD()
2070 op2 = IR_UNUSED; in IR_FOLD()
2085 op2 = IR_UNUSED; in IR_FOLD()
2100 op2 = IR_UNUSED; in IR_FOLD()
2115 op2 = IR_UNUSED; in IR_FOLD()
2130 op2 = IR_UNUSED; in IR_FOLD()
2151 op2 = op1; in IR_FOLD()
2396 if (IR_IS_CONST_REF(op1_insn->op2) in IR_FOLD()
2397 && !IR_IS_SYM_CONST(ctx->ir_base[op1_insn->op2].op) in IR_FOLD()
2398 && !(ctx->ir_base[op1_insn->op2].val.u64 in IR_FOLD()
2409 if (IR_IS_CONST_REF(op1_insn->op2)) { in IR_FOLD()
2411 uint64_t mask = ctx->ir_base[op1_insn->op2].val.u64; in IR_FOLD()
2436 if (IR_IS_CONST_REF(op1_insn->op2)) { in IR_FOLD()
2437 if (((uint8_t)-1) >> ctx->ir_base[op1_insn->op2].val.u8 == op2_insn->val.u8) { in IR_FOLD()
2447 if (IR_IS_CONST_REF(op1_insn->op2)) { in IR_FOLD()
2448 if (((uint16_t)-1) >> ctx->ir_base[op1_insn->op2].val.u16 == op2_insn->val.u16) { in IR_FOLD()
2458 if (IR_IS_CONST_REF(op1_insn->op2)) { in IR_FOLD()
2459 if (((uint32_t)-1) >> ctx->ir_base[op1_insn->op2].val.u32 == op2_insn->val.u32) { in IR_FOLD()
2469 if (IR_IS_CONST_REF(op1_insn->op2)) { in IR_FOLD()
2470 if (((uint64_t)-1) >> ctx->ir_base[op1_insn->op2].val.u64 == op2_insn->val.u64) { in IR_FOLD()
2492 op2 = ir_const_float(ctx, (float)op2_insn->val.d); in IR_FOLD()
2505 if (IR_IS_CONST_REF(op1_insn->op2) && !IR_IS_SYM_CONST(ctx->ir_base[op1_insn->op2].op)) { in IR_FOLD()
2507 val.u64 = ctx->ir_base[op1_insn->op2].val.u64 + op2_insn->val.u64; in IR_FOLD()
2509 op2 = ir_const(ctx, val, IR_OPT_TYPE(opt)); in IR_FOLD()
2520 if (IR_IS_CONST_REF(op1_insn->op2) && !IR_IS_SYM_CONST(ctx->ir_base[op1_insn->op2].op)) { in IR_FOLD()
2522 val.i64 = ctx->ir_base[op1_insn->op2].val.u64 + op2_insn->val.u64; in IR_FOLD()
2524 op2 = ir_const(ctx, val, IR_OPT_TYPE(opt)); in IR_FOLD()
2536 if (IR_IS_CONST_REF(op1_insn->op2) && !IR_IS_SYM_CONST(ctx->ir_base[op1_insn->op2].op)) { in IR_FOLD()
2538 val.u64 = op2_insn->val.u64 - ctx->ir_base[op1_insn->op2].val.u64; in IR_FOLD()
2540 op2 = ir_const(ctx, val, IR_OPT_TYPE(opt)); in IR_FOLD()
2546 op2 = op1_insn->op2; in IR_FOLD()
2558 if (IR_IS_CONST_REF(op1_insn->op2) && !IR_IS_SYM_CONST(ctx->ir_base[op1_insn->op2].op)) { in IR_FOLD()
2560 val.i64 = op2_insn->val.u64 - ctx->ir_base[op1_insn->op2].val.u64; in IR_FOLD()
2566 op2 = ir_const(ctx, val, IR_OPT_TYPE(opt)); in IR_FOLD()
2572 op2 = op1_insn->op2; in IR_FOLD()
2585 if (IR_IS_CONST_REF(op1_insn->op2) && !IR_IS_SYM_CONST(ctx->ir_base[op1_insn->op2].op)) { in IR_FOLD()
2587 val.u64 = ctx->ir_base[op1_insn->op2].val.u64 - op2_insn->val.u64; in IR_FOLD()
2590 op2 = ir_const(ctx, val, IR_OPT_TYPE(opt)); in IR_FOLD()
2601 if (IR_IS_CONST_REF(op1_insn->op2) && !IR_IS_SYM_CONST(ctx->ir_base[op1_insn->op2].op)) { in IR_FOLD()
2603 val.i64 = ctx->ir_base[op1_insn->op2].val.u64 - op2_insn->val.u64; in IR_FOLD()
2610 op2 = ir_const(ctx, val, IR_OPT_TYPE(opt)); in IR_FOLD()
2622 if (IR_IS_CONST_REF(op2_insn->op2) && !IR_IS_SYM_CONST(ctx->ir_base[op2_insn->op2].op)) { in IR_FOLD()
2624 val.u64 = op1_insn->val.u64 - ctx->ir_base[op2_insn->op2].val.u64; in IR_FOLD()
2625 op2 = op2_insn->op1; in IR_FOLD()
2637 if (IR_IS_CONST_REF(op2_insn->op2) && !IR_IS_SYM_CONST(ctx->ir_base[op2_insn->op2].op)) { in IR_FOLD()
2639 val.i64 = op1_insn->val.u64 - ctx->ir_base[op2_insn->op2].val.u64; in IR_FOLD()
2640 op2 = op2_insn->op1; in IR_FOLD()
2653 if (IR_IS_CONST_REF(op1_insn->op2) && !IR_IS_SYM_CONST(ctx->ir_base[op1_insn->op2].op)) { in IR_FOLD()
2655 val.u64 = ctx->ir_base[op1_insn->op2].val.u64 + op2_insn->val.u64; in IR_FOLD()
2661 op2 = ir_const(ctx, val, IR_OPT_TYPE(opt)); in IR_FOLD()
2666 op2 = op1_insn->op2; in IR_FOLD()
2678 if (IR_IS_CONST_REF(op1_insn->op2) && !IR_IS_SYM_CONST(ctx->ir_base[op1_insn->op2].op)) { in IR_FOLD()
2680 val.i64 = ctx->ir_base[op1_insn->op2].val.u64 + op2_insn->val.u64; in IR_FOLD()
2686 op2 = ir_const(ctx, val, IR_OPT_TYPE(opt)); in IR_FOLD()
2691 op2 = op1_insn->op2; in IR_FOLD()
2704 if (IR_IS_CONST_REF(op2_insn->op2) && !IR_IS_SYM_CONST(ctx->ir_base[op2_insn->op2].op)) { in IR_FOLD()
2706 val.u64 = op1_insn->val.u64 + ctx->ir_base[op2_insn->op2].val.u64; in IR_FOLD()
2707 op2 = op2_insn->op1; in IR_FOLD()
2717 op1 = op2_insn->op2; in IR_FOLD()
2718 op2 = ir_const(ctx, val, IR_OPT_TYPE(opt)); in IR_FOLD()
2729 if (IR_IS_CONST_REF(op2_insn->op2) && !IR_IS_SYM_CONST(ctx->ir_base[op2_insn->op2].op)) { in IR_FOLD()
2731 val.i64 = op1_insn->val.u64 + ctx->ir_base[op2_insn->op2].val.u64; in IR_FOLD()
2732 op2 = op2_insn->op1; in IR_FOLD()
2742 op1 = op2_insn->op2; in IR_FOLD()
2743 op2 = ir_const(ctx, val, IR_OPT_TYPE(opt)); in IR_FOLD()
2755 if (IR_IS_CONST_REF(op1_insn->op2) && !IR_IS_SYM_CONST(ctx->ir_base[op1_insn->op2].op)) { in IR_FOLD()
2757 val.u64 = ctx->ir_base[op1_insn->op2].val.u64 * op2_insn->val.u64; in IR_FOLD()
2759 op2 = ir_const(ctx, val, IR_OPT_TYPE(opt)); in IR_FOLD()
2770 if (IR_IS_CONST_REF(op1_insn->op2) && !IR_IS_SYM_CONST(ctx->ir_base[op1_insn->op2].op)) { in IR_FOLD()
2772 val.i64 = ctx->ir_base[op1_insn->op2].val.u64 * op2_insn->val.u64; in IR_FOLD()
2774 op2 = ir_const(ctx, val, IR_OPT_TYPE(opt)); in IR_FOLD()
2790 if (IR_IS_CONST_REF(op1_insn->op2) && !IR_IS_SYM_CONST(ctx->ir_base[op1_insn->op2].op)) { in IR_FOLD()
2792 val.u64 = ctx->ir_base[op1_insn->op2].val.u64 & op2_insn->val.u64; in IR_FOLD()
2794 op2 = ir_const(ctx, val, IR_OPT_TYPE(opt)); in IR_FOLD()
2810 if (IR_IS_CONST_REF(op1_insn->op2) && !IR_IS_SYM_CONST(ctx->ir_base[op1_insn->op2].op)) { in IR_FOLD()
2812 val.u64 = ctx->ir_base[op1_insn->op2].val.u64 | op2_insn->val.u64; in IR_FOLD()
2814 op2 = ir_const(ctx, val, IR_OPT_TYPE(opt)); in IR_FOLD()
2830 if (IR_IS_CONST_REF(op1_insn->op2) && !IR_IS_SYM_CONST(ctx->ir_base[op1_insn->op2].op)) { in IR_FOLD()
2832 val.u64 = ctx->ir_base[op1_insn->op2].val.u64 ^ op2_insn->val.u64; in IR_FOLD()
2834 op2 = ir_const(ctx, val, IR_OPT_TYPE(opt)); in IR_FOLD()
2845 if (op1_insn->op1 == op2 || op1_insn->op2 == op2) { in IR_FOLD()
2846 IR_FOLD_COPY(op2); in IR_FOLD()
2853 if (op1_insn->op1 == op2) { in IR_FOLD()
2854 IR_FOLD_COPY(op1_insn->op2); in IR_FOLD()
2855 } else if (op1_insn->op2 == op2) { in IR_FOLD()
2868 if (IR_IS_CONST_REF(op1_insn->op2) && IR_IS_CONST_REF(op2_insn->op2)) { in IR_FOLD()
2869 if (ctx->ir_base[op1_insn->op2].val.u64 + ctx->ir_base[op2_insn->op2].val.u64 == in IR_FOLD()
2873 op2 = op1_insn->op2; in IR_FOLD()
2877 } else if (ctx->ir_base[op2_insn->op2].op == IR_SUB in IR_FOLD()
2878 && IR_IS_CONST_REF(ctx->ir_base[op2_insn->op2].op1) in IR_FOLD()
2879 && ctx->ir_base[op2_insn->op2].op2 == op1_insn->op2 in IR_FOLD()
2880 … && ctx->ir_base[ctx->ir_base[op2_insn->op2].op1].val.u64 == ir_type_size[IR_OPT_TYPE(opt)] * 8) { in IR_FOLD()
2883 op2 = op1_insn->op2; in IR_FOLD()
2886 } else if (ctx->ir_base[op1_insn->op2].op == IR_SUB in IR_FOLD()
2887 && IR_IS_CONST_REF(ctx->ir_base[op1_insn->op2].op1) in IR_FOLD()
2888 && ctx->ir_base[op1_insn->op2].op2 == op2_insn->op2 in IR_FOLD()
2889 … && ctx->ir_base[ctx->ir_base[op1_insn->op2].op1].val.u64 == ir_type_size[IR_OPT_TYPE(opt)] * 8) { in IR_FOLD()
2892 op2 = op2_insn->op2; in IR_FOLD()
2905 if (op1 < op2) { /* move lower ref to op2 */ in IR_FOLD_NAMED()
2906 SWAP_REFS(op1, op2); in IR_FOLD_NAMED()
2915 if (op1 < op2) { /* move lower ref to op2 */ in IR_FOLD()
2916 SWAP_REFS(op1, op2); in IR_FOLD()
2925 if (IR_IS_TYPE_INT(IR_OPT_TYPE(opt)) && op1 == op2) { in IR_FOLD()
2930 op2 = ir_const(ctx, val, IR_OPT_TYPE(opt)); in IR_FOLD()
2938 if (IR_IS_TYPE_INT(IR_OPT_TYPE(opt)) && op1 == op2) { in IR_FOLD()
2946 if (op1 == op2) { in IR_FOLD()
2960 if (op1 == op2) { in IR_FOLD()
2969 if (op1 == op2) { in IR_FOLD()
2978 if (op1 != op2) { in IR_FOLD()
2992 if (op1 == op2) { in IR_FOLD()
2997 } else if (op1 < op2) { /* move lower ref to op2 */ in IR_FOLD()
2998 SWAP_REFS(op1, op2); in IR_FOLD()
3010 if (op1 == op2) { in IR_FOLD()
3013 } else if (op1 < op2) { /* move lower ref to op2 */ in IR_FOLD()
3014 SWAP_REFS(op1, op2); in IR_FOLD()
3022 if (op2 == op3) { in IR_FOLD()
3023 IR_FOLD_COPY(op2); in IR_FOLD()