From patchwork Thu Jun 23 21:36:17 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Janis Johnson X-Patchwork-Id: 101691 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 73A62B6F7E for ; Fri, 24 Jun 2011 07:34:05 +1000 (EST) Received: (qmail 22012 invoked by alias); 23 Jun 2011 21:34:01 -0000 Received: (qmail 22001 invoked by uid 22791); 23 Jun 2011 21:33:59 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL, BAYES_00, T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (38.113.113.100) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 23 Jun 2011 21:33:45 +0000 Received: (qmail 16712 invoked from network); 23 Jun 2011 21:33:44 -0000 Received: from unknown (HELO ?192.168.1.5?) (janisjo@127.0.0.2) by mail.codesourcery.com with ESMTPA; 23 Jun 2011 21:33:44 -0000 Message-ID: <4E03B1D1.8090604@codesourcery.com> Date: Thu, 23 Jun 2011 14:36:17 -0700 From: Janis Johnson User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.17) Gecko/20110424 Thunderbird/3.1.10 MIME-Version: 1.0 To: "gcc-patches@gcc.gnu.org" CC: tom@codesourcery.com Subject: [testsuite] ARM ivopts tests: skip for no thumb support 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 Tests gcc.target/arm/ivopts*.c add -mthumb but fail on targets without thumb support; skip those targets. The tests save temporary files and need to remove them at the end, easily done with cleanup-saved-temps. Test ivopts-6.c is the only one of the set that does not require thumb2 support in the check for object-size, and it fails for -march=iwmmxt and iwmmxt2; the check should probably be used on that test as well, although I haven't included it here. OK for trunk? 2011-06-23 Janis Johnson * gcc.target/arm/ivopts-2.c: Require thumb support, clean up temporary files. * gcc.target/arm/ivopts-3.c: Likewise. * gcc.target/arm/ivopts-4.c: Likewise. * gcc.target/arm/ivopts-5.c: Likewise. * gcc.target/arm/ivopts-6.c: Likewise. * gcc.target/arm/ivopts.c: Likewise. Index: gcc.target/arm/ivopts-2.c =================================================================== --- gcc.target/arm/ivopts-2.c (revision 175313) +++ gcc.target/arm/ivopts-2.c (working copy) @@ -1,4 +1,5 @@ /* { dg-do assemble } */ +/* { dg-skip-if "" { ! { arm_thumb1_ok || arm_thumb2_ok } } } */ /* { dg-options "-Os -mthumb -fdump-tree-ivopts -save-temps" } */ extern void foo2 (short*); @@ -16,3 +17,4 @@ /* { dg-final { scan-tree-dump-times "PHI <" 1 "ivopts"} } */ /* { dg-final { object-size text <= 26 { target arm_thumb2_ok } } } */ /* { dg-final { cleanup-tree-dump "ivopts" } } */ +/* { dg-final { cleanup-saved-temps "ivopts" } } */ Index: gcc.target/arm/ivopts-3.c =================================================================== --- gcc.target/arm/ivopts-3.c (revision 175313) +++ gcc.target/arm/ivopts-3.c (working copy) @@ -1,4 +1,5 @@ /* { dg-do assemble } */ +/* { dg-skip-if "" { ! { arm_thumb1_ok || arm_thumb2_ok } } } */ /* { dg-options "-Os -mthumb -fdump-tree-ivopts -save-temps" } */ extern unsigned int foo2 (short*) __attribute__((pure)); @@ -18,3 +19,4 @@ /* { dg-final { scan-tree-dump-times ", x" 0 "ivopts"} } */ /* { dg-final { object-size text <= 30 { target arm_thumb2_ok } } } */ /* { dg-final { cleanup-tree-dump "ivopts" } } */ +/* { dg-final { cleanup-saved-temps "ivopts" } } */ Index: gcc.target/arm/ivopts-4.c =================================================================== --- gcc.target/arm/ivopts-4.c (revision 175313) +++ gcc.target/arm/ivopts-4.c (working copy) @@ -1,4 +1,5 @@ /* { dg-do assemble } */ +/* { dg-skip-if "" { ! { arm_thumb1_ok || arm_thumb2_ok } } } */ /* { dg-options "-mthumb -Os -fdump-tree-ivopts -save-temps" } */ extern unsigned int foo (int*) __attribute__((pure)); @@ -19,3 +20,4 @@ /* { dg-final { scan-tree-dump-times ", x" 0 "ivopts"} } */ /* { dg-final { object-size text <= 36 { target arm_thumb2_ok } } } */ /* { dg-final { cleanup-tree-dump "ivopts" } } */ +/* { dg-final { cleanup-saved-temps "ivopts" } } */ Index: gcc.target/arm/ivopts-5.c =================================================================== --- gcc.target/arm/ivopts-5.c (revision 175313) +++ gcc.target/arm/ivopts-5.c (working copy) @@ -1,4 +1,5 @@ /* { dg-do assemble } */ +/* { dg-skip-if "" { ! { arm_thumb1_ok || arm_thumb2_ok } } } */ /* { dg-options "-Os -mthumb -fdump-tree-ivopts -save-temps" } */ extern unsigned int foo (int*) __attribute__((pure)); @@ -18,3 +19,4 @@ /* { dg-final { scan-tree-dump-times ", x" 0 "ivopts"} } */ /* { dg-final { object-size text <= 30 { target arm_thumb2_ok } } } */ /* { dg-final { cleanup-tree-dump "ivopts" } } */ +/* { dg-final { cleanup-saved-temps "ivopts" } } */ Index: gcc.target/arm/ivopts-6.c =================================================================== --- gcc.target/arm/ivopts-6.c (revision 175313) +++ gcc.target/arm/ivopts-6.c (working copy) @@ -1,4 +1,5 @@ /* { dg-do assemble } */ +/* { dg-skip-if "" { ! { arm_thumb1_ok || arm_thumb2_ok } } } */ /* { dg-options "-Os -fdump-tree-ivopts -save-temps -marm" } */ void @@ -13,3 +14,4 @@ /* { dg-final { scan-tree-dump-times "PHI <" 1 "ivopts"} } */ /* { dg-final { object-size text <= 32 } } */ /* { dg-final { cleanup-tree-dump "ivopts" } } */ +/* { dg-final { cleanup-saved-temps "ivopts" } } */ Index: gcc.target/arm/ivopts.c =================================================================== --- gcc.target/arm/ivopts.c (revision 175313) +++ gcc.target/arm/ivopts.c (working copy) @@ -1,4 +1,5 @@ /* { dg-do assemble } */ +/* { dg-skip-if "" { ! { arm_thumb1_ok || arm_thumb2_ok } } } */ /* { dg-options "-Os -mthumb -fdump-tree-ivopts -save-temps" } */ void @@ -13,3 +14,4 @@ /* { dg-final { scan-tree-dump-times "PHI <" 1 "ivopts"} } */ /* { dg-final { object-size text <= 20 { target arm_thumb2_ok } } } */ /* { dg-final { cleanup-tree-dump "ivopts" } } */ +/* { dg-final { cleanup-saved-temps "ivopts" } } */