diff options
Diffstat (limited to 'gcc/recog.c')
-rw-r--r-- | gcc/recog.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/recog.c b/gcc/recog.c index 15476db..0f9d240 100644 --- a/gcc/recog.c +++ b/gcc/recog.c @@ -1189,8 +1189,9 @@ const_scalar_int_operand (rtx op, machine_mode mode) if (mode != VOIDmode) { - int prec = GET_MODE_PRECISION (mode); - int bitsize = GET_MODE_BITSIZE (mode); + scalar_int_mode int_mode = as_a <scalar_int_mode> (mode); + int prec = GET_MODE_PRECISION (int_mode); + int bitsize = GET_MODE_BITSIZE (int_mode); if (CONST_WIDE_INT_NUNITS (op) * HOST_BITS_PER_WIDE_INT > bitsize) return 0; |