Re: [PATCH] Add new target-hook truncated_to_mode

2006-03-13 Thread Richard Sandiford
Paolo Bonzini <[EMAIL PROTECTED]> writes: >>> bool >>> truncated_to_mode (enum machine_mode mode, rtx x) >>> { >>>if (REG_P (x) && rtl_hooks.reg_truncated_to_mode (mode, x)) >>> return true; >>> >>>gcc_assert (!TRULY_NOOP_TRUNCATION (GET_MODE_BITSIZE (mode), >>>

Re: [PATCH] Add new target-hook truncated_to_mode

2006-03-13 Thread Paolo Bonzini
bool truncated_to_mode (enum machine_mode mode, rtx x) { if (REG_P (x) && rtl_hooks.reg_truncated_to_mode (mode, x)) return true; gcc_assert (!TRULY_NOOP_TRUNCATION (GET_MODE_BITSIZE (mode), GET_MODE_BITSIZE (GET_MODE (x))); return num_sign_b