From patchwork Wed Jul 15 09:45:48 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kyrylo Tkachov X-Patchwork-Id: 495723 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]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id B6F261402AE for ; Wed, 15 Jul 2015 19:46:02 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=RFhIDzqv; dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :message-id:date:from:mime-version:to:subject:content-type; q= dns; s=default; b=NFTACmXCcUAY0fEPnxlK22G+YRVFJD7TLQa+AAHUu+a/Wp ZlvZg3nEO0xTTSxwXdA4upzpbTk4dkX11HTz0eMy61b2aPchfMLXMmOhbhNCL0x8 ECLm3ccT9f3yejvLLEIMMAz7J/wnMKCrgFSlEXqy4+4OFpHj6ycQ/uCCsAwaM= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :message-id:date:from:mime-version:to:subject:content-type; s= default; bh=hbns5Ca7TDRPCg0mA25pSJHrKiY=; b=RFhIDzqv9KcCfLOzu3Np K0vFJuOjWntLh/UPCRuCzb1zZdPYkV0j2EzN7opFEnKVlSO7zwl7VRLLNGOcqLkI tK27IJgSGEEDFEO0NhsWfaKajGX0S1I7wYCT6yInR+kSDd22Tx0jLa84srzA8i2p 3oNknQa+1N2dA1o6oK/t4rA= Received: (qmail 109362 invoked by alias); 15 Jul 2015 09:45:55 -0000 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 Received: (qmail 109352 invoked by uid 89); 15 Jul 2015 09:45:55 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.7 required=5.0 tests=AWL, BAYES_00, SPF_PASS autolearn=ham version=3.3.2 X-HELO: eu-smtp-delivery-143.mimecast.com Received: from eu-smtp-delivery-143.mimecast.com (HELO eu-smtp-delivery-143.mimecast.com) (146.101.78.143) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 15 Jul 2015 09:45:53 +0000 Received: from cam-owa1.Emea.Arm.com (fw-tnat.cambridge.arm.com [217.140.96.140]) by eu-smtp-1.mimecast.com with ESMTP id uk-mta-19-1QsUyYmaQq-IqFeUagH7uQ-1; Wed, 15 Jul 2015 10:45:49 +0100 Received: from [10.2.207.50] ([10.1.2.79]) by cam-owa1.Emea.Arm.com with Microsoft SMTPSVC(6.0.3790.3959); Wed, 15 Jul 2015 10:45:48 +0100 Message-ID: <55A62BCC.8020706@arm.com> Date: Wed, 15 Jul 2015 10:45:48 +0100 From: Kyrill Tkachov User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: GCC Patches Subject: [PATCH][ARM][testsuite][committed] Add -mfloat-abi=softfp to some xscale tests X-MC-Unique: 1QsUyYmaQq-IqFeUagH7uQ-1 X-IsSubscribed: yes Hi all, This patch adds -mfloat-abi=softfp to a couple of tests that check xscale functionality and an appropriate skipping directive. This helps avoid "unimplemented Thumb-1 hard float ABI" errors when testing the arm-none-linux-gnueabihf/-mthumb variant. With this patch the two tests PASS on arm-none-linux-gnueabihf/-mthumb and are UNSUPPORTED on arm-none-linux-gnueabihf/-mthumb/-mfloat-abi=hard Committed as obvious with r225814. Thanks, Kyrill 2015-07-15 Kyrylo Tkachov * gcc.target/arm/scd42-1.c: Add -mfloat-abi=softfp and appropriate dg-skip-if. * gcc.target/arm/scd42-3.c: Likewise. commit e640e90cce03d8e899972f73178e830556ed2e2d Author: Kyrylo Tkachov Date: Tue Jul 7 09:36:30 2015 +0100 [ARM][testsuite] Add -mfloat-abi=softfp to some xscale tests diff --git a/gcc/testsuite/gcc.target/arm/scd42-1.c b/gcc/testsuite/gcc.target/arm/scd42-1.c index 420f7c4..d1de24a 100644 --- a/gcc/testsuite/gcc.target/arm/scd42-1.c +++ b/gcc/testsuite/gcc.target/arm/scd42-1.c @@ -1,7 +1,8 @@ /* Verify that mov is preferred on XScale for loading a 1 byte constant. */ /* { dg-do compile } */ /* { dg-skip-if "incompatible options" { arm*-*-* } { "-march=*" } { "" } } */ -/* { dg-options "-mcpu=xscale -O" } */ +/* { dg-skip-if "do not override -mfloat-abi" { *-*-* } { "-mfloat-abi=*" } { "-mfloat-abi=softfp" } } */ +/* { dg-options "-mcpu=xscale -O -mfloat-abi=softfp" } */ unsigned load1(void) __attribute__ ((naked)); unsigned load1(void) diff --git a/gcc/testsuite/gcc.target/arm/scd42-3.c b/gcc/testsuite/gcc.target/arm/scd42-3.c index eb90e43..e566cb2 100644 --- a/gcc/testsuite/gcc.target/arm/scd42-3.c +++ b/gcc/testsuite/gcc.target/arm/scd42-3.c @@ -2,7 +2,8 @@ /* { dg-do compile } */ /* { dg-skip-if "Test is specific to Xscale" { arm*-*-* } { "-march=*" } { "-march=xscale" } } */ /* { dg-skip-if "Test is specific to Xscale" { arm*-*-* } { "-mcpu=*" } { "-mcpu=xscale" } } */ -/* { dg-options "-mcpu=xscale -O" } */ +/* { dg-skip-if "do not override -mfloat-abi" { *-*-* } { "-mfloat-abi=*" } { "-mfloat-abi=softfp" } } */ +/* { dg-options "-mcpu=xscale -O -mfloat-abi=softfp" } */ unsigned load4(void) __attribute__ ((naked)); unsigned load4(void)