From patchwork Thu Sep 27 00:00:59 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Janis Johnson X-Patchwork-Id: 187247 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 2AF802C00A3 for ; Thu, 27 Sep 2012 10:01:38 +1000 (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=1349308899; h=Comment: DomainKey-Signature:Received:Received:Received:Received:Received: Received:Message-ID:Date:From:Reply-To:User-Agent:MIME-Version: To:Subject:Content-Type:Mailing-List:Precedence:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:Sender: Delivered-To; bh=IJOSSGNSUQPx0CyxIyMA79cbzP4=; b=GxsSdIJ2s98Ytva rxxidM957wuvVe/owQGNG6j4/cu4nrA97lp259NmxS/Wm/7PUYhCczaIDY275Bel zOZn0xxJJPY+ND5scVDBx/sGIDZAbAW26gFM8HM6SlYAmdg6aLLn6OXa9B0BtH66 NP9YbAcyoCIQ6GZcfH9BXoGnpHw0= 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:Received:Message-ID:Date:From:Reply-To:User-Agent:MIME-Version:To:Subject:Content-Type:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=nhr0K29fVDBrCQ/dvRDZP1FXXiIs5J1jg3cnqwx1qGI+D/U/LwMM0yTPJH9DJx K5N3FpRvvwBtNzUMimDueMNNHPwaAq0mjG7aRkP96AjxbRVKMK2ftUA62A3z4Ejq NU9y2raj28YR8k/4H3LTP6FyDNAH25/Ist1lajzIiyl8A=; Received: (qmail 11336 invoked by alias); 27 Sep 2012 00:01:35 -0000 Received: (qmail 11328 invoked by uid 22791); 27 Sep 2012 00:01:35 -0000 X-SWARE-Spam-Status: No, hits=-3.7 required=5.0 tests=AWL, BAYES_00, KHOP_RCVD_UNTRUST, RCVD_IN_HOSTKARMA_W, RCVD_IN_HOSTKARMA_WL, TW_IW, TW_MX X-Spam-Check-By: sourceware.org Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 27 Sep 2012 00:01:23 +0000 Received: from svr-orw-fem-01.mgc.mentorg.com ([147.34.98.93]) by relay1.mentorg.com with esmtp id 1TH1Xe-0000Wu-Kj from Janis_Johnson@mentor.com for gcc-patches@gcc.gnu.org; Wed, 26 Sep 2012 17:01:22 -0700 Received: from SVR-ORW-FEM-04.mgc.mentorg.com ([147.34.97.41]) by svr-orw-fem-01.mgc.mentorg.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.4675); Wed, 26 Sep 2012 17:01:22 -0700 Received: from [127.0.0.1] (147.34.91.1) by svr-orw-fem-04.mgc.mentorg.com (147.34.97.41) with Microsoft SMTP Server id 14.1.289.1; Wed, 26 Sep 2012 17:01:21 -0700 Message-ID: <5063973B.4040208@mentor.com> Date: Wed, 26 Sep 2012 17:00:59 -0700 From: Janis Johnson Reply-To: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.28) Gecko/20120313 Thunderbird/3.1.20 MIME-Version: 1.0 To: "gcc-patches@gcc.gnu.org" Subject: [testsuite] gcc.target/arm/mmx-2.c: specify -mcpu=iwmmxt 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 Test gcc.target/arm/mmx-2.c tests ARM iWMMXt functionality but fails to compile if the compiler under test does not support that by default. This patch adds -mcpu=iwmmxt. Now instead of failing to compile due to unrecognized builtins, it fails with the ICE described in PR54338. Tested on arm-none-eabi for multiple flags, checked in on trunk. Janis 2012-09-26 Janis Johnson * gcc.target/arm/mmx-2.c: Specify -mcpu=iwmmxt. Index: gcc.target/arm/mmx-2.c =================================================================== --- gcc.target/arm/mmx-2.c (revision 191765) +++ gcc.target/arm/mmx-2.c (working copy) @@ -5,7 +5,7 @@ /* { dg-skip-if "Test is specific to ARM mode" { arm*-*-* } { "-mthumb" } { "" } } */ /* { dg-require-effective-target arm32 } */ /* { dg-require-effective-target arm_iwmmxt_ok } */ -/* { dg-options "-flax-vector-conversions -std=gnu99" } */ +/* { dg-options "-mcpu=iwmmxt -flax-vector-conversions -std=gnu99" } */ /* Internal data types for implementing the intrinsics. */ typedef int __v2si __attribute__ ((vector_size (8)));