From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28163 invoked by alias); 1 Jun 2007 20:27:28 -0000 Received: (qmail 28155 invoked by uid 22791); 1 Jun 2007 20:27:27 -0000 X-Spam-Check-By: sourceware.org Received: from palrel11.hp.com (HELO palrel11.hp.com) (156.153.255.246) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 01 Jun 2007 20:27:25 +0000 Received: from smtp2.cup.hp.com (smtp.cup.hp.com [15.4.32.118]) by palrel11.hp.com (Postfix) with ESMTP id 33FF534090 for ; Fri, 1 Jun 2007 13:27:24 -0700 (PDT) Received: from hpsje.cup.hp.com (hpsje.cup.hp.com [16.89.92.85]) by smtp2.cup.hp.com (Postfix) with ESMTP id 7FA5C30F1BE for ; Fri, 1 Jun 2007 20:18:32 +0000 (UTC) Received: (from sje@localhost) by hpsje.cup.hp.com (8.9.3 (PHNE_29774)/8.9.3) id NAA21688 for gcc-patches@gcc.gnu.org; Fri, 1 Jun 2007 13:27:23 -0700 (PDT) Date: Fri, 01 Jun 2007 20:27:00 -0000 From: Steve Ellcey Message-Id: <200706012027.NAA21688@hpsje.cup.hp.com> To: gcc-patches@gcc.gnu.org Subject: Patch to fix vector tests on IA64 HP-UX Reply-To: sje@cup.hp.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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-06/txt/msg00062.txt.bz2 A number of vect tests are failing on IA64 HP-UX because we are swapping vector elements when we shouldn't be. This patch removes the BIG_ENDIAN test and does the same thing for both big and little endian platforms. Tested on IA64 HP-UX and Linux, it caused no regressions on Linux and on HP-UX it fixes: FAIL: gcc.dg/vect/no-tree-dom-vect-bug.c execution test FAIL: gcc.dg/vect/pr30784.c execution test FAIL: gcc.dg/vect/vect-14.c execution test FAIL: gcc.dg/vect/vect-14.c execution test FAIL: gcc.dg/vect/vect-iv-10.c execution test FAIL: gcc.dg/vect/vect-iv-10.c execution test FAIL: gcc.dg/vect/vect-iv-2.c execution test FAIL: gcc.dg/vect/vect-iv-2.c execution test FAIL: gcc.dg/vect/vect-iv-3.c execution test FAIL: gcc.dg/vect/vect-iv-3.c execution test OK to checkin? Maybe it is obvious. Steve Ellcey sje@cup.hp.com 2007-06-01 Steve Ellcey * config/ia64/vect.md (vec_initv2si): Remove bad BIG_ENDIAN test. Index: config/ia64/vect.md =================================================================== --- config/ia64/vect.md (revision 125253) +++ config/ia64/vect.md (working copy) @@ -802,8 +802,8 @@ (define_expand "vec_initv2si" if (GET_CODE (op1) == CONST_INT && GET_CODE (op2) == CONST_INT) { rtvec v = rtvec_alloc (2); - RTVEC_ELT (v, 0) = TARGET_BIG_ENDIAN ? op2 : op1; - RTVEC_ELT (v, 1) = TARGET_BIG_ENDIAN ? op1 : op2;; + RTVEC_ELT (v, 0) = op1; + RTVEC_ELT (v, 1) = op2; x = gen_rtx_CONST_VECTOR (V2SImode, v); emit_move_insn (operands[0], x); DONE;