From patchwork Tue Jun 21 21:07:14 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Janis Johnson X-Patchwork-Id: 101372 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 4DC05B6F8A for ; Wed, 22 Jun 2011 07:05:16 +1000 (EST) Received: (qmail 3684 invoked by alias); 21 Jun 2011 21:05:14 -0000 Received: (qmail 3675 invoked by uid 22791); 21 Jun 2011 21:05:13 -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; Tue, 21 Jun 2011 21:04:58 +0000 Received: (qmail 11834 invoked from network); 21 Jun 2011 21:04:58 -0000 Received: from unknown (HELO ?192.168.1.5?) (janisjo@127.0.0.2) by mail.codesourcery.com with ESMTPA; 21 Jun 2011 21:04:58 -0000 Message-ID: <4E010802.2070209@codesourcery.com> Date: Tue, 21 Jun 2011 14:07:14 -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" Subject: [testsuite] ARM: check for thumb1 or thumb2 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 Modify three tests that require thumb support by skipping them if neither thumb1 nor thumb2 is supported. OK for trunk, and later for 4.6? 2011-06-21 Janis Johnson * gcc.target/arm/20031108-1.c: Require thumb1 or thumb2. * gcc.target/arm/pr40482.c: Likewise. * gcc.target/arm/stack-corruption.c: Likewise. Index: gcc.target/arm/20031108-1.c =================================================================== --- gcc.target/arm/20031108-1.c (revision 175269) +++ gcc.target/arm/20031108-1.c (working copy) @@ -1,5 +1,6 @@ /* PR optimization/10467 */ /* { dg-do compile } */ +/* { dg-skip-if "" { ! { arm_thumb1_ok || arm_thumb2_ok } } } */ /* { dg-options "-O2 -mthumb" } */ typedef enum {Ident_1} Enumeration; Index: gcc.target/arm/pr40482.c =================================================================== --- gcc.target/arm/pr40482.c (revision 175269) +++ gcc.target/arm/pr40482.c (working copy) @@ -1,3 +1,4 @@ +/* { dg-skip-if "" { ! { arm_thumb1_ok || arm_thumb2_ok } } } */ /* { dg-options "-mthumb -Os" } */ /* { dg-final { scan-assembler-not "ldr" } } */ Index: gcc.target/arm/stack-corruption.c =================================================================== --- gcc.target/arm/stack-corruption.c (revision 175269) +++ gcc.target/arm/stack-corruption.c (working copy) @@ -1,4 +1,5 @@ /* { dg-do compile } */ +/* { dg-skip-if "" { ! { arm_thumb1_ok || arm_thumb2_ok } } } */ /* { dg-options "-O -mthumb -fno-omit-frame-pointer" } */ int main() {