This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/54703] _mm_sub_pd is incorrectly substituted with vandnps
- From: "kretz at kde dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 26 Sep 2012 10:52:38 +0000
- Subject: [Bug target/54703] _mm_sub_pd is incorrectly substituted with vandnps
- Auto-submitted: auto-generated
- References: <bug-54703-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54703
--- Comment #7 from Matthias Kretz <kretz at kde dot org> 2012-09-26 10:52:38 UTC ---
Thanks for the quick response! You guys are cool! :)
The pattern here is for calculation with extended precision:
xh = x & mask;
xl = x - xh;
yh = y & mask
yl = y - yh;
/* x * y + small = */ xh * yh + ((xh * yl + xl * yh) + (xl * yl + small));
Other than that, yes there's a lot of ANDPS is SSE code, just this pattern
which gets miscompiled is not very common.