public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/10735] ICE on incorrect type conversion with vector
       [not found] <20030510221601.10735.shurick@pisem.net>
@ 2003-06-02 14:30 ` shurick@pisem.net
  2003-06-05  3:49 ` [Bug c/10735] ICE on " dhazeghi@yahoo.com
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 9+ messages in thread
From: shurick@pisem.net @ 2003-06-02 14:30 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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



------- Additional Comments From shurick@pisem.net  2003-06-02 14:30 -------
Subject: Re:  ICE on incorrect type conversion with vector

pinskia@physics.uc.edu wrote:

>PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
>
>http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10735
>
>
>pinskia@physics.uc.edu changed:
>
>           What    |Removed                     |Added
>----------------------------------------------------------------------------
>            Summary|Crash on incorrect type     |ICE on incorrect type
>                   |conversion                  |conversion with vector
>
>  
>
Really this type conversion is right. The second example (with warning 
instead of ICE) does not contain conversion by a mistake (my fault).

Correct example is:
typedef int __v4hi __attribute__ ((__mode__ (__V4HI__)));

__v4hi test3;

void test()
{
        long long test4;
        test4 = (long long)test3; // <== "(long long)" was skipped
        if (test4 != 0)
                return;
}

So, it should be called like "ICE on correct type conversion with vector".





------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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

* [Bug c/10735] ICE on type conversion with vector
       [not found] <20030510221601.10735.shurick@pisem.net>
  2003-06-02 14:30 ` [Bug c/10735] ICE on incorrect type conversion with vector shurick@pisem.net
@ 2003-06-05  3:49 ` dhazeghi@yahoo.com
  2003-12-28 12:09 ` pinskia at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 9+ messages in thread
From: dhazeghi@yahoo.com @ 2003-06-05  3:49 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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


dhazeghi@yahoo.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|dhazeghi@yahoo.com          |
  GCC build triplet|                            |i686-pc-linux-gnu
   GCC host triplet|                            |i686-pc-linux-gnu
 GCC target triplet|                            |i686-linux-pc-gnu
   Last reconfirmed|0000-00-00 00:00:00         |2003-06-05 03:49:50
               date|                            |


------- Additional Comments From dhazeghi@yahoo.com  2003-06-05 03:49 -------
Reconfirmed with gcc 3.3 branch and mainline (20030604).



------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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

* [Bug c/10735] ICE on type conversion with vector
       [not found] <20030510221601.10735.shurick@pisem.net>
  2003-06-02 14:30 ` [Bug c/10735] ICE on incorrect type conversion with vector shurick@pisem.net
  2003-06-05  3:49 ` [Bug c/10735] ICE on " dhazeghi@yahoo.com
@ 2003-12-28 12:09 ` pinskia at gcc dot gnu dot org
  2003-12-28 20:29 ` pinskia at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-12-28 12:09 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2003-12-28 06:20 -------
The problem is that vector types do not have a min or a max value.
I think I have a patch for this.

-- 


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


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

* [Bug c/10735] ICE on type conversion with vector
       [not found] <20030510221601.10735.shurick@pisem.net>
                   ` (2 preceding siblings ...)
  2003-12-28 12:09 ` pinskia at gcc dot gnu dot org
@ 2003-12-28 20:29 ` pinskia at gcc dot gnu dot org
  2004-09-24 14:19 ` bonzini at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-12-28 20:29 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2003-12-28 14:29 -------
Even with the fix I had in mind, it still ICEs.

-- 


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


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

* [Bug c/10735] ICE on type conversion with vector
       [not found] <20030510221601.10735.shurick@pisem.net>
                   ` (3 preceding siblings ...)
  2003-12-28 20:29 ` pinskia at gcc dot gnu dot org
@ 2004-09-24 14:19 ` bonzini at gcc dot gnu dot org
  2004-10-14 11:51 ` [Bug c/10735] ICE on correct " bonzini at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 9+ messages in thread
From: bonzini at gcc dot gnu dot org @ 2004-09-24 14:19 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


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


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

* [Bug c/10735] ICE on correct type conversion with vector
       [not found] <20030510221601.10735.shurick@pisem.net>
                   ` (4 preceding siblings ...)
  2004-09-24 14:19 ` bonzini at gcc dot gnu dot org
@ 2004-10-14 11:51 ` bonzini at gcc dot gnu dot org
  2005-07-21  0:55 ` pinskia at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 9+ messages in thread
From: bonzini at gcc dot gnu dot org @ 2004-10-14 11:51 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From bonzini at gcc dot gnu dot org  2004-10-14 11:51 -------
http://gcc.gnu.org/ml/gcc-patches/2004-09/msg02540.html

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |patch


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


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

* [Bug c/10735] ICE on correct type conversion with vector
       [not found] <20030510221601.10735.shurick@pisem.net>
                   ` (5 preceding siblings ...)
  2004-10-14 11:51 ` [Bug c/10735] ICE on correct " bonzini at gcc dot gnu dot org
@ 2005-07-21  0:55 ` pinskia at gcc dot gnu dot org
  2005-07-21  9:31 ` reichelt at gcc dot gnu dot org
  2005-08-25  6:03 ` reichelt at gcc dot gnu dot org
  8 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-21  0:55 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-07-21 00:46 -------
I cannot reproduce this at all anymore, maybe I am doing something wrong.

-- 


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


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

* [Bug c/10735] ICE on correct type conversion with vector
       [not found] <20030510221601.10735.shurick@pisem.net>
                   ` (6 preceding siblings ...)
  2005-07-21  0:55 ` pinskia at gcc dot gnu dot org
@ 2005-07-21  9:31 ` reichelt at gcc dot gnu dot org
  2005-08-25  6:03 ` reichelt at gcc dot gnu dot org
  8 siblings, 0 replies; 9+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2005-07-21  9:31 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From reichelt at gcc dot gnu dot org  2005-07-21 09:02 -------
The testcase from comment #2 still crashes on mainline:

bug.c:1: warning: specifying vector types with __attribute__ ((mode)) is
deprecated
bug.c:1: warning: use __attribute__ ((vector_size)) instead
bug.c: In function 'test':
bug.c:7: internal compiler error: tree check: expected integer_type or
enumeral_type or boolean_type or char_type or real_type, have vector_type in
shorten_compare, at c-common.c:2002
Please submit a full bug report, [etc.]

Well, the testcase could be improved a little:
__v4hi should actually look like this:
  typedef short __v4hi __attribute__ ((__vector_size__ (8)));
and the if statement has no real effect.

So here's a new proposed testcase:

=====================================================
typedef short v4hi __attribute__((vector_size(8)));

int foo()
{
    v4hi v;
    return (long long)v != 0;
}
=====================================================


-- 


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


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

* [Bug c/10735] ICE on correct type conversion with vector
       [not found] <20030510221601.10735.shurick@pisem.net>
                   ` (7 preceding siblings ...)
  2005-07-21  9:31 ` reichelt at gcc dot gnu dot org
@ 2005-08-25  6:03 ` reichelt at gcc dot gnu dot org
  8 siblings, 0 replies; 9+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2005-08-25  6:03 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From reichelt at gcc dot gnu dot org  2005-08-25 06:02 -------
Fixed on mainline and the 4.0 branch by Paolo Bonzini's
patch for PR23517.


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.0.2


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


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

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

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20030510221601.10735.shurick@pisem.net>
2003-06-02 14:30 ` [Bug c/10735] ICE on incorrect type conversion with vector shurick@pisem.net
2003-06-05  3:49 ` [Bug c/10735] ICE on " dhazeghi@yahoo.com
2003-12-28 12:09 ` pinskia at gcc dot gnu dot org
2003-12-28 20:29 ` pinskia at gcc dot gnu dot org
2004-09-24 14:19 ` bonzini at gcc dot gnu dot org
2004-10-14 11:51 ` [Bug c/10735] ICE on correct " bonzini at gcc dot gnu dot org
2005-07-21  0:55 ` pinskia at gcc dot gnu dot org
2005-07-21  9:31 ` reichelt at gcc dot gnu dot org
2005-08-25  6:03 ` reichelt 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).