Lines Matching refs:int_mode

386   scalar_int_mode int_mode;  in flip_storage_order()  local
406 if (!is_a <scalar_int_mode> (mode, &int_mode)) in flip_storage_order()
412 if (!int_mode_for_size (GET_MODE_PRECISION (mode), 0).exists (&int_mode)) in flip_storage_order()
417 x = gen_lowpart (int_mode, x); in flip_storage_order()
420 result = simplify_unary_operation (BSWAP, int_mode, x, int_mode); in flip_storage_order()
422 result = expand_unop (int_mode, bswap_optab, x, NULL_RTX, 1); in flip_storage_order()
424 if (int_mode != mode) in flip_storage_order()
1120 scalar_int_mode int_mode; in store_bit_field() local
1123 && is_a <scalar_int_mode> (fieldmode, &int_mode) in store_bit_field()
1124 && strict_volatile_bitfield_p (str_rtx, ibitsize, ibitnum, int_mode, in store_bit_field()
1131 if (ibitsize == GET_MODE_BITSIZE (int_mode)) in store_bit_field()
1133 str_rtx = adjust_bitfield_address (str_rtx, int_mode, in store_bit_field()
1136 value = flip_storage_order (int_mode, value); in store_bit_field()
1144 str_rtx = narrow_bit_field_mem (str_rtx, int_mode, ibitsize, in store_bit_field()
1146 gcc_assert (ibitnum + ibitsize <= GET_MODE_BITSIZE (int_mode)); in store_bit_field()
1149 int_mode, value, reverse, true)) in store_bit_field()
1507 scalar_int_mode int_mode = int_mode_for_mode (tmode).require (); in convert_extracted_bit_field() local
1508 x = convert_to_mode (int_mode, x, unsignedp); in convert_extracted_bit_field()
1509 x = force_reg (int_mode, x); in convert_extracted_bit_field()
2036 scalar_int_mode int_mode; in extract_integral_bit_field() local
2037 if (!int_mode_for_mode (tmode).exists (&int_mode)) in extract_integral_bit_field()
2040 int_mode = int_mode_for_mode (mode).require (); in extract_integral_bit_field()
2042 target = extract_fixed_bit_field (int_mode, op0, op0_mode, bitsize, in extract_integral_bit_field()
2049 target = flip_storage_order (int_mode, target); in extract_integral_bit_field()
2096 scalar_int_mode int_mode; in extract_bit_field() local
2099 && is_a <scalar_int_mode> (mode1, &int_mode) in extract_bit_field()
2101 int_mode, 0, 0)) in extract_bit_field()
2107 if (ibitsize == GET_MODE_BITSIZE (int_mode)) in extract_bit_field()
2109 rtx result = adjust_bitfield_address (str_rtx, int_mode, in extract_bit_field()
2112 result = flip_storage_order (int_mode, result); in extract_bit_field()
2117 str_rtx = narrow_bit_field_mem (str_rtx, int_mode, ibitsize, ibitnum, in extract_bit_field()
2119 gcc_assert (ibitnum + ibitsize <= GET_MODE_BITSIZE (int_mode)); in extract_bit_field()
2380 scalar_int_mode int_mode, src_int_mode; in extract_low_bits() local
2415 || !int_mode_for_mode (mode).exists (&int_mode)) in extract_low_bits()
2420 if (!targetm.modes_tieable_p (int_mode, mode)) in extract_low_bits()
2424 if (!validate_subreg (int_mode, src_int_mode, src, in extract_low_bits()
2425 subreg_lowpart_offset (int_mode, src_int_mode))) in extract_low_bits()
2428 src = convert_modes (int_mode, src_int_mode, src, true); in extract_low_bits()
4395 scalar_int_mode int_mode = as_a <scalar_int_mode> (compute_mode); in expand_divmod() local
4396 int size = GET_MODE_BITSIZE (int_mode); in expand_divmod()
4402 wide_int wd = rtx_mode_t (op1, int_mode); in expand_divmod()
4413 = expand_binop (int_mode, and_optab, op0, in expand_divmod()
4414 gen_int_mode (mask, int_mode), in expand_divmod()
4420 quotient = expand_shift (RSHIFT_EXPR, int_mode, op0, in expand_divmod()
4430 int_mode, 1, 1); in expand_divmod()
4462 = (shift_cost (speed, int_mode, post_shift - 1) in expand_divmod()
4463 + shift_cost (speed, int_mode, 1) in expand_divmod()
4464 + 2 * add_cost (speed, int_mode)); in expand_divmod()
4466 (int_mode, op0, gen_int_mode (ml, int_mode), in expand_divmod()
4470 t2 = force_operand (gen_rtx_MINUS (int_mode, in expand_divmod()
4473 t3 = expand_shift (RSHIFT_EXPR, int_mode, in expand_divmod()
4475 t4 = force_operand (gen_rtx_PLUS (int_mode, in expand_divmod()
4479 (RSHIFT_EXPR, int_mode, t4, in expand_divmod()
4491 (RSHIFT_EXPR, int_mode, op0, in expand_divmod()
4494 = (shift_cost (speed, int_mode, pre_shift) in expand_divmod()
4495 + shift_cost (speed, int_mode, post_shift)); in expand_divmod()
4497 (int_mode, t1, in expand_divmod()
4498 gen_int_mode (ml, int_mode), in expand_divmod()
4503 (RSHIFT_EXPR, int_mode, t2, in expand_divmod()
4514 gen_rtx_UDIV (int_mode, op0, op1), in expand_divmod()
4541 op1 = gen_int_mode (abs_d, int_mode); in expand_divmod()
4547 quotient = expand_unop (int_mode, neg_optab, op0, in expand_divmod()
4554 int_mode, 1, 1); in expand_divmod()
4561 ? smod_pow2_cheap (speed, int_mode) in expand_divmod()
4562 : sdiv_pow2_cheap (speed, int_mode)) in expand_divmod()
4567 int_mode) in expand_divmod()
4569 || (optab_handler (sdivmod_optab, int_mode) in expand_divmod()
4576 remainder = expand_smod_pow2 (int_mode, op0, d); in expand_divmod()
4581 if (sdiv_pow2_cheap (speed, int_mode) in expand_divmod()
4582 && ((optab_handler (sdiv_optab, int_mode) in expand_divmod()
4584 || (optab_handler (sdivmod_optab, int_mode) in expand_divmod()
4587 int_mode, op0, in expand_divmod()
4589 int_mode), in expand_divmod()
4592 quotient = expand_sdiv_pow2 (int_mode, op0, abs_d); in expand_divmod()
4603 gen_rtx_DIV (int_mode, op0, in expand_divmod()
4606 int_mode)), in expand_divmod()
4609 quotient = expand_unop (int_mode, neg_optab, in expand_divmod()
4625 extra_cost = (shift_cost (speed, int_mode, post_shift) in expand_divmod()
4626 + shift_cost (speed, int_mode, size - 1) in expand_divmod()
4627 + add_cost (speed, int_mode)); in expand_divmod()
4629 (int_mode, op0, gen_int_mode (ml, int_mode), in expand_divmod()
4634 (RSHIFT_EXPR, int_mode, t1, in expand_divmod()
4637 (RSHIFT_EXPR, int_mode, op0, in expand_divmod()
4641 = force_operand (gen_rtx_MINUS (int_mode, t3, t2), in expand_divmod()
4645 = force_operand (gen_rtx_MINUS (int_mode, t2, t3), in expand_divmod()
4657 mlr = gen_int_mode (ml, int_mode); in expand_divmod()
4658 extra_cost = (shift_cost (speed, int_mode, post_shift) in expand_divmod()
4659 + shift_cost (speed, int_mode, size - 1) in expand_divmod()
4660 + 2 * add_cost (speed, int_mode)); in expand_divmod()
4661 t1 = expmed_mult_highpart (int_mode, op0, mlr, in expand_divmod()
4666 t2 = force_operand (gen_rtx_PLUS (int_mode, t1, op0), in expand_divmod()
4669 (RSHIFT_EXPR, int_mode, t2, in expand_divmod()
4672 (RSHIFT_EXPR, int_mode, op0, in expand_divmod()
4676 = force_operand (gen_rtx_MINUS (int_mode, t4, t3), in expand_divmod()
4680 = force_operand (gen_rtx_MINUS (int_mode, t3, t4), in expand_divmod()
4690 gen_rtx_DIV (int_mode, op0, op1), in expand_divmod()
4704 scalar_int_mode int_mode = as_a <scalar_int_mode> (compute_mode); in expand_divmod() local
4705 int size = GET_MODE_BITSIZE (int_mode); in expand_divmod()
4722 (int_mode, and_optab, op0, in expand_divmod()
4723 gen_int_mode (mask, int_mode), in expand_divmod()
4729 (RSHIFT_EXPR, int_mode, op0, in expand_divmod()
4744 (RSHIFT_EXPR, int_mode, op0, in expand_divmod()
4746 t2 = expand_binop (int_mode, xor_optab, op0, t1, in expand_divmod()
4748 extra_cost = (shift_cost (speed, int_mode, post_shift) in expand_divmod()
4749 + shift_cost (speed, int_mode, size - 1) in expand_divmod()
4750 + 2 * add_cost (speed, int_mode)); in expand_divmod()
4752 (int_mode, t2, gen_int_mode (ml, int_mode), in expand_divmod()
4757 (RSHIFT_EXPR, int_mode, t3, in expand_divmod()
4759 quotient = expand_binop (int_mode, xor_optab, in expand_divmod()
4769 t1 = force_operand (gen_rtx_PLUS (int_mode, in expand_divmod()
4771 t2 = expand_binop (int_mode, ior_optab, op0, t1, NULL_RTX, in expand_divmod()
4773 nsign = expand_shift (RSHIFT_EXPR, int_mode, t2, in expand_divmod()
4775 t3 = force_operand (gen_rtx_MINUS (int_mode, t1, nsign), in expand_divmod()
4777 t4 = expand_divmod (0, TRUNC_DIV_EXPR, int_mode, t3, op1, in expand_divmod()
4782 t5 = expand_unop (int_mode, one_cmpl_optab, nsign, in expand_divmod()
4784 quotient = force_operand (gen_rtx_PLUS (int_mode, t4, t5), in expand_divmod()
4887 scalar_int_mode int_mode in expand_divmod() local
4891 t1 = expand_shift (RSHIFT_EXPR, int_mode, op0, in expand_divmod()
4893 t2 = expand_binop (int_mode, and_optab, op0, in expand_divmod()
4894 gen_int_mode (d - 1, int_mode), in expand_divmod()
4896 t3 = gen_reg_rtx (int_mode); in expand_divmod()
4897 t3 = emit_store_flag (t3, NE, t2, const0_rtx, int_mode, 1, 1); in expand_divmod()
4902 do_cmp_and_jump (t2, const0_rtx, EQ, int_mode, lab); in expand_divmod()
4908 quotient = force_operand (gen_rtx_PLUS (int_mode, t1, t3), in expand_divmod()
5100 scalar_int_mode int_mode = as_a <scalar_int_mode> (compute_mode); in expand_divmod() local
5101 int size = GET_MODE_BITSIZE (int_mode); in expand_divmod()
5109 t1 = expand_shift (RSHIFT_EXPR, int_mode, op0, in expand_divmod()
5111 quotient = expand_mult (int_mode, t1, gen_int_mode (ml, int_mode), in expand_divmod()
5117 int_mode, op0, op1), in expand_divmod()
5126 scalar_int_mode int_mode = as_a <scalar_int_mode> (compute_mode); in expand_divmod() local
5130 quotient = gen_reg_rtx (int_mode); in expand_divmod()
5131 remainder = gen_reg_rtx (int_mode); in expand_divmod()
5135 quotient = expand_binop (int_mode, udiv_optab, op0, op1, in expand_divmod()
5137 tem = expand_mult (int_mode, quotient, op1, NULL_RTX, 1); in expand_divmod()
5138 remainder = expand_binop (int_mode, sub_optab, op0, tem, in expand_divmod()
5141 tem = plus_constant (int_mode, op1, -1); in expand_divmod()
5142 tem = expand_shift (RSHIFT_EXPR, int_mode, tem, 1, NULL_RTX, 1); in expand_divmod()
5143 do_cmp_and_jump (remainder, tem, LEU, int_mode, label); in expand_divmod()
5150 scalar_int_mode int_mode = as_a <scalar_int_mode> (compute_mode); in expand_divmod() local
5151 int size = GET_MODE_BITSIZE (int_mode); in expand_divmod()
5155 quotient = gen_reg_rtx (int_mode); in expand_divmod()
5156 remainder = gen_reg_rtx (int_mode); in expand_divmod()
5160 quotient = expand_binop (int_mode, sdiv_optab, op0, op1, in expand_divmod()
5162 tem = expand_mult (int_mode, quotient, op1, NULL_RTX, 0); in expand_divmod()
5163 remainder = expand_binop (int_mode, sub_optab, op0, tem, in expand_divmod()
5166 abs_rem = expand_abs (int_mode, remainder, NULL_RTX, 1, 0); in expand_divmod()
5167 abs_op1 = expand_abs (int_mode, op1, NULL_RTX, 1, 0); in expand_divmod()
5168 tem = expand_shift (LSHIFT_EXPR, int_mode, abs_rem, in expand_divmod()
5170 do_cmp_and_jump (tem, abs_op1, LTU, int_mode, label); in expand_divmod()
5171 tem = expand_binop (int_mode, xor_optab, op0, op1, in expand_divmod()
5173 mask = expand_shift (RSHIFT_EXPR, int_mode, tem, in expand_divmod()
5175 tem = expand_binop (int_mode, xor_optab, mask, const1_rtx, in expand_divmod()
5177 tem = expand_binop (int_mode, sub_optab, tem, mask, in expand_divmod()
5180 tem = expand_binop (int_mode, xor_optab, mask, op1, in expand_divmod()
5182 tem = expand_binop (int_mode, sub_optab, tem, mask, in expand_divmod()
5628 scalar_int_mode int_mode; in emit_store_flag_1() local
5629 if (is_int_mode (mode, &int_mode) in emit_store_flag_1()
5630 && GET_MODE_BITSIZE (int_mode) == BITS_PER_WORD * 2 in emit_store_flag_1()
5641 op00 = simplify_gen_subreg (word_mode, op0, int_mode, 0); in emit_store_flag_1()
5642 op01 = simplify_gen_subreg (word_mode, op0, int_mode, UNITS_PER_WORD); in emit_store_flag_1()
5657 op0h = simplify_gen_subreg (word_mode, op0, int_mode, in emit_store_flag_1()
5659 int_mode)); in emit_store_flag_1()
5684 && is_int_mode (mode, &int_mode) in emit_store_flag_1()
5686 || val_signbit_p (int_mode, STORE_FLAG_VALUE))) in emit_store_flag_1()
5692 int_target_mode = int_mode; in emit_store_flag_1()
5699 if (GET_MODE_SIZE (int_target_mode) > GET_MODE_SIZE (int_mode)) in emit_store_flag_1()
5701 op0 = convert_modes (int_target_mode, int_mode, op0, 0); in emit_store_flag_1()
5702 int_mode = int_target_mode; in emit_store_flag_1()
5706 if (int_target_mode != int_mode) in emit_store_flag_1()
5710 op0 = expand_unop (int_mode, one_cmpl_optab, op0, in emit_store_flag_1()
5718 op0 = expand_shift (RSHIFT_EXPR, int_mode, op0, in emit_store_flag_1()
5719 GET_MODE_BITSIZE (int_mode) - 1, in emit_store_flag_1()
5722 if (int_mode != int_target_mode) in emit_store_flag_1()
5723 op0 = convert_modes (int_target_mode, int_mode, op0, 0); in emit_store_flag_1()
6118 scalar_int_mode int_mode; in emit_store_flag() local
6119 if (is_int_mode (mode, &int_mode)) in emit_store_flag()
6120 return emit_store_flag_int (target, subtarget, code, op0, op1, int_mode, in emit_store_flag()