diff options
Diffstat (limited to 'gcc/cselib.c')
-rw-r--r-- | gcc/cselib.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/cselib.c b/gcc/cselib.c index 88a74b4..33a0666 100644 --- a/gcc/cselib.c +++ b/gcc/cselib.c @@ -1009,8 +1009,9 @@ rtx_equal_for_cselib_1 (rtx x, rtx y, enum machine_mode memmode) static rtx wrap_constant (enum machine_mode mode, rtx x) { - if (!CONST_INT_P (x) && GET_CODE (x) != CONST_FIXED - && (GET_CODE (x) != CONST_DOUBLE || GET_MODE (x) != VOIDmode)) + if (!CONST_INT_P (x) + && GET_CODE (x) != CONST_FIXED + && !CONST_DOUBLE_AS_INT_P (x)) return x; gcc_assert (mode != VOIDmode); return gen_rtx_CONST (mode, x); |