This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/60502] [4.8/4.9 Regression] ICE reassociation and vector types.


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60502

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
(In reply to Marc Glisse from comment #2)
> Indeed. Probably should call build_all_ones_cst instead of
> build_low_bits_mask in eliminate_not_pairs.

Agreed.  Are you going to prepare a patch, or should I?  Guess we don't want to
use v16i8 in fn return type or argument, it needs to be
typedef signed char v16i8 __attribute__ ((vector_size (16)));
typedef unsigned char v16u8 __attribute__ ((vector_size (16)));

void
foo (v16i8 *x)
{
  v16i8 op0 = *x;
  v16i8 m1 = { -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1
};
  *x = (op0 ^ m1) | (op0 & m1);
}

void
bar (v16u8 *x)
{
  v16u8 op0 = *x;
  v16u8 m1 = { -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1
};
  *x = (op0 ^ m1) | (op0 & m1);
}

instead.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]