This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/62041] vector fneg codegen uses a subtract instead of an xor (x86-64)
- From: "glisse at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 07 Aug 2014 10:22:17 +0000
- Subject: [Bug rtl-optimization/62041] vector fneg codegen uses a subtract instead of an xor (x86-64)
- Auto-submitted: auto-generated
- References: <bug-62041-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62041
--- Comment #4 from Marc Glisse <glisse at gcc dot gnu.org> ---
(The gimple version works with -ffast-math at least)
In fold-const.c, fold_real_zero_addition_p has:
/* In a vector or complex, we would need to check the sign of all zeros. */
if (TREE_CODE (addend) != REAL_CST)
return false;
We should probably check the sign of all zeros indeed.