From patchwork Mon Jul 8 19:44:15 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Janis Johnson X-Patchwork-Id: 257595 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 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "localhost", Issuer "www.qmailtoaster.com" (not verified)) by ozlabs.org (Postfix) with ESMTPS id 2FA082C0209 for ; Tue, 9 Jul 2013 05:44:16 +1000 (EST) 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:reply-to:mime-version:to:subject :content-type; q=dns; s=default; b=OehgOcX93CvDFsNAuonvtOrOM6PVp U3Rp8fN93TK0IghR+lzNWj5qEyhQqJD0INupcDK6MvoAfFgPS8EuAR0FAtXwBc4u ToWmbVdLrejsV/S6E2BQXUF9tZWZaf8r4VAY8evlvOdlSC2r+8lMI4+oQydnEsFW /MWXrWcCks1XMI= 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:reply-to:mime-version:to:subject :content-type; s=default; bh=2bW+/9lJT/LVzcKlbm3MNxMr3+8=; b=oxX 5cpM2IskH9kGVG2YU3xq3TN0Ku6/aoBYvxCZgAW7r0M1bI3YanuWWiQYO7pbE8fx 5APOiivgDKuwhBJRbEgQ01o5U18dkEIHUwl8K99at5fAI50WfhjJyuaA0w7uJKP8 oc4bZd7AkN6yzWdkBg2k/ynDh1p/TPaVXAoJZbyY= Received: (qmail 18436 invoked by alias); 8 Jul 2013 19:44:10 -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 18427 invoked by uid 89); 8 Jul 2013 19:44:09 -0000 X-Spam-SWARE-Status: No, score=-3.8 required=5.0 tests=AWL, BAYES_00, KHOP_RCVD_UNTRUST, RCVD_IN_HOSTKARMA_W, RCVD_IN_HOSTKARMA_WL autolearn=ham version=3.3.1 Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Mon, 08 Jul 2013 19:44:09 +0000 Received: from svr-orw-fem-01.mgc.mentorg.com ([147.34.98.93]) by relay1.mentorg.com with esmtp id 1UwHLz-000700-Le from Janis_Johnson@mentor.com ; Mon, 08 Jul 2013 12:44:07 -0700 Received: from SVR-ORW-FEM-03.mgc.mentorg.com ([147.34.97.39]) by svr-orw-fem-01.mgc.mentorg.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.4675); Mon, 8 Jul 2013 12:44:07 -0700 Received: from [127.0.0.1] (147.34.91.1) by svr-orw-fem-03.mgc.mentorg.com (147.34.97.39) with Microsoft SMTP Server id 14.2.247.3; Mon, 8 Jul 2013 12:44:06 -0700 Message-ID: <51DB168F.3080601@mentor.com> Date: Mon, 8 Jul 2013 12:44:15 -0700 From: Janis Johnson Reply-To: User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130308 Thunderbird/17.0.4 MIME-Version: 1.0 To: "gcc-patches@gcc.gnu.org" , Subject: [testsuite] fix gcc.target/powerpc/pr47197.c X-Virus-Found: No Test gcc.target/powerpc/pr47197.c passes "-maltivec" without first checking that the option is allowed on the target, which is not the case for powerpc-eabispe. This obvious patch fixes the problem by requiring powerpc_altivec_ok; checked in on mainline and the 4.8 branch. Janis 2013-07-08 Janis Johnson * gcc.target/powerpc/pr47197.c: Require powerpc_altivec_ok. Index: gcc.target/powerpc/pr47197.c =================================================================== --- gcc.target/powerpc/pr47197.c (revision 200621) +++ gcc.target/powerpc/pr47197.c (working copy) @@ -1,4 +1,5 @@ /* { dg-do compile } */ +/* { dg-require-effective-target powerpc_altivec_ok } */ /* { dg-options "-maltivec" } */ /* Compile-only test to ensure that expressions can be passed to