diff options
author | Richard Sandiford <richard.sandiford@linaro.org> | 2017-08-30 11:12:28 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2017-08-30 11:12:28 +0000 |
commit | 99767219d617a30394777086fa9ca776390d7098 (patch) | |
tree | af997f78100816cb663c1ab347f80ef1edf80c3c /gcc/expr.c | |
parent | 546513775069e93d5f33f7aae5f1cb26c77ca2c9 (diff) | |
download | gcc-99767219d617a30394777086fa9ca776390d7098.zip gcc-99767219d617a30394777086fa9ca776390d7098.tar.gz gcc-99767219d617a30394777086fa9ca776390d7098.tar.bz2 |
[29/77] Make some *_loc_descriptor helpers take scalar_int_mode
The *_loc_descriptor routines for clz, popcount, bswap and rotate
all required SCALAR_INT_MODE_P. This patch moves the checks into
the caller (mem_loc_descriptor) so that the types of the mode
parameters can be scalar_int_mode instead of machine_mode.
The MOD handling in mem_loc_descriptor is also specific to
scalar integer modes. Adding an explicit check allows
typed_binop to take a scalar_int_mode too.
2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
Alan Hayward <alan.hayward@arm.com>
David Sherwood <david.sherwood@arm.com>
gcc/
* dwarf2out.c (typed_binop): Change mode parameter to scalar_int_mode.
(clz_loc_descriptor): Likewise. Remove SCALAR_INT_MODE_P check.
(popcount_loc_descriptor): Likewise.
(bswap_loc_descriptor): Likewise.
(rotate_loc_descriptor): Likewise.
(mem_loc_descriptor): Add is_a <scalar_int_mode> checks before
calling the functions above.
Co-Authored-By: Alan Hayward <alan.hayward@arm.com>
Co-Authored-By: David Sherwood <david.sherwood@arm.com>
From-SVN: r251481
Diffstat (limited to 'gcc/expr.c')
0 files changed, 0 insertions, 0 deletions