From patchwork Mon Jan 23 08:30:46 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ramana Radhakrishnan X-Patchwork-Id: 137283 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id E8503B6F74 for ; Mon, 23 Jan 2012 19:31:15 +1100 (EST) Comment: DKIM? See http://www.dkim.org DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=gcc.gnu.org; s=default; x=1327912276; h=Comment: DomainKey-Signature:Received:Received:Received:Received: MIME-Version:Received:Received:Date:Message-ID:Subject:From:To: Cc:Content-Type:Mailing-List:Precedence:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:Sender:Delivered-To; bh=SA2dlNe sHygGOUFG6S0pVfJ3fco=; b=cc0TlIRm/LQmRADSjrIzeq0JjnpqZ+lqLLtj470 Rk5x3jX/PybrYuXr2rhsdVpvC5K9T3BSoD023vYlf5/qRi3tWyokg5Ux8Q53Cof3 8jl1lpqu479+8OnezQ55B7vNWoVV00eDv5Dt6Jx/MgDJ8mZk9uNjL2lxo2db0oPA tX2Y= Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=gcc.gnu.org; h=Received:Received:X-SWARE-Spam-Status:X-Spam-Check-By:Received:Received:MIME-Version:Received:Received:Date:Message-ID:Subject:From:To:Cc:X-Gm-Message-State:Content-Type:X-IsSubscribed:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=jOD5xdONDOpHbJRTEkYfeasVKA6dZLburlCUU3jno+XtsKr3J01bsE+Z71AyiT JnexmEpVIzJEAIW5O8iMeELaVN6JHUkJQgU1gM3Bfm9cYTf0X43lzTMrY6Ivdp0z 2ZV8wnVm03G1IefmZ0TmoIzwhwjc5IZNgyEfzetoCCO50=; Received: (qmail 32114 invoked by alias); 23 Jan 2012 08:31:02 -0000 Received: (qmail 32096 invoked by uid 22791); 23 Jan 2012 08:31:00 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_LOW X-Spam-Check-By: sourceware.org Received: from mail-tul01m020-f175.google.com (HELO mail-tul01m020-f175.google.com) (209.85.214.175) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 23 Jan 2012 08:30:47 +0000 Received: by obbuo9 with SMTP id uo9so3015967obb.20 for ; Mon, 23 Jan 2012 00:30:46 -0800 (PST) MIME-Version: 1.0 Received: by 10.182.38.4 with SMTP id c4mr7112464obk.23.1327307446602; Mon, 23 Jan 2012 00:30:46 -0800 (PST) Received: by 10.182.88.7 with HTTP; Mon, 23 Jan 2012 00:30:46 -0800 (PST) Date: Mon, 23 Jan 2012 08:30:46 +0000 Message-ID: Subject: [Patch testsuite] Fix vec_interleave and vec_extract_even_odd to fall back to vec_perm From: Ramana Radhakrishnan To: gcc-patches Cc: Patch Tracking X-Gm-Message-State: ALoCoQkYs89VgUzH01wTdbJVESop80L7lMiLvVClfBAD9A2YWIrLviAUIo/0pFKLSvNW6yxXiIGb X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Hi, Now that we have vec_perm support, vec_interleave and vec_extract_even_odd should fall out from that rather than having to handle an additional target in each of these. This fixes gcc.dg/vect/slp-11a.c for ARM Neon testing with no other regressions in gcc.dg/vect Ok ? cheers Ramana 2012-01-23 Ramana Radhakrishnan * lib/target-supports.exp (check_effective_target_vect_interleave): Use check_effective_target_vect_perm. (check_effective_target_vect_extract_even_odd): Likewise. - return $et_vect_interleave_saved + return [check_effective_target_vect_perm] } foreach N {2 3 4 8} { diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp index be33407a..1a0e41f 100644 --- a/gcc/testsuite/lib/target-supports.exp +++ b/gcc/testsuite/lib/target-supports.exp @@ -3473,45 +3473,13 @@ proc check_effective_target_vect_int_mult { } { # Return 1 if the target supports vector even/odd elements extraction, 0 otherwise. proc check_effective_target_vect_extract_even_odd { } { - global et_vect_extract_even_odd_saved - - if [info exists et_vect_extract_even_odd_saved] { - verbose "check_effective_target_vect_extract_even_odd: using cached result" 2 - } else { - set et_vect_extract_even_odd_saved 0 - if { [istarget powerpc*-*-*] - || [istarget i?86-*-*] - || [istarget x86_64-*-*] - || [istarget ia64-*-*] - || [istarget spu-*-*] } { - set et_vect_extract_even_odd_saved 1 - } - } - - verbose "check_effective_target_vect_extract_even_odd: returning $et_vect_extract_even_odd_saved" 2 - return $et_vect_extract_even_odd_saved + return [check_effective_target_vect_perm] } # Return 1 if the target supports vector interleaving, 0 otherwise. proc check_effective_target_vect_interleave { } { - global et_vect_interleave_saved - - if [info exists et_vect_interleave_saved] { - verbose "check_effective_target_vect_interleave: using cached result" 2 - } else { - set et_vect_interleave_saved 0 - if { [istarget powerpc*-*-*] - || [istarget i?86-*-*] - || [istarget x86_64-*-*] - || [istarget ia64-*-*] - || [istarget spu-*-*] } { - set et_vect_interleave_saved 1 - } - } - - verbose "check_effective_target_vect_interleave: returning $et_vect_interleave_saved" 2