public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/66806] New: internal compiler error: in emit_move_insn, at expr.c:3551
@ 2015-07-08 11:05 hjl.tools at gmail dot com
  2015-07-08 11:13 ` [Bug target/66806] " hjl.tools at gmail dot com
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: hjl.tools at gmail dot com @ 2015-07-08 11:05 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 66806
           Summary: internal compiler error: in emit_move_insn, at
                    expr.c:3551
           Product: gcc
           Version: 6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: hjl.tools at gmail dot com
                CC: ubizjak at gmail dot com
  Target Milestone: ---

[hjl@gnu-6 gcc]$ cat /tmp/x.i
typedef unsigned int V2SImode __attribute__((vector_size(8)));
extern V2SImode data_V2SImode;
extern void r_V2SImode (V2SImode);
void
s_V2SImode (void)
{
  r_V2SImode (data_V2SImode);
}
[hjl@gnu-6 gcc]$ ./xgcc -B./ -S /tmp/x.i -m32 -mno-sse -mno-mmx -miamcu
-Wno-psabi
/tmp/x.i: In function \u2018s_V2SImode\u2019:
/tmp/x.i:7:3: internal compiler error: in emit_move_insn, at expr.c:3551
   r_V2SImode (data_V2SImode);
   ^
0x9e2a2f emit_move_insn(rtx_def*, rtx_def*)
        /export/gnu/import/git/sources/gcc/gcc/expr.c:3550
0x89013c load_register_parameters
        /export/gnu/import/git/sources/gcc/gcc/calls.c:2092
0x8937c2 expand_call(tree_node*, rtx_def*, int)
        /export/gnu/import/git/sources/gcc/gcc/calls.c:3365
0x9fb80f expand_expr_real_1(tree_node*, rtx_def*, machine_mode,
expand_modifier, rtx_def**, bool)
        /export/gnu/import/git/sources/gcc/gcc/expr.c:10364
0x9f1093 expand_expr_real(tree_node*, rtx_def*, machine_mode, expand_modifier,
rtx_def**, bool)
        /export/gnu/import/git/sources/gcc/gcc/expr.c:7898
0x8a0cb7 expand_expr
        /export/gnu/import/git/sources/gcc/gcc/expr.h:254
0x8a7b0f expand_call_stmt
        /export/gnu/import/git/sources/gcc/gcc/cfgexpand.c:2351
0x8aa9f8 expand_gimple_stmt_1
        /export/gnu/import/git/sources/gcc/gcc/cfgexpand.c:3238
0x8ab0a4 expand_gimple_stmt
        /export/gnu/import/git/sources/gcc/gcc/cfgexpand.c:3399
0x8b216a expand_gimple_basic_block
        /export/gnu/import/git/sources/gcc/gcc/cfgexpand.c:5411
0x8b3dac execute
        /export/gnu/import/git/sources/gcc/gcc/cfgexpand.c:6022
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.
[hjl@gnu-6 gcc]$


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

* [Bug target/66806] internal compiler error: in emit_move_insn, at expr.c:3551
  2015-07-08 11:05 [Bug target/66806] New: internal compiler error: in emit_move_insn, at expr.c:3551 hjl.tools at gmail dot com
@ 2015-07-08 11:13 ` hjl.tools at gmail dot com
  2015-07-08 12:41 ` julia.koval at intel dot com
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: hjl.tools at gmail dot com @ 2015-07-08 11:13 UTC (permalink / raw)
  To: gcc-bugs

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

H.J. Lu <hjl.tools at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2015-07-08
   Target Milestone|---                         |6.0
     Ever confirmed|0                           |1

--- Comment #1 from H.J. Lu <hjl.tools at gmail dot com> ---
1  0x00000000009e2a30 in emit_move_insn (x=0x7ffff15f1c30, y=0x7ffff15f1b40)
    at /export/gnu/import/git/sources/gcc/gcc/expr.c:3550
3550      gcc_assert (mode != BLKmode
(gdb) call debug_rtx (x)
(reg:V2SI 0 ax)
(gdb) call debug_rtx (y)
(reg:DI 87 [ D.1415 ])
(gdb) 

We can't return/pass 8-byte vector type in registers.


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

* [Bug target/66806] internal compiler error: in emit_move_insn, at expr.c:3551
  2015-07-08 11:05 [Bug target/66806] New: internal compiler error: in emit_move_insn, at expr.c:3551 hjl.tools at gmail dot com
  2015-07-08 11:13 ` [Bug target/66806] " hjl.tools at gmail dot com
@ 2015-07-08 12:41 ` julia.koval at intel dot com
  2015-07-08 16:19 ` hjl at gcc dot gnu.org
  2015-07-08 16:20 ` hjl.tools at gmail dot com
  3 siblings, 0 replies; 5+ messages in thread
From: julia.koval at intel dot com @ 2015-07-08 12:41 UTC (permalink / raw)
  To: gcc-bugs

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

Yulia Koval <julia.koval at intel dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |julia.koval at intel dot com

--- Comment #2 from Yulia Koval <julia.koval at intel dot com> ---
There are other ICE errors with vector types and -miamcu, probably similar to
this issue:

internal compiler error in convert_move, at expr.c:333
gcc.c-torture/compile/pr33614.c

internal compiler error: Max. number of generated reload insns per insn is
achieved (90)
gcc.c-torture/compile/vector-5.c -  __attribute__((vector_size)


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

* [Bug target/66806] internal compiler error: in emit_move_insn, at expr.c:3551
  2015-07-08 11:05 [Bug target/66806] New: internal compiler error: in emit_move_insn, at expr.c:3551 hjl.tools at gmail dot com
  2015-07-08 11:13 ` [Bug target/66806] " hjl.tools at gmail dot com
  2015-07-08 12:41 ` julia.koval at intel dot com
@ 2015-07-08 16:19 ` hjl at gcc dot gnu.org
  2015-07-08 16:20 ` hjl.tools at gmail dot com
  3 siblings, 0 replies; 5+ messages in thread
From: hjl at gcc dot gnu.org @ 2015-07-08 16:19 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from hjl at gcc dot gnu.org <hjl at gcc dot gnu.org> ---
Author: hjl
Date: Wed Jul  8 16:19:06 2015
New Revision: 225564

URL: https://gcc.gnu.org/viewcvs?rev=225564&root=gcc&view=rev
Log:
Don't pass/return vectors in registers for IAMCU

Vectors should be passed in memory for IAMCU.  No warning for vector ABI
change for IAMCU since IAMCU ABI won't change.

gcc/

        PR target/66806
        * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
        change for IAMCU.
        (function_arg_advance_32): Don't pass vectors in registers for
        IAMCU.
        (function_arg_32): Likewise.
        (ix86_return_in_memory): Don't return vectors in registers for
        IAMCU.

gcc/testsuite/

        PR target/66806
        * gcc.target/i386/pr66806.c: New test.

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


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

* [Bug target/66806] internal compiler error: in emit_move_insn, at expr.c:3551
  2015-07-08 11:05 [Bug target/66806] New: internal compiler error: in emit_move_insn, at expr.c:3551 hjl.tools at gmail dot com
                   ` (2 preceding siblings ...)
  2015-07-08 16:19 ` hjl at gcc dot gnu.org
@ 2015-07-08 16:20 ` hjl.tools at gmail dot com
  3 siblings, 0 replies; 5+ messages in thread
From: hjl.tools at gmail dot com @ 2015-07-08 16:20 UTC (permalink / raw)
  To: gcc-bugs

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

H.J. Lu <hjl.tools at gmail dot com> changed:

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

--- Comment #4 from H.J. Lu <hjl.tools at gmail dot com> ---
Fixed.


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

end of thread, other threads:[~2015-07-08 16:20 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-08 11:05 [Bug target/66806] New: internal compiler error: in emit_move_insn, at expr.c:3551 hjl.tools at gmail dot com
2015-07-08 11:13 ` [Bug target/66806] " hjl.tools at gmail dot com
2015-07-08 12:41 ` julia.koval at intel dot com
2015-07-08 16:19 ` hjl at gcc dot gnu.org
2015-07-08 16:20 ` 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).