diff options
author | David Sherwood <david.sherwood@arm.com> | 2015-07-28 20:31:17 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2015-07-28 20:31:17 +0000 |
commit | 1c0e448f4bfc9538e9f8be1fd9a0b9ad9bda0dde (patch) | |
tree | d215dd29e4cf213704a2c9a5dbe053e8d2c8665d /gcc/stor-layout.c | |
parent | 726858e30955b401a568f397e22c60062a9f57a3 (diff) | |
download | gcc-1c0e448f4bfc9538e9f8be1fd9a0b9ad9bda0dde.zip gcc-1c0e448f4bfc9538e9f8be1fd9a0b9ad9bda0dde.tar.gz gcc-1c0e448f4bfc9538e9f8be1fd9a0b9ad9bda0dde.tar.bz2 |
arm.c (neon_element_bits, [...]): Call GET_MODE_INNER unconditionally.
gcc/
2015-07-28 David Sherwood <david.sherwood@arm.com>
* config/arm/arm.c (neon_element_bits, neon_valid_immediate): Call
GET_MODE_INNER unconditionally.
* config/spu/spu.c (arith_immediate_p): Likewise.
* config/i386/i386.c (ix86_build_signbit_mask): Likewise.
* expmed.c (synth_mult): Remove check for VOIDmode result from
GET_MODE_INNER.
(expand_mult_const): Likewise.
* fold-const.c (fold_binary_loc): Replace call to element_precision
with call to GET_MODE_PRECISION.
* genmodes.c (emit_mode_inner_inline): Replace void_mode->name with
m->name.
(emit_mode_inner): Likewise.
* lto-streamer-out.c (lto_write_mode_table): Update GET_MODE_INNER
result check.
* machmode.h (GET_MODE_UNIT_SIZE): Simplify.
(GET_MODE_UNIT_PRECISION): Likewise.
* rtlanal.c (subreg_get_info): Call GET_MODE_INNER unconditionally.
* simplify-rtx.c (simplify_immed_subreg): Likewise.
* stor-layout.c (bitwise_type_for_mode): Update assert.
(element_precision): Remove.
From-SVN: r226328
Diffstat (limited to 'gcc/stor-layout.c')
-rw-r--r-- | gcc/stor-layout.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/gcc/stor-layout.c b/gcc/stor-layout.c index 0d4f4a4..9757777 100644 --- a/gcc/stor-layout.c +++ b/gcc/stor-layout.c @@ -491,7 +491,7 @@ bitwise_type_for_mode (machine_mode mode) if (COMPLEX_MODE_P (mode)) return build_complex_type (inner_type); - gcc_checking_assert (GET_MODE_INNER (mode) == VOIDmode); + gcc_checking_assert (GET_MODE_INNER (mode) == mode); return inner_type; } @@ -548,18 +548,6 @@ get_mode_alignment (machine_mode mode) return MIN (BIGGEST_ALIGNMENT, MAX (1, mode_base_align[mode]*BITS_PER_UNIT)); } -/* Return the precision of the mode, or for a complex or vector mode the - precision of the mode of its elements. */ - -unsigned int -element_precision (machine_mode mode) -{ - if (COMPLEX_MODE_P (mode) || VECTOR_MODE_P (mode)) - mode = GET_MODE_INNER (mode); - - return GET_MODE_PRECISION (mode); -} - /* Return the natural mode of an array, given that it is SIZE bytes in total and has elements of type ELEM_TYPE. */ |