public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/50155] New: [4.7 Regression] AVX2 support broke -mavx
@ 2011-08-22 16:40 jakub at gcc dot gnu.org
  2011-08-22 18:18 ` [Bug target/50155] " hjl.tools at gmail dot com
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: jakub at gcc dot gnu.org @ 2011-08-22 16:40 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 50155
           Summary: [4.7 Regression] AVX2 support broke -mavx
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: jakub@gcc.gnu.org
                CC: hjl.tools@gmail.com, uros@gcc.gnu.org


void
foo (int x, double *a, double *b, double c)
{
  int i;

  for (i = 0; i < x; i++)
    *a++ = *b++ * i / c;
}

fails to assemble with -O3 -mavx -m64 on x86_64-linux (at least when using
binutils that don't support AVX2).
vpaddd  %ymm6, %ymm1, %ymm5
is AFAIK an AVX2 insn, not AVX, yet it is emitted by the addv8si3 pattern
(*<plusminus_insn><code>3 insn etc. was previously using VI_128 mode iterator,
but now is using VI, guess it wants to use a mode iterator similar to VI, but
which uses TARGET_AVX2 instead of TARGET_AVX guards for the 32 byte integer
modes (VI_AVX2 or VI_1248_AVX2?)).


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-08-22 21:15 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-08-22 16:40 [Bug target/50155] New: [4.7 Regression] AVX2 support broke -mavx jakub at gcc dot gnu.org
2011-08-22 18:18 ` [Bug target/50155] " hjl.tools at gmail dot com
2011-08-22 18:56 ` kirill.yukhin at intel dot com
2011-08-22 21:03 ` uros at gcc dot gnu.org
2011-08-22 21:28 ` ubizjak 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).