Commit 0b19a5b9 by Richard Kenner

(struct rtx_const): Add new field DI to union.

(decode_rtx_const, case CONST_DOUBLE): Use to hash CONST_DOUBLE
representing an integer.

From-SVN: r10304
parent 969c8517
...@@ -2954,6 +2954,7 @@ struct rtx_const ...@@ -2954,6 +2954,7 @@ struct rtx_const
union { union {
union real_extract du; union real_extract du;
struct addr_const addr; struct addr_const addr;
struct {HOST_WIDE_INT high, low;} di;
} un; } un;
}; };
...@@ -2984,9 +2985,16 @@ decode_rtx_const (mode, x, value) ...@@ -2984,9 +2985,16 @@ decode_rtx_const (mode, x, value)
case CONST_DOUBLE: case CONST_DOUBLE:
value->kind = RTX_DOUBLE; value->kind = RTX_DOUBLE;
if (GET_MODE (x) != VOIDmode) if (GET_MODE (x) != VOIDmode)
value->mode = GET_MODE (x); {
bcopy ((char *) &CONST_DOUBLE_LOW (x), value->mode = GET_MODE (x);
(char *) &value->un.du, sizeof value->un.du); bcopy ((char *) &CONST_DOUBLE_LOW (x),
(char *) &value->un.du, sizeof value->un.du);
}
else
{
value->un.di.low = CONST_DOUBLE_LOW (x);
value->un.di.high = CONST_DOUBLE_HIGH (x);
}
break; break;
case CONST_INT: case CONST_INT:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment