diff options
author | rsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-04-30 16:15:55 +0000 |
---|---|---|
committer | rsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-04-30 16:15:55 +0000 |
commit | e3fc9ffb6e4852b6975093cf7c4090eb010beaad (patch) | |
tree | 6cc35ce9d38c53b9780ae1ed1c05fc03a67cc110 /gcc/explow.c | |
parent | 9baae48fcb4211579378405a193102b7434399b2 (diff) | |
download | gcc-e3fc9ffb6e4852b6975093cf7c4090eb010beaad.tar.gz |
gcc/
* explow.c (plus_constant): Pass "mode" to immed_double_int_const.
Use gen_int_mode rather than GEN_INT.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@198462 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/explow.c')
-rw-r--r-- | gcc/explow.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/explow.c b/gcc/explow.c index 08a66537b90..7da8bc75f19 100644 --- a/gcc/explow.c +++ b/gcc/explow.c @@ -106,10 +106,10 @@ plus_constant (enum machine_mode mode, rtx x, HOST_WIDE_INT c) if (overflow) gcc_unreachable (); - return immed_double_int_const (v, VOIDmode); + return immed_double_int_const (v, mode); } - return GEN_INT (INTVAL (x) + c); + return gen_int_mode (INTVAL (x) + c, mode); case CONST_DOUBLE: { @@ -124,7 +124,7 @@ plus_constant (enum machine_mode mode, rtx x, HOST_WIDE_INT c) To fix, add constant support wider than CONST_DOUBLE. */ gcc_assert (GET_MODE_BITSIZE (mode) <= HOST_BITS_PER_DOUBLE_INT); - return immed_double_int_const (v, VOIDmode); + return immed_double_int_const (v, mode); } case MEM: |