public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/38201]  New: -mfma/-mavx and -msse5/-msse4a don't work together
@ 2008-11-20 14:46 hjl dot tools at gmail dot com
  2008-11-20 16:49 ` [Bug target/38201] " dwarak dot rajagopal at amd dot com
                   ` (15 more replies)
  0 siblings, 16 replies; 18+ messages in thread
From: hjl dot tools at gmail dot com @ 2008-11-20 14:46 UTC (permalink / raw)
  To: gcc-bugs

Both Intel FMA and AMD SSE5 support FMA. For -mfma, which enables
Intel FMA and is a dummy at the moment, or -msse5, we will
generate FMA instructions for

double f;

void
foo (double x, double y, double z)
{
  f = x * y + z;
}

What FMA should "-mfma -msse5" generate? Also currently, with
"-O2 -mavx -msse5", we generate

foo:
        fmaddsd %xmm2, %xmm1, %xmm0, %xmm0
        vmovsd  %xmm0, f(%rip)
        ret

which won't run on any machines. For "-mfma -msse5" and
"-mavx -msse5",

1. Should these combinations be allowed? If allowed,
2. Should the last option turn off the first one?


-- 
           Summary: -mfma/-mavx and -msse5/-msse4a don't work together
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Severity: major
          Priority: P3
         Component: target
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: hjl dot tools at gmail dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38201


^ permalink raw reply	[flat|nested] 18+ messages in thread
[parent not found: <bug-38201-4@http.gcc.gnu.org/bugzilla/>]

end of thread, other threads:[~2011-01-16 15:57 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-11-20 14:46 [Bug target/38201] New: -mfma/-mavx and -msse5/-msse4a don't work together hjl dot tools at gmail dot com
2008-11-20 16:49 ` [Bug target/38201] " dwarak dot rajagopal at amd dot com
2008-11-20 16:59 ` hjl dot tools at gmail dot com
2008-11-20 18:54 ` hjl dot tools at gmail dot com
2008-11-20 19:36 ` dwarak dot rajagopal at amd dot com
2008-11-20 19:48 ` hjl dot tools at gmail dot com
2008-11-20 19:51 ` dwarak dot rajagopal at amd dot com
2008-11-20 21:30 ` hjl dot tools at gmail dot com
2008-11-21 12:02 ` Joey dot ye at intel dot com
2008-11-21 13:36 ` hjl dot tools at gmail dot com
2008-11-22 15:04 ` rguenth at gcc dot gnu dot org
2008-11-22 15:10 ` hjl dot tools at gmail dot com
2008-11-22 15:16 ` hjl dot tools at gmail dot com
2008-11-22 15:33 ` rguenth at gcc dot gnu dot org
2008-11-23 18:29 ` pinskia at gcc dot gnu dot org
2008-12-03 16:51 ` hjl dot tools at gmail dot com
2008-12-09 22:00 ` hjl dot tools at gmail dot com
     [not found] <bug-38201-4@http.gcc.gnu.org/bugzilla/>
2011-01-16 16:24 ` hjl.tools at gmail dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).