From patchwork Wed Oct 12 23:21:23 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Janis Johnson X-Patchwork-Id: 119327 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 E3BF7B6F7C for ; Thu, 13 Oct 2011 10:21:38 +1100 (EST) Received: (qmail 30309 invoked by alias); 12 Oct 2011 23:21:36 -0000 Received: (qmail 30301 invoked by uid 22791); 12 Oct 2011 23:21:35 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00 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; Wed, 12 Oct 2011 23:21:20 +0000 Received: from svr-orw-exc-10.mgc.mentorg.com ([147.34.98.58]) by relay1.mentorg.com with esmtp id 1RE86y-0004jJ-6z from Janis_Johnson@mentor.com for gcc-patches@gcc.gnu.org; Wed, 12 Oct 2011 16:21:20 -0700 Received: from SVR-ORW-FEM-02.mgc.mentorg.com ([147.34.96.206]) by SVR-ORW-EXC-10.mgc.mentorg.com with Microsoft SMTPSVC(6.0.3790.4675); Wed, 12 Oct 2011 16:10:27 -0700 Received: from [127.0.0.1] (147.34.91.1) by svr-orw-fem-02.mgc.mentorg.com (147.34.96.168) with Microsoft SMTP Server id 14.1.289.1; Wed, 12 Oct 2011 16:21:19 -0700 Message-ID: <4E9620F3.5010007@mentor.com> Date: Wed, 12 Oct 2011 16:21:23 -0700 From: Janis Johnson Reply-To: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.23) Gecko/20110922 Thunderbird/3.1.15 MIME-Version: 1.0 To: "gcc-patches@gcc.gnu.org" Subject: [testsuite] require arm_little_endian in two tests 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 Tests gcc.target/arm/pr48252.c and gcc.target/arm/neon-vset_lanes8.c expect little-endian code and fail when compiled with -mbig-endian. This patch skips the test if the current multilib does not generate little-endian code. I'm not able to run execution tests for -mbig-endian for GCC mainline but have tested this patch with CodeSourcery's GCC 4.6. OK for trunk? 2011-10-12 Janis Johnson * gcc.target/arm/pr48252.c: Require arm_little_endian. * gcc.target/arm/neon-vset_lanes8.c: Likewise. Index: gcc/testsuite/gcc.target/arm/pr48252.c =================================================================== --- gcc/testsuite/gcc.target/arm/pr48252.c (revision 344214) +++ gcc/testsuite/gcc.target/arm/pr48252.c (working copy) @@ -1,5 +1,6 @@ /* { dg-do run } */ /* { dg-require-effective-target arm_neon_hw } */ +/* { dg-require-effective-target arm_little_endian } */ /* { dg-options "-O2" } */ /* { dg-add-options arm_neon } */ Index: gcc/testsuite/gcc.target/arm/neon-vset_lanes8.c =================================================================== --- gcc/testsuite/gcc.target/arm/neon-vset_lanes8.c (revision 344214) +++ gcc/testsuite/gcc.target/arm/neon-vset_lanes8.c (working copy) @@ -2,6 +2,7 @@ /* { dg-do run } */ /* { dg-require-effective-target arm_neon_hw } */ +/* { dg-require-effective-target arm_little_endian } */ /* { dg-options "-O0" } */ /* { dg-add-options arm_neon } */