From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2435 invoked by alias); 21 Jul 2005 09:02:24 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 2420 invoked by uid 48); 21 Jul 2005 09:02:20 -0000 Date: Thu, 21 Jul 2005 09:31:00 -0000 Message-ID: <20050721090220.2419.qmail@sourceware.org> From: "reichelt at gcc dot gnu dot org" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20030510221601.10735.shurick@pisem.net> References: <20030510221601.10735.shurick@pisem.net> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c/10735] ICE on correct type conversion with vector X-Bugzilla-Reason: CC X-SW-Source: 2005-07/txt/msg02545.txt.bz2 List-Id: ------- 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