public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/59839] New: i686 AVX2 gather intrinsic not compiling with -O0
@ 2014-01-16 10:11 dejan.crnila at dewesoft dot si
  2014-01-16 13:35 ` [Bug target/59839] i686 AVX2 gather intrinsic not compiling with -O0 on mingw w64 jakub at gcc dot gnu.org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: dejan.crnila at dewesoft dot si @ 2014-01-16 10:11 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 59839
           Summary: i686 AVX2 gather intrinsic not compiling with -O0
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dejan.crnila at dewesoft dot si

Created attachment 31850
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=31850&action=edit
preprocesed source

the following source does

#include <intrin.h>

void test(const float* data)
{
    __m256i i = _mm256_set1_epi32(1);
    __m256 d = _mm256_i32gather_ps(data, i, 1);
}

does not compile with

gcc -mavx2 -O0 -c test.c

note: it does compile with -O1 or above

error:

test.c: In function 'test':
test.c:7:1: error: unrecognizable insn:
 }
 ^
(insn 28 27 0 2 (parallel [
            (set (mem/c:V8SF (plus:SI (reg/f:SI 54 virtual-stack-vars
                        (const_int -64 [0xffffffffffffffc0])) [0 d+0
                (unspec:V8SF [
                        (reg:V8SF 61 [ D.7004 ])
                        (mem:SF (unspec:SI [
                                    (reg/f:SI 71)
                                    (reg:V8SI 60 [ D.7005 ])
                                    (const_int 1 [0x1])
                                ] UNSPEC_VSIBADDR) [0 S4 A8])
                        (mem:BLK (scratch) [0 A8])
                        (reg:V8SF 59 [ D.7004 ])
                    ] UNSPEC_GATHER))
            (clobber (scratch:V8SF))
        ]) test.c:6 -1
     (nil))
test.c:7:1: internal compiler error: in extract_insn, at recog.c:2150
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://sourceforge.net/projects/mingwbuilds/> for instructions.


gcc -v:

Using built-in specs.
COLLECT_GCC=c:\mingw\bin\gcc.exe
COLLECT_LTO_WRAPPER=c:/mingw/bin/../libexec/gcc/i686-w64-mingw32/4.8.0/lto-wrapper.exe
Target: i686-w64-mingw32
Configured with: ../../../src/gcc-4.8.0/configure --host=i686-w64-mingw32
--build=i686-w64-mingw32 --target=i686-w64-mingw32 --prefix=/mingw32
--with-sysroot=/t
emp/x32-480-win32-sjlj-r2/mingw32 --enable-shared --enable-static
--enable-targets=all --enable-multilib --enable-languages=c,c++,fortran,lto
--enable-libstdcxx
-time=yes --enable-threads=win32 --enable-libgomp --enable-lto
--enable-graphite --enable-checking=release --enable-fully-dynamic-string
--enable-version-specif
ic-runtime-libs --enable-sjlj-exceptions --disable-isl-version-check
--disable-cloog-version-check --disable-libstdcxx-pch --disable-libstdcxx-debug
--disable-b
ootstrap --disable-rpath --disable-win32-registry --disable-nls
--disable-werror --disable-symvers --with-gnu-as --with-gnu-ld
--with-arch-32=i686 --with-arch-6
4=nocona --with-tune-32=generic --with-tune-64=core2
--with-host-libstdcxx='-static -lstdc++' --with-libiconv --with-system-zlib
--with-gmp=/temp/mingw-prereq/i
686-w64-mingw32-static --with-mpfr=/temp/mingw-prereq/i686-w64-mingw32-static
--with-mpc=/temp/mingw-prereq/i686-w64-mingw32-static
--with-isl=/temp/mingw-prere
q/i686-w64-mingw32-static
--with-cloog=/temp/mingw-prereq/i686-w64-mingw32-static
--enable-cloog-backend=isl --with-pkgversion='rev2, Built by MinGW-builds proj
ect' --with-bugurl=http://sourceforge.net/projects/mingwbuilds/ CFLAGS='-O2
-pipe -I/temp/x32-480-win32-sjlj-r2/libs/include
-I/temp/mingw-prereq/x32-zlib/inclu
de -I/temp/mingw-prereq/i686-w64-mingw32-static/include' CXXFLAGS='-O2 -pipe
-I/temp/x32-480-win32-sjlj-r2/libs/include
-I/temp/mingw-prereq/x32-zlib/include -I
/temp/mingw-prereq/i686-w64-mingw32-static/include' CPPFLAGS= LDFLAGS='-pipe
-L/temp/x32-480-win32-sjlj-r2/libs/lib -L/temp/mingw-prereq/x32-zlib/lib
-L/temp/mi
ngw-prereq/i686-w64-mingw32-static/lib
-L/temp/x32-480-win32-sjlj-r2/mingw32/opt/lib'
Thread model: win32
gcc version 4.8.0 (rev2, Built by MinGW-builds project)


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

* [Bug target/59839] i686 AVX2 gather intrinsic not compiling with -O0 on mingw w64
  2014-01-16 10:11 [Bug target/59839] New: i686 AVX2 gather intrinsic not compiling with -O0 dejan.crnila at dewesoft dot si
@ 2014-01-16 13:35 ` jakub at gcc dot gnu.org
  2014-01-16 13:36 ` jakub at gcc dot gnu.org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: jakub at gcc dot gnu.org @ 2014-01-16 13:35 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2014-01-16
                 CC|                            |jakub at gcc dot gnu.org
   Target Milestone|---                         |4.8.3
     Ever confirmed|0                           |1


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

* [Bug target/59839] i686 AVX2 gather intrinsic not compiling with -O0 on mingw w64
  2014-01-16 10:11 [Bug target/59839] New: i686 AVX2 gather intrinsic not compiling with -O0 dejan.crnila at dewesoft dot si
  2014-01-16 13:35 ` [Bug target/59839] i686 AVX2 gather intrinsic not compiling with -O0 on mingw w64 jakub at gcc dot gnu.org
@ 2014-01-16 13:36 ` jakub at gcc dot gnu.org
  2014-01-16 19:24 ` jakub at gcc dot gnu.org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: jakub at gcc dot gnu.org @ 2014-01-16 13:36 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
           Assignee|unassigned at gcc dot gnu.org      |jakub at gcc dot gnu.org

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Created attachment 31853
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=31853&action=edit
gcc49-pr59839.patch

Untested fix.


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

* [Bug target/59839] i686 AVX2 gather intrinsic not compiling with -O0 on mingw w64
  2014-01-16 10:11 [Bug target/59839] New: i686 AVX2 gather intrinsic not compiling with -O0 dejan.crnila at dewesoft dot si
  2014-01-16 13:35 ` [Bug target/59839] i686 AVX2 gather intrinsic not compiling with -O0 on mingw w64 jakub at gcc dot gnu.org
  2014-01-16 13:36 ` jakub at gcc dot gnu.org
@ 2014-01-16 19:24 ` jakub at gcc dot gnu.org
  2014-01-16 19:26 ` jakub at gcc dot gnu.org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: jakub at gcc dot gnu.org @ 2014-01-16 19:24 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Thu Jan 16 19:24:07 2014
New Revision: 206682

URL: http://gcc.gnu.org/viewcvs?rev=206682&root=gcc&view=rev
Log:
    PR target/59839
    * config/i386/i386.c (ix86_expand_builtin): If target doesn't
    satisfy operand 0 predicate for gathers, use a new pseudo as
    subtarget.

    * gcc.target/i386/pr59839.c: New test.

Added:
    trunk/gcc/testsuite/gcc.target/i386/pr59839.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/i386/i386.c
    trunk/gcc/testsuite/ChangeLog


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

* [Bug target/59839] i686 AVX2 gather intrinsic not compiling with -O0 on mingw w64
  2014-01-16 10:11 [Bug target/59839] New: i686 AVX2 gather intrinsic not compiling with -O0 dejan.crnila at dewesoft dot si
                   ` (2 preceding siblings ...)
  2014-01-16 19:24 ` jakub at gcc dot gnu.org
@ 2014-01-16 19:26 ` jakub at gcc dot gnu.org
  2014-01-16 19:28 ` jakub at gcc dot gnu.org
  2014-01-16 19:32 ` jakub at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: jakub at gcc dot gnu.org @ 2014-01-16 19:26 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Thu Jan 16 19:26:08 2014
New Revision: 206683

URL: http://gcc.gnu.org/viewcvs?rev=206683&root=gcc&view=rev
Log:
    PR target/59839
    * config/i386/i386.c (ix86_expand_builtin): If target doesn't
    satisfy operand 0 predicate for gathers, use a new pseudo as
    subtarget.

    * gcc.target/i386/pr59839.c: New test.

Added:
    branches/gcc-4_8-branch/gcc/testsuite/gcc.target/i386/pr59839.c
Modified:
    branches/gcc-4_8-branch/gcc/ChangeLog
    branches/gcc-4_8-branch/gcc/config/i386/i386.c
    branches/gcc-4_8-branch/gcc/testsuite/ChangeLog


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

* [Bug target/59839] i686 AVX2 gather intrinsic not compiling with -O0 on mingw w64
  2014-01-16 10:11 [Bug target/59839] New: i686 AVX2 gather intrinsic not compiling with -O0 dejan.crnila at dewesoft dot si
                   ` (3 preceding siblings ...)
  2014-01-16 19:26 ` jakub at gcc dot gnu.org
@ 2014-01-16 19:28 ` jakub at gcc dot gnu.org
  2014-01-16 19:32 ` jakub at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: jakub at gcc dot gnu.org @ 2014-01-16 19:28 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Thu Jan 16 19:27:28 2014
New Revision: 206684

URL: http://gcc.gnu.org/viewcvs?rev=206684&root=gcc&view=rev
Log:
    PR target/59839
    * config/i386/i386.c (ix86_expand_builtin): If target doesn't
    satisfy operand 0 predicate for gathers, use a new pseudo as
    subtarget.

    * gcc.target/i386/pr59839.c: New test.

Added:
    branches/gcc-4_7-branch/gcc/testsuite/gcc.target/i386/pr59839.c
Modified:
    branches/gcc-4_7-branch/gcc/ChangeLog
    branches/gcc-4_7-branch/gcc/config/i386/i386.c
    branches/gcc-4_7-branch/gcc/testsuite/ChangeLog


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

* [Bug target/59839] i686 AVX2 gather intrinsic not compiling with -O0 on mingw w64
  2014-01-16 10:11 [Bug target/59839] New: i686 AVX2 gather intrinsic not compiling with -O0 dejan.crnila at dewesoft dot si
                   ` (4 preceding siblings ...)
  2014-01-16 19:28 ` jakub at gcc dot gnu.org
@ 2014-01-16 19:32 ` jakub at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: jakub at gcc dot gnu.org @ 2014-01-16 19:32 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Fixed.


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

end of thread, other threads:[~2014-01-16 19:32 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-01-16 10:11 [Bug target/59839] New: i686 AVX2 gather intrinsic not compiling with -O0 dejan.crnila at dewesoft dot si
2014-01-16 13:35 ` [Bug target/59839] i686 AVX2 gather intrinsic not compiling with -O0 on mingw w64 jakub at gcc dot gnu.org
2014-01-16 13:36 ` jakub at gcc dot gnu.org
2014-01-16 19:24 ` jakub at gcc dot gnu.org
2014-01-16 19:26 ` jakub at gcc dot gnu.org
2014-01-16 19:28 ` jakub at gcc dot gnu.org
2014-01-16 19:32 ` jakub at gcc dot gnu.org

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).