public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/65671] New: Assembly failure (invalid register operand) with -O3 -mavx512vl
@ 2015-04-04  4:57 jamrial at gmail dot com
  2015-04-08 11:06 ` [Bug target/65671] " kyukhin at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: jamrial at gmail dot com @ 2015-04-04  4:57 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65671

            Bug ID: 65671
           Summary: Assembly failure (invalid register operand) with -O3
                    -mavx512vl
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jamrial at gmail dot com

https://raw.githubusercontent.com/foo86/dcadec/e884d9a0d9127528bdc47c1f8db392363fb50876/libdcadec/idct_float.c

gcc -O3 -mavx512f -mavx512vl -c -o libdcadec/idct_float.o
libdcadec/idct_float.c
/tmp/cc3BQBvH.s: Assembler messages:
/tmp/cc3BQBvH.s:1602: Error: invalid register operand for `vextractf128'
/tmp/cc3BQBvH.s:1624: Error: invalid register operand for `vextractf128'
/tmp/cc3BQBvH.s:1670: Error: invalid register operand for `vextractf128'

Lines in question from the resulting assembly file

1602: vextractf128    $0x1, %ymm20, 144(%rdx)
1624: vextractf128    $0x1, %ymm24, 272(%rdx)
1670: vextractf128    $0x1, %ymm19, 400(%rdx)

GCC 5.0.0 (20150329 snapshot) on x86_64-unknown-linux-gnu. Works fine with
-mavx512f alone, so sounds like the assembler is trying to use VEX coding
scheme with the new registers instead of EVEX.


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

* [Bug target/65671] Assembly failure (invalid register operand) with -O3 -mavx512vl
  2015-04-04  4:57 [Bug target/65671] New: Assembly failure (invalid register operand) with -O3 -mavx512vl jamrial at gmail dot com
@ 2015-04-08 11:06 ` kyukhin at gcc dot gnu.org
  2015-04-09  9:45 ` kyukhin at gcc dot gnu.org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: kyukhin at gcc dot gnu.org @ 2015-04-08 11:06 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65671

Kirill Yukhin <kyukhin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2015-04-08
                 CC|                            |kyukhin at gcc dot gnu.org
     Ever confirmed|0                           |1


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

* [Bug target/65671] Assembly failure (invalid register operand) with -O3 -mavx512vl
  2015-04-04  4:57 [Bug target/65671] New: Assembly failure (invalid register operand) with -O3 -mavx512vl jamrial at gmail dot com
  2015-04-08 11:06 ` [Bug target/65671] " kyukhin at gcc dot gnu.org
@ 2015-04-09  9:45 ` kyukhin at gcc dot gnu.org
  2015-04-09 21:38 ` kyukhin at gcc dot gnu.org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: kyukhin at gcc dot gnu.org @ 2015-04-09  9:45 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65671

--- Comment #1 from Kirill Yukhin <kyukhin at gcc dot gnu.org> ---
Confirmed. 

Workaround: add `-mavx512dq' option, which will enable vextractf64x2 w/ 256b
registers.


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

* [Bug target/65671] Assembly failure (invalid register operand) with -O3 -mavx512vl
  2015-04-04  4:57 [Bug target/65671] New: Assembly failure (invalid register operand) with -O3 -mavx512vl jamrial at gmail dot com
  2015-04-08 11:06 ` [Bug target/65671] " kyukhin at gcc dot gnu.org
  2015-04-09  9:45 ` kyukhin at gcc dot gnu.org
@ 2015-04-09 21:38 ` kyukhin at gcc dot gnu.org
  2015-04-09 21:39 ` kyukhin at gcc dot gnu.org
  2015-04-11 13:57 ` jakub at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: kyukhin at gcc dot gnu.org @ 2015-04-09 21:38 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65671

--- Comment #3 from Kirill Yukhin <kyukhin at gcc dot gnu.org> ---
Author: kyukhin
Date: Thu Apr  9 21:37:28 2015
New Revision: 221963

URL: https://gcc.gnu.org/viewcvs?rev=221963&root=gcc&view=rev
Log:

    PR target/65671
gcc/
    * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ
    is disabled.

gcc/testsuite/
    * gcc.target/i386/pr65671.c: New.


Added:
    trunk/gcc/testsuite/gcc.target/i386/pr65671.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/i386/sse.md
    trunk/gcc/testsuite/ChangeLog


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

* [Bug target/65671] Assembly failure (invalid register operand) with -O3 -mavx512vl
  2015-04-04  4:57 [Bug target/65671] New: Assembly failure (invalid register operand) with -O3 -mavx512vl jamrial at gmail dot com
                   ` (2 preceding siblings ...)
  2015-04-09 21:38 ` kyukhin at gcc dot gnu.org
@ 2015-04-09 21:39 ` kyukhin at gcc dot gnu.org
  2015-04-11 13:57 ` jakub at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: kyukhin at gcc dot gnu.org @ 2015-04-09 21:39 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65671

Kirill Yukhin <kyukhin at gcc dot gnu.org> changed:

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

--- Comment #4 from Kirill Yukhin <kyukhin at gcc dot gnu.org> ---
Should be fixed by the patch.


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

* [Bug target/65671] Assembly failure (invalid register operand) with -O3 -mavx512vl
  2015-04-04  4:57 [Bug target/65671] New: Assembly failure (invalid register operand) with -O3 -mavx512vl jamrial at gmail dot com
                   ` (3 preceding siblings ...)
  2015-04-09 21:39 ` kyukhin at gcc dot gnu.org
@ 2015-04-11 13:57 ` jakub at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: jakub at gcc dot gnu.org @ 2015-04-11 13:57 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65671

--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Sat Apr 11 13:56:37 2015
New Revision: 222008

URL: https://gcc.gnu.org/viewcvs?rev=222008&root=gcc&view=rev
Log:
    PR target/65671
    * gcc.target/i386/pr65671.c: Require avx512vl effective target.

Modified:
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gcc.target/i386/pr65671.c


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

end of thread, other threads:[~2015-04-11 13:57 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-04  4:57 [Bug target/65671] New: Assembly failure (invalid register operand) with -O3 -mavx512vl jamrial at gmail dot com
2015-04-08 11:06 ` [Bug target/65671] " kyukhin at gcc dot gnu.org
2015-04-09  9:45 ` kyukhin at gcc dot gnu.org
2015-04-09 21:38 ` kyukhin at gcc dot gnu.org
2015-04-09 21:39 ` kyukhin at gcc dot gnu.org
2015-04-11 13:57 ` 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).