Lines Matching refs:code
145 add_equal_note (rtx insns, rtx target, enum rtx_code code, rtx op0, rtx op1) in add_equal_note() argument
152 if (GET_RTX_CLASS (code) != RTX_COMM_ARITH in add_equal_note()
153 && GET_RTX_CLASS (code) != RTX_BIN_ARITH in add_equal_note()
154 && GET_RTX_CLASS (code) != RTX_COMM_COMPARE in add_equal_note()
155 && GET_RTX_CLASS (code) != RTX_COMPARE in add_equal_note()
156 && GET_RTX_CLASS (code) != RTX_UNARY) in add_equal_note()
192 if (GET_RTX_CLASS (code) == RTX_UNARY) in add_equal_note()
193 note = gen_rtx_fmt_e (code, GET_MODE (target), copy_rtx (op0)); in add_equal_note()
195 note = gen_rtx_fmt_ee (code, GET_MODE (target), copy_rtx (op0), copy_rtx (op1)); in add_equal_note()
246 optab_for_tree_code (enum tree_code code, tree type) in optab_for_tree_code() argument
249 switch (code) in optab_for_tree_code()
324 switch (code) in optab_for_tree_code()
586 rtx x = simplify_binary_operation (binoptab->code, mode, op0, op1); in simplify_expand_binop()
1153 expand_simple_binop (enum machine_mode mode, enum rtx_code code, rtx op0, in expand_simple_binop() argument
1157 optab binop = code_to_optab[(int) code]; in expand_simple_binop()
1209 int shift_op = (binoptab->code == ASHIFT in expand_binop()
1210 || binoptab->code == ASHIFTRT in expand_binop()
1211 || binoptab->code == LSHIFTRT in expand_binop()
1212 || binoptab->code == ROTATE in expand_binop()
1213 || binoptab->code == ROTATERT); in expand_binop()
1232 && rtx_cost (op0, binoptab->code) > COSTS_N_INSNS (1)) in expand_binop()
1240 && ! shift_op && rtx_cost (op1, binoptab->code) > COSTS_N_INSNS (1)) in expand_binop()
1254 if (GET_RTX_CLASS (binoptab->code) == RTX_COMM_ARITH in expand_binop()
1343 && ! add_equal_note (pat, temp, binoptab->code, xop0, xop1)) in expand_binop()
1493 if (binoptab->code != UNKNOWN) in expand_binop()
1495 = gen_rtx_fmt_ee (binoptab->code, mode, in expand_binop()
1569 equiv_value = gen_rtx_fmt_ee (binoptab->code, mode, op0, op1); in expand_binop()
1803 gen_rtx_fmt_ee (binoptab->code, mode, in expand_binop()
1900 gen_rtx_fmt_ee (binoptab->code, mode, op0, op1)); in expand_binop()
2156 && rtx_cost (op0, binoptab->code) > COSTS_N_INSNS (1)) in expand_twoval_binop()
2160 && rtx_cost (op1, binoptab->code) > COSTS_N_INSNS (1)) in expand_twoval_binop()
2265 rtx targ0, rtx targ1, enum rtx_code code) in expand_twoval_binop_libfunc() argument
2296 gen_rtx_fmt_ee (code, mode, op0, op1)); in expand_twoval_binop_libfunc()
2306 expand_simple_unop (enum machine_mode mode, enum rtx_code code, rtx op0, in expand_simple_unop() argument
2309 optab unop = code_to_optab[(int) code]; in expand_simple_unop()
2417 expand_absneg_bit (enum rtx_code code, enum machine_mode mode, in expand_absneg_bit() argument
2436 if (code == NEG && !fmt->has_signed_zero) in expand_absneg_bit()
2469 if (code == ABS) in expand_absneg_bit()
2486 temp = expand_binop (imode, code == ABS ? and_optab : xor_optab, in expand_absneg_bit()
2500 temp = gen_rtx_fmt_e (code, mode, copy_rtx (op0)); in expand_absneg_bit()
2505 temp = expand_binop (imode, code == ABS ? and_optab : xor_optab, in expand_absneg_bit()
2512 gen_rtx_fmt_e (code, mode, copy_rtx (op0))); in expand_absneg_bit()
2568 && ! add_equal_note (pat, temp, unoptab->code, xop0, NULL_RTX)) in expand_unop()
2668 gen_rtx_fmt_e (unoptab->code, mode, in expand_unop()
2673 if (unoptab->code == NEG) in expand_unop()
2731 gen_rtx_fmt_e (unoptab->code, outmode, op0)); in expand_unop()
2790 if (unoptab->code == NEG && !HONOR_SIGNED_ZEROS (mode)) in expand_unop()
3160 emit_unop_insn (int icode, rtx target, rtx op0, enum rtx_code code) in emit_unop_insn() argument
3178 if (INSN_P (pat) && NEXT_INSN (pat) != NULL_RTX && code != UNKNOWN) in emit_unop_insn()
3179 add_equal_note (pat, temp, code, op0, NULL_RTX); in emit_unop_insn()
3547 can_compare_p (enum rtx_code code, enum machine_mode mode, in can_compare_p() argument
3555 return bcc_gen_fctn[(int) code] != NULL; in can_compare_p()
3557 return setcc_gen_code[(int) code] != CODE_FOR_nothing; in can_compare_p()
4051 emit_conditional_move (rtx target, enum rtx_code code, rtx op0, rtx op1, in emit_conditional_move() argument
4067 code = swap_condition (code); in emit_conditional_move()
4073 if (code == LT && op1 == const1_rtx) in emit_conditional_move()
4074 code = LE, op1 = const0_rtx; in emit_conditional_move()
4075 else if (code == GT && op1 == constm1_rtx) in emit_conditional_move()
4076 code = GE, op1 = const0_rtx; in emit_conditional_move()
4082 && ((reversed = reversed_comparison_code_parts (code, op0, op1, NULL)) in emit_conditional_move()
4088 code = reversed; in emit_conditional_move()
4122 = compare_from_rtx (op0, op1, code, unsignedp, cmode, NULL_RTX); in emit_conditional_move()
4128 if (GET_CODE (comparison) != code) in emit_conditional_move()
4179 emit_conditional_add (rtx target, enum rtx_code code, rtx op0, rtx op1, in emit_conditional_add() argument
4195 code = swap_condition (code); in emit_conditional_add()
4201 if (code == LT && op1 == const1_rtx) in emit_conditional_add()
4202 code = LE, op1 = const0_rtx; in emit_conditional_add()
4203 else if (code == GT && op1 == constm1_rtx) in emit_conditional_add()
4204 code = GE, op1 = const0_rtx; in emit_conditional_add()
4210 && ((reversed = reversed_comparison_code_parts (code, op0, op1, NULL)) in emit_conditional_add()
4216 code = reversed; in emit_conditional_add()
4250 = compare_from_rtx (op0, op1, code, unsignedp, cmode, NULL_RTX); in emit_conditional_add()
4256 if (GET_CODE (comparison) != code) in emit_conditional_add()
4873 have_insn_for (enum rtx_code code, enum machine_mode mode) in have_insn_for() argument
4875 return (code_to_optab[(int) code] != 0 in have_insn_for()
4876 && (code_to_optab[(int) code]->handlers[(int) mode].insn_code in have_insn_for()
4912 init_optab (enum rtx_code code) in init_optab() argument
4915 op->code = code; in init_optab()
4916 code_to_optab[(int) code] = op; in init_optab()
4923 init_optabv (enum rtx_code code) in init_optabv() argument
4926 op->code = code; in init_optabv()
4932 init_convert_optab (enum rtx_code code) in init_convert_optab() argument
4935 op->code = code; in init_convert_optab()
5537 GET_RTX_NAME (o->code), in debug_optab_libfuncs()
5557 GET_RTX_NAME (o->code), in debug_optab_libfuncs()
5572 gen_cond_trap (enum rtx_code code ATTRIBUTE_UNUSED, rtx op1, in gen_cond_trap()
5599 PUT_CODE (trap_rtx, code); in gen_cond_trap()
5618 enum rtx_code code; in get_rtx_code() local
5622 code = EQ; in get_rtx_code()
5625 code = NE; in get_rtx_code()
5628 code = unsignedp ? LTU : LT; in get_rtx_code()
5631 code = unsignedp ? LEU : LE; in get_rtx_code()
5634 code = unsignedp ? GTU : GT; in get_rtx_code()
5637 code = unsignedp ? GEU : GE; in get_rtx_code()
5641 code = UNORDERED; in get_rtx_code()
5644 code = ORDERED; in get_rtx_code()
5647 code = UNLT; in get_rtx_code()
5650 code = UNLE; in get_rtx_code()
5653 code = UNGT; in get_rtx_code()
5656 code = UNGE; in get_rtx_code()
5659 code = UNEQ; in get_rtx_code()
5662 code = LTGT; in get_rtx_code()
5668 return code; in get_rtx_code()
5989 expand_sync_operation (rtx mem, rtx val, enum rtx_code code) in expand_sync_operation() argument
5996 switch (code) in expand_sync_operation()
6022 code = PLUS; in expand_sync_operation()
6056 if (code == NOT) in expand_sync_operation()
6059 code = AND; in expand_sync_operation()
6061 t1 = expand_simple_binop (mode, code, t1, val, NULL_RTX, in expand_sync_operation()
6081 expand_sync_fetch_operation (rtx mem, rtx val, enum rtx_code code, in expand_sync_fetch_operation() argument
6090 switch (code) in expand_sync_fetch_operation()
6123 code = PLUS; in expand_sync_fetch_operation()
6153 && (code == PLUS || code == MINUS || code == XOR)) in expand_sync_fetch_operation()
6183 if (code == PLUS) in expand_sync_fetch_operation()
6184 code = MINUS; in expand_sync_fetch_operation()
6185 else if (code == MINUS) in expand_sync_fetch_operation()
6186 code = PLUS; in expand_sync_fetch_operation()
6189 if (code == NOT) in expand_sync_fetch_operation()
6191 target = expand_simple_binop (mode, code, target, val, NULL_RTX, in expand_sync_fetch_operation()
6213 if (code == NOT) in expand_sync_fetch_operation()
6216 code = AND; in expand_sync_fetch_operation()
6218 t1 = expand_simple_binop (mode, code, t1, val, NULL_RTX, in expand_sync_fetch_operation()