This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/34709] [4.3 regression]: revision 131342 miscompiled 481.wrf on Linux/Intel64
- From: "ubizjak at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 Jan 2008 11:23:57 -0000
- Subject: [Bug target/34709] [4.3 regression]: revision 131342 miscompiled 481.wrf on Linux/Intel64
- References: <bug-34709-682@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from ubizjak at gmail dot com 2008-01-08 11:23 -------
(In reply to comment #1)
> No idea if Uros has access to spec, so maybe you can quote the snippet where
> rsqrtss is used from the assembly of 481.wrf?
Unfortunatelly no... does this patch help:
Index: i386.c
===================================================================
--- i386.c (revision 131392)
+++ i386.c (working copy)
@@ -21449,7 +21449,7 @@ static tree
ix86_builtin_reciprocal (unsigned int fn, bool md_fn,
bool sqrt ATTRIBUTE_UNUSED)
{
- if (! (TARGET_SSE_MATH && !optimize_size
+ if (! (TARGET_SSE_MATH && TARGET_RECIP && !optimize_size
&& flag_finite_math_only && !flag_trapping_math
&& flag_unsafe_math_optimizations))
return NULL_TREE;
BTW: What happens if -mrecip is used to compile 481.wrf?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34709