Lines Matching refs:to_mode
313 enum machine_mode to_mode = GET_MODE (to); in convert_move() local
315 int to_real = SCALAR_FLOAT_MODE_P (to_mode); in convert_move()
326 gcc_assert (to_mode != BLKmode); in convert_move()
340 >= GET_MODE_PRECISION (to_mode)) in convert_move()
342 from = gen_lowpart (to_mode, from), from_mode = to_mode; in convert_move()
346 if (to_mode == from_mode in convert_move()
353 if (VECTOR_MODE_P (to_mode) || VECTOR_MODE_P (from_mode)) in convert_move()
355 gcc_assert (GET_MODE_BITSIZE (from_mode) == GET_MODE_BITSIZE (to_mode)); in convert_move()
357 if (VECTOR_MODE_P (to_mode)) in convert_move()
358 from = simplify_gen_subreg (to_mode, from, GET_MODE (from), 0); in convert_move()
379 != GET_MODE_PRECISION (to_mode)) in convert_move()
381 != DECIMAL_FLOAT_MODE_P (to_mode))); in convert_move()
383 if (GET_MODE_PRECISION (from_mode) == GET_MODE_PRECISION (to_mode)) in convert_move()
386 else if (GET_MODE_PRECISION (from_mode) < GET_MODE_PRECISION (to_mode)) in convert_move()
393 code = convert_optab_handler (tab, to_mode, from_mode); in convert_move()
402 libcall = convert_optab_libfunc (tab, to_mode, from_mode); in convert_move()
408 value = emit_library_call_value (libcall, NULL_RTX, LCT_CONST, to_mode, in convert_move()
413 tab == trunc_optab ? gen_rtx_FLOAT_TRUNCATE (to_mode, in convert_move()
415 : gen_rtx_FLOAT_EXTEND (to_mode, from)); in convert_move()
422 if (GET_MODE_CLASS (to_mode) == MODE_PARTIAL_INT) in convert_move()
425 = smallest_mode_for_size (GET_MODE_BITSIZE (to_mode), MODE_INT); in convert_move()
427 gcc_assert (convert_optab_handler (trunc_optab, to_mode, full_mode) in convert_move()
432 emit_unop_insn (convert_optab_handler (trunc_optab, to_mode, full_mode), in convert_move()
445 if (to_mode == full_mode) in convert_move()
464 ALL_SCALAR_FIXED_POINT_MODE_P (to_mode)); in convert_move()
470 if (GET_MODE_CLASS (from_mode) == GET_MODE_CLASS (to_mode) in convert_move()
471 && GET_MODE_SIZE (from_mode) < GET_MODE_SIZE (to_mode)) in convert_move()
481 if (GET_MODE_PRECISION (from_mode) < GET_MODE_PRECISION (to_mode) in convert_move()
482 && GET_MODE_PRECISION (to_mode) > BITS_PER_WORD) in convert_move()
490 int nwords = CEIL (GET_MODE_SIZE (to_mode), UNITS_PER_WORD); in convert_move()
493 if ((code = can_extend_p (to_mode, from_mode, unsignedp)) in convert_move()
507 && ((code = can_extend_p (to_mode, word_mode, unsignedp)) in convert_move()
554 rtx subword = operand_subword (to, index, 1, to_mode); in convert_move()
571 && GET_MODE_PRECISION (to_mode) <= BITS_PER_WORD) in convert_move()
575 && direct_load[(int) to_mode] in convert_move()
588 if (GET_MODE_BITSIZE (to_mode) < GET_MODE_BITSIZE (from_mode) in convert_move()
589 && TRULY_NOOP_TRUNCATION_MODES_P (to_mode, from_mode)) in convert_move()
593 && direct_load[(int) to_mode] in convert_move()
599 && ! HARD_REGNO_MODE_OK (REGNO (from), to_mode)) in convert_move()
601 emit_move_insn (to, gen_lowpart (to_mode, from)); in convert_move()
606 if (GET_MODE_PRECISION (to_mode) > GET_MODE_PRECISION (from_mode)) in convert_move()
609 if ((code = can_extend_p (to_mode, from_mode, unsignedp)) in convert_move()
624 if (((can_extend_p (to_mode, intermediate, unsignedp) in convert_move()
626 || (GET_MODE_SIZE (to_mode) < GET_MODE_SIZE (intermediate) in convert_move()
627 && TRULY_NOOP_TRUNCATION_MODES_P (to_mode, intermediate))) in convert_move()
638 shift_amount = (GET_MODE_PRECISION (to_mode) in convert_move()
640 from = gen_lowpart (to_mode, force_reg (from_mode, from)); in convert_move()
641 tmp = expand_shift (LSHIFT_EXPR, to_mode, from, shift_amount, in convert_move()
643 tmp = expand_shift (RSHIFT_EXPR, to_mode, tmp, shift_amount, in convert_move()
652 if (convert_optab_handler (trunc_optab, to_mode, in convert_move()
655 emit_unop_insn (convert_optab_handler (trunc_optab, to_mode, from_mode), in convert_move()
667 if (GET_MODE_PRECISION (to_mode) < GET_MODE_PRECISION (from_mode)) in convert_move()
669 rtx temp = force_reg (to_mode, gen_lowpart (to_mode, from)); in convert_move()