From patchwork Tue Jul 6 09:06:27 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric Fisher X-Patchwork-Id: 57989 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 5781AB6EFE for ; Tue, 6 Jul 2010 19:06:57 +1000 (EST) Received: (qmail 22835 invoked by alias); 6 Jul 2010 09:06:55 -0000 Received: (qmail 22825 invoked by uid 22791); 6 Jul 2010 09:06:54 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL, BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE X-Spam-Check-By: sourceware.org Received: from mail-qy0-f175.google.com (HELO mail-qy0-f175.google.com) (209.85.216.175) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 06 Jul 2010 09:06:49 +0000 Received: by qyk30 with SMTP id 30so2357027qyk.20 for ; Tue, 06 Jul 2010 02:06:47 -0700 (PDT) Received: by 10.224.28.76 with SMTP id l12mr2239911qac.99.1278407207091; Tue, 06 Jul 2010 02:06:47 -0700 (PDT) MIME-Version: 1.0 Received: by 10.229.91.17 with HTTP; Tue, 6 Jul 2010 02:06:27 -0700 (PDT) From: Eric Fisher Date: Tue, 6 Jul 2010 17:06:27 +0800 Message-ID: Subject: [vect, loongson] make vect test available for loongson To: gcc-patches 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, This patch will modify the target-support.exp to enable vect_int, vect_shift, vect_no_int_max, and vect_no_align for loongson target. So that the auto-vectorization tests will be done. Here's the test result when apply the early patch (http://gcc.gnu.org/ml/gcc-patches/2010-07/msg00357.html) on trunk: === gcc Summary === # of expected passes 55 # of unexpected failures 1 # of expected failures 6 # of unsupported tests 488 /home/xmj/tools/build-trunk/gcc/xgcc version 4.6.0 20100706 (experimental) (GCC) Here's the test result when apply this patch too: === gcc Summary === # of expected passes 1020 # of unexpected failures 9 # of unexpected successes 15 # of expected failures 91 # of unsupported tests 141 /home/xmj/tools/build-trunk/gcc/xgcc version 4.6.0 20100706 (experimental) (GCC) The tests are run using cross compiler plus ssh, compile on ia64, run on loongson2f. ChangeLog * target-supports.exp: enable vect_int, vect_shift, vect_no_int_max, and vect_no_align for loongson target. Thanks, Eric Index: gcc/testsuite/lib/target-supports.exp =================================================================== --- gcc/testsuite/lib/target-supports.exp (revision 161865) +++ gcc/testsuite/lib/target-supports.exp (working copy) @@ -1493,7 +1493,8 @@ proc check_effective_target_vect_int { } || [istarget sparc*-*-*] || [istarget alpha*-*-*] || [istarget ia64-*-*] - || [check_effective_target_arm32] } { + || [check_effective_target_arm32] + || ([istarget mips*-*-*] && [check_effective_target_mips_loongson]) } { set et_vect_int_saved 1 } } @@ -2029,7 +2030,8 @@ proc check_effective_target_vect_shift { || [istarget ia64-*-*] || [istarget i?86-*-*] || [istarget x86_64-*-*] - || [check_effective_target_arm32] } { + || [check_effective_target_arm32] + || ([istarget mips*-*-*] && [check_effective_target_mips_loongson]) } { set et_vect_shift_saved 1 } } @@ -2143,7 +2145,8 @@ proc check_effective_target_vect_no_int_ set et_vect_no_int_max_saved 0 if { [istarget sparc*-*-*] || [istarget spu-*-*] - || [istarget alpha*-*-*] } { + || [istarget alpha*-*-*] + || ([istarget mips*-*-*] && [check_effective_target_mips_loongson]) } { set et_vect_no_int_max_saved 1 } } @@ -2516,7 +2519,8 @@ proc check_effective_target_vect_no_alig if { [istarget mipsisa64*-*-*] || [istarget sparc*-*-*] || [istarget ia64-*-*] - || [check_effective_target_arm32] } { + || [check_effective_target_arm32] + || ([istarget mips*-*-*] && [check_effective_target_mips_loongson]) } { set et_vect_no_align_saved 1 } }