diff options
author | Richard Sandiford <richard.sandiford@arm.com> | 2015-07-28 19:59:40 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2015-07-28 19:59:40 +0000 |
commit | 2a870875df5b51ff8803dc0062fdcb02d15b364d (patch) | |
tree | 89bfddfae877a517ba1a218ff9c9be07f1e81d11 /gcc/emit-rtl.c | |
parent | 3b0b0013f6dbe34d2e1ddeacd7e7c26752575680 (diff) | |
download | gcc-2a870875df5b51ff8803dc0062fdcb02d15b364d.zip gcc-2a870875df5b51ff8803dc0062fdcb02d15b364d.tar.gz gcc-2a870875df5b51ff8803dc0062fdcb02d15b364d.tar.bz2 |
target-insns.def (can_extend, ptr_extend): New targetm instruction patterns.
gcc/
* target-insns.def (can_extend, ptr_extend): New targetm instruction
patterns.
* optabs.c (can_extend_p): Use them instead of HAVE_*/gen_* interface.
* simplify-rtx.c (simplify_unary_operation_1): Likewise.
* emit-rtl.c (set_reg_attrs_from_value): Likewise.
* rtlanal.c (nonzero_bits1): Likewise.
(num_sign_bit_copies1): Likewise.
From-SVN: r226324
Diffstat (limited to 'gcc/emit-rtl.c')
-rw-r--r-- | gcc/emit-rtl.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gcc/emit-rtl.c b/gcc/emit-rtl.c index ed2b30b..caa33b8 100644 --- a/gcc/emit-rtl.c +++ b/gcc/emit-rtl.c @@ -1159,9 +1159,10 @@ set_reg_attrs_from_value (rtx reg, rtx x) || GET_CODE (x) == TRUNCATE || (GET_CODE (x) == SUBREG && subreg_lowpart_p (x))) { -#if defined(POINTERS_EXTEND_UNSIGNED) && !defined(HAVE_ptr_extend) - if ((GET_CODE (x) == SIGN_EXTEND && POINTERS_EXTEND_UNSIGNED) - || (GET_CODE (x) != SIGN_EXTEND && ! POINTERS_EXTEND_UNSIGNED)) +#if defined(POINTERS_EXTEND_UNSIGNED) + if (((GET_CODE (x) == SIGN_EXTEND && POINTERS_EXTEND_UNSIGNED) + || (GET_CODE (x) != SIGN_EXTEND && ! POINTERS_EXTEND_UNSIGNED)) + && !targetm.have_ptr_extend ()) can_be_reg_pointer = false; #endif x = XEXP (x, 0); |