From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30700 invoked by alias); 30 Jul 2007 19:34:58 -0000 Received: (qmail 30692 invoked by uid 22791); 30 Jul 2007 19:34:57 -0000 X-Spam-Check-By: sourceware.org Received: from pfepb.post.tele.dk (HELO pfepb.post.tele.dk) (195.41.46.236) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 30 Jul 2007 19:34:52 +0000 Received: from x1-6-00-0f-9f-c6-3e-90 (x1-6-00-0f-9f-c6-3e-90.k75.webspeed.dk [80.197.1.215]) by pfepb.post.tele.dk (Postfix) with ESMTP id 22B8EA50041 for ; Mon, 30 Jul 2007 21:34:48 +0200 (CEST) Received: from x1-6-00-0f-9f-c6-3e-90 (localhost.localdomain [127.0.0.1]) by x1-6-00-0f-9f-c6-3e-90 (8.14.0/8.14.0) with ESMTP id l6UJYnFK015740 for ; Mon, 30 Jul 2007 21:34:49 +0200 Received: (from rask@localhost) by x1-6-00-0f-9f-c6-3e-90 (8.14.0/8.14.0/Submit) id l6UJYn29015739 for gcc-patches@gcc.gnu.org; Mon, 30 Jul 2007 21:34:49 +0200 Date: Mon, 30 Jul 2007 19:36:00 -0000 From: Rask Ingemann Lambertsen To: gcc-patches@gcc.gnu.org Subject: [PATCH 8/9] Vectorizer testsuite fixes Message-ID: <20070730193449.GS25795@sygehus.dk> References: <20070730134217.GK25795@sygehus.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070730134217.GK25795@sygehus.dk> User-Agent: Mutt/1.5.14 (2007-02-12) Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org X-SW-Source: 2007-07/txt/msg02139.txt.bz2 This patch allows two vectorizer tests to work on 16-bit targets by making the vector elements of type "char". This fixes two failures on ia16-unkonwn-elf and m32c-unknown-elf with no changes on x86_64-unknown-linux-gnu, arm-unknown-elf, cris-axis-elf, mipsisa64-unknown-elf, sh-unknown-elf or v850-unknown-elf. Ok for trunk? :ADDPATCH testsuite: 2007-07-30 Rask Ingemann Lambertsen * gcc.dg/tree-ssa/gen-vect-2.c: Use "char" for vector elements if "int" is only 16 bit bits wide. * gcc.dg/tree-ssa/gen-vect-11a.c: Likewise. Index: gcc/testsuite/gcc.dg/tree-ssa/gen-vect-2.c =================================================================== --- gcc/testsuite/gcc.dg/tree-ssa/gen-vect-2.c (revision 126653) +++ gcc/testsuite/gcc.dg/tree-ssa/gen-vect-2.c (working copy) @@ -5,7 +5,9 @@ #define N 16 -#if __LONG_MAX__ == 2147483647 +#if __INT_MAX__ == 32767 +typedef char half_word; +#elif __LONG_MAX__ == 2147483647 typedef short half_word; #else typedef int half_word; Index: gcc/testsuite/gcc.dg/tree-ssa/gen-vect-11a.c =================================================================== --- gcc/testsuite/gcc.dg/tree-ssa/gen-vect-11a.c (revision 126653) +++ gcc/testsuite/gcc.dg/tree-ssa/gen-vect-11a.c (working copy) @@ -5,7 +5,9 @@ #define N 16 -#if __LONG_MAX__ == 2147483647 +#if __INT_MAX__ == 32767 +typedef char half_word; +#elif __LONG_MAX__ == 2147483647 typedef short half_word; #else typedef int half_word; -- Rask Ingemann Lambertsen