From patchwork Tue Dec 11 12:30:54 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kyrylo Tkachov X-Patchwork-Id: 205194 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 6FA882C0087 for ; Tue, 11 Dec 2012 23:31: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=1355833894; h=Comment: DomainKey-Signature:Received:Received:Received:Received:Received: From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:Sender:Delivered-To; bh=XXYuxXEX0DsZodX5vcqW dV5pSDw=; b=km6UNsNYc/8m9uKb0qE1CjzLzD2gYA63QW8ibQJNs8+3aKJ6fzET cTZP5iuC6YQKadMG1CFm9cBTOt2bPSllEMBGp90NwlwNRdgaBZB9UCCyFct+zqQj GXhCPL65AfTdR6WDIvt0/rmeVZPwsen2LlDWK5aUyripgYJBBtL/dy8= 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:From:To:Cc:Subject:Date:Message-ID:MIME-Version:X-MC-Unique:Content-Type:X-IsSubscribed:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=IyadtHhPiofspzxMH4ttEmCDeYfLNcFhQ2o1qYdBt3j1JKNcB6VRbIlgznVPrt g1KhrMY0bJzDNS9NamcQZikxCPlrc8lqM8js+wQ8BEwk3INx5w4fs92tgRS13Ssx 3TkoIRORRaPsCP3LIsgebUWZB55iwqqr7GWIhfB/KKU2o=; Received: (qmail 27357 invoked by alias); 11 Dec 2012 12:31:19 -0000 Received: (qmail 27339 invoked by uid 22791); 11 Dec 2012 12:31:18 -0000 X-SWARE-Spam-Status: No, hits=-1.1 required=5.0 tests=AWL, BAYES_00, KHOP_RCVD_UNTRUST, MSGID_MULTIPLE_AT, RCVD_IN_DNSWL_LOW X-Spam-Check-By: sourceware.org Received: from service87.mimecast.com (HELO service87.mimecast.com) (91.220.42.44) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 11 Dec 2012 12:31:12 +0000 Received: from cam-owa1.Emea.Arm.com (fw-tnat.cambridge.arm.com [217.140.96.21]) by service87.mimecast.com; Tue, 11 Dec 2012 12:31:10 +0000 Received: from e106372vm ([10.1.255.212]) by cam-owa1.Emea.Arm.com with Microsoft SMTPSVC(6.0.3790.0); Tue, 11 Dec 2012 12:31:08 +0000 From: "Kyrylo Tkachov" To: Cc: "Ramana Radhakrishnan" Subject: [PATCH][ARM][testsuite] Add testsuite options for AArch32 NEON Date: Tue, 11 Dec 2012 12:30:54 -0000 Message-ID: <005e01cdd79b$5d210440$17630cc0$@tkachov@arm.com> MIME-Version: 1.0 X-MC-Unique: 112121112311001901 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 Hi all, Since the new AArch32 NEON instructions in arm_neon.h are predicated on __ARM_ARCH 8 the testsuite add_options procedure should also include -march=armv8-a to make these instructions available. This makes the new vrnd* tests in gcc.target/arm/neon PASS in situations where armv8-a is not the default target. No regressions otherwise on arm-none-eabi. Ok for trunk? Thanks, Kyrill gcc/testsuite/ChangeLog 2012-12-11 Kyrylo Tkachov * lib/target-supports.exp (add_options_for_arm_v8_neon): Add -march=armv8-a. diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp index ef93ad1..493a38a 100644 --- a/gcc/testsuite/lib/target-supports.exp +++ b/gcc/testsuite/lib/target-supports.exp @@ -2186,7 +2186,7 @@ proc add_options_for_arm_v8_neon { flags } { if { ! [check_effective_target_arm_v8_neon_ok] } { return "$flags" } - return "$flags -mfpu=neon-fp-armv8 -mfloat-abi=softfp" + return "$flags -march=armv8-a -mfpu=neon-fp-armv8 -mfloat-abi=softfp" } # Add the options needed for NEON. We need either -mfloat-abi=softfp