This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/60502] [4.8/4.9 Regression] ICE reassociation and vector types.
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 11 Mar 2014 17:16:22 +0000
- Subject: [Bug tree-optimization/60502] [4.8/4.9 Regression] ICE reassociation and vector types.
- Auto-submitted: auto-generated
- References: <bug-60502-4 at http dot gcc dot gnu dot org/bugzilla/>
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.