rtl.h (truncated_to_mode): Declare it.
authorPaolo Bonzini <bonzini@gnu.org>
Tue, 28 Feb 2006 20:32:20 +0000 (20:32 +0000)
committerAdam Nemet <nemet@gcc.gnu.org>
Tue, 28 Feb 2006 20:32:20 +0000 (20:32 +0000)
commitd3b726902460a92cefbb1be7472d2cafece201ed
treeb59a2ff0c0c65abbe656b96ae1d8a37028083f6b
parente5c7f9f582b4148974efae8c9289652601909753
rtl.h (truncated_to_mode): Declare it.

* rtl.h (truncated_to_mode): Declare it.
(struct rtl_hooks): Add reg_truncated_to_mode hook.
* rtlhooks-def.h (RTL_HOOKS_REG_TRUNCATED_TO_MODE): New macro.
(RTL_HOOKS_INITIALIZER): Include it.
* rtlhooks.c (reg_truncated_to_mode_general): New function.
* combine.c (RTL_HOOKS_REG_TRUNCATED_TO_MODE): Override to
reg_truncated_to_mode.
* rtlanal.c (truncated_to_mode): Define it.
* simplify-rtx.c (simplify_unary_operation_1): Use it.

Co-Authored-By: Adam Nemet <anemet@caviumnetworks.com>
From-SVN: r111573
gcc/ChangeLog
gcc/combine.c
gcc/rtl.h
gcc/rtlanal.c
gcc/rtlhooks-def.h
gcc/rtlhooks.c
gcc/simplify-rtx.c