diff options
Diffstat (limited to 'gcc/config/arm/arm.c')
-rw-r--r-- | gcc/config/arm/arm.c | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/gcc/config/arm/arm.c b/gcc/config/arm/arm.c index 6da6f68..723d27e 100644 --- a/gcc/config/arm/arm.c +++ b/gcc/config/arm/arm.c @@ -12238,18 +12238,16 @@ neon_valid_immediate (rtx op, machine_mode mode, int inverse, bool vector = GET_CODE (op) == CONST_VECTOR; if (vector) - { - n_elts = CONST_VECTOR_NUNITS (op); - innersize = GET_MODE_SIZE (GET_MODE_INNER (mode)); - } + n_elts = CONST_VECTOR_NUNITS (op); else { n_elts = 1; if (mode == VOIDmode) mode = DImode; - innersize = GET_MODE_SIZE (mode); } + innersize = GET_MODE_SIZE (GET_MODE_INNER (mode)); + /* Vectors of float constants. */ if (GET_MODE_CLASS (mode) == MODE_VECTOR_FLOAT) { @@ -12832,10 +12830,7 @@ neon_const_bounds (rtx operand, HOST_WIDE_INT low, HOST_WIDE_INT high) HOST_WIDE_INT neon_element_bits (machine_mode mode) { - if (mode == DImode) - return GET_MODE_BITSIZE (mode); - else - return GET_MODE_BITSIZE (GET_MODE_INNER (mode)); + return GET_MODE_BITSIZE (GET_MODE_INNER (mode)); } |