rtl.h (rtvec_all_equal_p): Declare.
authorRichard Sandiford <richard.sandiford@arm.com>
Thu, 20 Aug 2015 19:04:34 +0000 (19:04 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Thu, 20 Aug 2015 19:04:34 +0000 (19:04 +0000)
commit92695fbb294bf7fe051041e3143f51c37cc22f82
tree88a816e3cb8340cc79bfdf29195dc3a1e20fd9e6
parentc629c24604222d7b3a8e6c8a5010f4f3d2a1b1a6
rtl.h (rtvec_all_equal_p): Declare.

gcc/
* rtl.h (rtvec_all_equal_p): Declare.
(const_vec_duplicate_p, unwrap_const_vec_duplicate): New functions.
* rtl.c (rtvec_all_equal_p): New function.
* expmed.c (expand_mult): Use unwrap_const_vec_duplicate.
* config/aarch64/aarch64.c (aarch64_vect_float_const_representable_p)
(aarch64_simd_dup_constant): Use const_vec_duplicate_p.
* config/arm/arm.c (neon_vdup_constant): Likewise.
* config/s390/s390.c (s390_contiguous_bitmask_vector_p): Likewise.
* config/tilegx/constraints.md (W, Y): Likewise.
* config/tilepro/constraints.md (W, Y): Likewise.
* config/spu/spu.c (spu_legitimate_constant_p): Likewise.
(classify_immediate): Use unwrap_const_vec_duplicate.
* config/tilepro/predicates.md (reg_or_v4s8bit_operand): Likewise.
(reg_or_v2s8bit_operand): Likewise.
* config/tilegx/predicates.md (reg_or_v8s8bit_operand): Likewise.
(reg_or_v4s8bit_operand): Likewise.

From-SVN: r227041
12 files changed:
gcc/ChangeLog
gcc/config/aarch64/aarch64.c
gcc/config/arm/arm.c
gcc/config/s390/s390.c
gcc/config/spu/spu.c
gcc/config/tilegx/constraints.md
gcc/config/tilegx/predicates.md
gcc/config/tilepro/constraints.md
gcc/config/tilepro/predicates.md
gcc/expmed.c
gcc/rtl.c
gcc/rtl.h