From patchwork Tue Jan 24 19:46:04 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Sandiford X-Patchwork-Id: 137626 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 38165B6F68 for ; Wed, 25 Jan 2012 06:46:33 +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=1328039194; h=Comment: DomainKey-Signature:Received:Received:Received:Received:Received: Received:From:To:Mail-Followup-To:Subject:Date:Message-ID: User-Agent:MIME-Version:Content-Type:Mailing-List:Precedence: List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender: Delivered-To; bh=tJOvplh8DZ+tqj3TUrOWAUkz/Ec=; b=caA9hcS/KJyAvuA GsWzlklUCD+ys+E9MttX+WPgL2jT8DUscIDFIosryNvEJuJ/kkJo0VGtHpHQ8oie ew3QEB7tJNDw5McT7i/197qf/bA0sGqMOk/Esb0//UbAf1oCEllgycd0VAuK2xUw 1fg7u9IL/OvJ2RhYM8GUBPPC4fyw= 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:Received:Received:From:To:Mail-Followup-To:Subject:Date:Message-ID:User-Agent:MIME-Version:Content-Type:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=Pr4BAEPHLAipNZKZjpsfRUHEWvnpwd63YGQxiPaSQaGHeofgbjsO8L4kxSqQ3r pFwLE4/pMaYsu6N06Ctjt9EBokTwWlbUBn7mPdobkx2loZAu18nIo4wsTLT1Zit9 r1MWxN44EI+MjDx3eK7lwmb7DinQjyoQKmBbh6xT5fs4I=; Received: (qmail 1707 invoked by alias); 24 Jan 2012 19:46:25 -0000 Received: (qmail 1560 invoked by uid 22791); 24 Jan 2012 19:46:24 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL, BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW X-Spam-Check-By: sourceware.org Received: from mail-ww0-f51.google.com (HELO mail-ww0-f51.google.com) (74.125.82.51) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 24 Jan 2012 19:46:08 +0000 Received: by wgbdy1 with SMTP id dy1so4021553wgb.8 for ; Tue, 24 Jan 2012 11:46:07 -0800 (PST) Received: by 10.180.96.3 with SMTP id do3mr6257501wib.1.1327434367476; Tue, 24 Jan 2012 11:46:07 -0800 (PST) Received: from localhost (rsandifo.gotadsl.co.uk. [82.133.89.107]) by mx.google.com with ESMTPS id eq5sm55702043wib.2.2012.01.24.11.46.05 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 24 Jan 2012 11:46:06 -0800 (PST) From: Richard Sandiford To: gcc-patches@gcc.gnu.org Mail-Followup-To: gcc-patches@gcc.gnu.org, rdsandiford@googlemail.com Subject: [MIPS, committed] Clean up vect.exp results Date: Tue, 24 Jan 2012 19:46:04 +0000 Message-ID: <87pqe86g03.fsf@firetop.home> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) MIME-Version: 1.0 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 ...for -mpaired-single at least. Although the patch shows the intention of making this specific to -mpaired-single, we don't distinguish between integer and float capabilities, so the condition effectively triggers for Loongson integer vectors too. The patch is still correct for floats on Loongson, and the Loongson results are messy even without this patch, so I'm afraid I'm going to punt on them for now and concentrate on getting the standard ISA results clean. The lack of feedback to Richard's autovectorisation patches makes me wonder how much interest there is in Loongson these days anyway. Tested on mipsisa64-elf and mips64-linux-gnu. Applied. Richard gcc/testsuite/ * lib/target-supports.exp (proc check_effective_target_vect_perm) (check_effective_target_vect_extract_even_odd) (check_effective_target_vect_interleave): Return true for MIPS paired-single. Index: gcc/testsuite/lib/target-supports.exp =================================================================== --- gcc/testsuite/lib/target-supports.exp 2012-01-24 19:20:28.000000000 +0000 +++ gcc/testsuite/lib/target-supports.exp 2012-01-24 19:40:13.000000000 +0000 @@ -2759,7 +2759,9 @@ proc check_effective_target_vect_perm { || [istarget powerpc*-*-*] || [istarget spu-*-*] || [istarget i?86-*-*] - || [istarget x86_64-*-*] } { + || [istarget x86_64-*-*] + || ([istarget mips*-*-*] + && [check_effective_target_mpaired_single]) } { set et_vect_perm_saved 1 } } @@ -3484,8 +3486,10 @@ proc check_effective_target_vect_extract || [istarget i?86-*-*] || [istarget x86_64-*-*] || [istarget ia64-*-*] - || [istarget spu-*-*] } { - set et_vect_extract_even_odd_saved 1 + || [istarget spu-*-*] + || ([istarget mips*-*-*] + && [check_effective_target_mpaired_single]) } { + set et_vect_extract_even_odd_saved 1 } } @@ -3507,7 +3511,9 @@ proc check_effective_target_vect_interle || [istarget i?86-*-*] || [istarget x86_64-*-*] || [istarget ia64-*-*] - || [istarget spu-*-*] } { + || [istarget spu-*-*] + || ([istarget mips*-*-*] + && [check_effective_target_mpaired_single]) } { set et_vect_interleave_saved 1 } }