public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/23517] New: can't cast between generic vector types and target supported vector types
@ 2005-08-22 18:51 amylaar at gcc dot gnu dot org
  2005-08-22 18:53 ` [Bug middle-end/23517] " amylaar at gcc dot gnu dot org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: amylaar at gcc dot gnu dot org @ 2005-08-22 18:51 UTC (permalink / raw)
  To: gcc-bugs

When trying to cast from a target supported vector type to a generic
vector type of the same size - as happens in gcc.sg/simd-2.c for
sh-elf -m4 - or vice versa, the compiler tries to emit a move between
a register and a BLKmode value, and hence hits an ICE.
The gcc.dg/simd-2.c failure for sh-elf -m4 is a regression introduced
between 2004-07-21 and 2004-07-22; before, we used to use vector modes
for generic SIMD support,whereas no we use BLKmode.

-- 
           Summary: can't cast between generic vector types and target
                    supported vector types
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P2
         Component: middle-end
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: amylaar at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org
GCC target triplet: targets with vector mode support for selected modes


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


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

* [Bug middle-end/23517] can't cast between generic vector types and target supported vector types
  2005-08-22 18:51 [Bug middle-end/23517] New: can't cast between generic vector types and target supported vector types amylaar at gcc dot gnu dot org
@ 2005-08-22 18:53 ` amylaar at gcc dot gnu dot org
  2005-08-22 19:34 ` [Bug middle-end/23517] [4.0/4.1 Regression] " pinskia at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: amylaar at gcc dot gnu dot org @ 2005-08-22 18:53 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From amylaar at gcc dot gnu dot org  2005-08-22 18:51 -------
Created an attachment (id=9555)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=9555&action=view)
proposed patch


-- 


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


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

* [Bug middle-end/23517] [4.0/4.1 Regression] can't cast between generic vector types and target supported vector types
  2005-08-22 18:51 [Bug middle-end/23517] New: can't cast between generic vector types and target supported vector types amylaar at gcc dot gnu dot org
  2005-08-22 18:53 ` [Bug middle-end/23517] " amylaar at gcc dot gnu dot org
@ 2005-08-22 19:34 ` pinskia at gcc dot gnu dot org
  2005-08-22 19:58 ` bonzini at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-08-22 19:34 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-08-22 19:22 -------
It looks like it was caused by:
2004-07-22  Paolo Bonzini  <bonzini@gnu.org>
....
        * stor-layout.c (layout_type): Pick a mode for vector types.
...

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bonzini at gcc dot gnu dot
                   |                            |org
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2005-08-22 19:22:51
               date|                            |
            Summary|can't cast between generic  |[4.0/4.1 Regression] can't
                   |vector types and target     |cast between generic vector
                   |supported vector types      |types and target supported
                   |                            |vector types


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


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

* [Bug middle-end/23517] [4.0/4.1 Regression] can't cast between generic vector types and target supported vector types
  2005-08-22 18:51 [Bug middle-end/23517] New: can't cast between generic vector types and target supported vector types amylaar at gcc dot gnu dot org
  2005-08-22 18:53 ` [Bug middle-end/23517] " amylaar at gcc dot gnu dot org
  2005-08-22 19:34 ` [Bug middle-end/23517] [4.0/4.1 Regression] " pinskia at gcc dot gnu dot org
@ 2005-08-22 19:58 ` bonzini at gcc dot gnu dot org
  2005-08-22 21:54 ` bonzini at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: bonzini at gcc dot gnu dot org @ 2005-08-22 19:58 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |bonzini at gcc dot gnu dot
                   |dot org                     |org
             Status|NEW                         |ASSIGNED
   Last reconfirmed|2005-08-22 19:22:51         |2005-08-22 19:55:44
               date|                            |


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


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

* [Bug middle-end/23517] [4.0/4.1 Regression] can't cast between generic vector types and target supported vector types
  2005-08-22 18:51 [Bug middle-end/23517] New: can't cast between generic vector types and target supported vector types amylaar at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2005-08-22 19:58 ` bonzini at gcc dot gnu dot org
@ 2005-08-22 21:54 ` bonzini at gcc dot gnu dot org
  2005-08-23 18:01 ` cvs-commit at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: bonzini at gcc dot gnu dot org @ 2005-08-22 21:54 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From bonzini at gcc dot gnu dot org  2005-08-22 21:32 -------
Another patch can be found at
http://gcc.gnu.org/ml/gcc-patches/2005-08/msg01331.html

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                URL|                            |http://gcc.gnu.org/ml/gcc-
                   |                            |patches/2005-
                   |                            |08/msg01331.html


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


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

* [Bug middle-end/23517] [4.0/4.1 Regression] can't cast between generic vector types and target supported vector types
  2005-08-22 18:51 [Bug middle-end/23517] New: can't cast between generic vector types and target supported vector types amylaar at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2005-08-22 21:54 ` bonzini at gcc dot gnu dot org
@ 2005-08-23 18:01 ` cvs-commit at gcc dot gnu dot org
  2005-08-23 18:02 ` cvs-commit at gcc dot gnu dot org
  2005-08-23 18:06 ` bonzini at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-08-23 18:01 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-08-23 17:48 -------
Subject: Bug 23517

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	bonzini@gcc.gnu.org	2005-08-23 17:48:37

Modified files:
	gcc            : ChangeLog fold-const.c convert.c 
	                 tree-vect-generic.c 

Log message:
	2005-08-23  Paolo Bonzini  <bonzini@gnu.org>
	
	PR middle-end/23517
	* fold-const.c (fold_convert): Use VIEW_CONVERT_EXPR to convert
	between vectors.
	* convert.c (convert_to_integer, convert_to_vector): Likewise.
	* tree-vect-generic.c (tree_vec_extract, expand_vector_operations_1):
	Likewise.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.9810&r2=2.9811
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fold-const.c.diff?cvsroot=gcc&r1=1.621&r2=1.622
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/convert.c.diff?cvsroot=gcc&r1=1.67&r2=1.68
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/tree-vect-generic.c.diff?cvsroot=gcc&r1=2.4&r2=2.5



-- 


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


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

* [Bug middle-end/23517] [4.0/4.1 Regression] can't cast between generic vector types and target supported vector types
  2005-08-22 18:51 [Bug middle-end/23517] New: can't cast between generic vector types and target supported vector types amylaar at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2005-08-23 18:01 ` cvs-commit at gcc dot gnu dot org
@ 2005-08-23 18:02 ` cvs-commit at gcc dot gnu dot org
  2005-08-23 18:06 ` bonzini at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-08-23 18:02 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-08-23 18:01 -------
Subject: Bug 23517

CVSROOT:	/cvs/gcc
Module name:	gcc
Branch: 	gcc-4_0-branch
Changes by:	bonzini@gcc.gnu.org	2005-08-23 18:01:27

Modified files:
	gcc            : ChangeLog fold-const.c convert.c 

Log message:
	2005-08-23  Paolo Bonzini  <bonzini@gnu.org>
	
	PR middle-end/23517
	* fold-const.c (fold_convert): Use VIEW_CONVERT_EXPR to convert
	between vectors.
	* convert.c (convert_to_integer, convert_to_vector): Likewise.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=2.7592.2.385&r2=2.7592.2.386
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fold-const.c.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.517.2.14&r2=1.517.2.15
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/convert.c.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.57&r2=1.57.2.1



-- 


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


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

* [Bug middle-end/23517] [4.0/4.1 Regression] can't cast between generic vector types and target supported vector types
  2005-08-22 18:51 [Bug middle-end/23517] New: can't cast between generic vector types and target supported vector types amylaar at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2005-08-23 18:02 ` cvs-commit at gcc dot gnu dot org
@ 2005-08-23 18:06 ` bonzini at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: bonzini at gcc dot gnu dot org @ 2005-08-23 18:06 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From bonzini at gcc dot gnu dot org  2005-08-23 18:02 -------
(note: the tree-vect-generic.c part is not needed on 4.0)

Fixed.

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


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


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

end of thread, other threads:[~2005-08-23 18:02 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-08-22 18:51 [Bug middle-end/23517] New: can't cast between generic vector types and target supported vector types amylaar at gcc dot gnu dot org
2005-08-22 18:53 ` [Bug middle-end/23517] " amylaar at gcc dot gnu dot org
2005-08-22 19:34 ` [Bug middle-end/23517] [4.0/4.1 Regression] " pinskia at gcc dot gnu dot org
2005-08-22 19:58 ` bonzini at gcc dot gnu dot org
2005-08-22 21:54 ` bonzini at gcc dot gnu dot org
2005-08-23 18:01 ` cvs-commit at gcc dot gnu dot org
2005-08-23 18:02 ` cvs-commit at gcc dot gnu dot org
2005-08-23 18:06 ` bonzini at gcc dot gnu dot 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).