This is the mail archive of the
mailing list for the GCC project.
Re: Fix middle-end/17767
- From: Uros Bizjak <uros at kss-loka dot si>
- To: Richard Henderson <rth at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org, Roger Sayle <roger at eyesopen dot com>
- Date: Tue, 04 Jan 2005 12:02:14 +0100
- Subject: Re: Fix middle-end/17767
- References: <41DA5F7A.email@example.com> <20050104103457.GD2303@redhat.com>
Richard Henderson wrote:
No, a *proper* solution is to perform the comparison element-by-elementPlease note that this code will be used only when (folded_arg0 ==
folded_arg1). In this special case the asumption that the resulting
vector has all elements equal is valid.
as the real vector compare instruction does. Producing only 0 or
only 0xffff_ffff_ffff_ffff is no good.
[All other cases are protected by some kond of "if (const_arg1 ==
const0_rtx)" that is false for CONST_VECTOR].
I think you should just always skip vector compares for 4.0.They are skipped, until someone defines VECTOR_STORE_FLAG_VALUE.
Currently this macro is undefined for all architectures.