From patchwork Wed Jun 8 13:14:38 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Senthil Kumar Selvaraj X-Patchwork-Id: 632239 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 3rPppB3N89z9sdQ for ; Wed, 8 Jun 2016 23:15:28 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=qTPmTTqp; 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:from :to:cc:subject:date:message-id:mime-version:content-type; q=dns; s=default; b=uzXbhvi5pCi8NhxuAoePirBDvxT+FkcdhnjLowDpgmEdzfKdGs Uq+ZoZJe0PuM9FrGozqPkZ5+tLxoVmqZcFnuOofVYjHBfM2ixXrUaBLwsDlPErek LjVMOqX+34lYwgfmYE3RitQRtdQAnc5YOJGmZ2Ne/EsroIVuuL2axYa68= 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:from :to:cc:subject:date:message-id:mime-version:content-type; s= default; bh=1e19neq5DO+n98tlcX4D3BM9nmQ=; b=qTPmTTqpsG2zRzc8OxCv tw+kNVqDH83QDebT+P+e7n4e2LKcy2SYmOXYUV94XWSJdKmsiHvZvdObNozPfWY/ ZFX6UoaMDkt3jCWhtnwxlgHrKABuKKw3UHPlgYUhmG/zD6+keLZZ9WMT1zOtICjX AaKlxFebo1H5McXLbYEEvQo= Received: (qmail 84032 invoked by alias); 8 Jun 2016 13:15:17 -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 84002 invoked by uid 89); 8 Jun 2016 13:15:13 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.3 required=5.0 tests=BAYES_00, RP_MATCHES_RCVD, SPF_PASS autolearn=ham version=3.3.2 spammy= X-HELO: eusmtp01.atmel.com Received: from eusmtp01.atmel.com (HELO eusmtp01.atmel.com) (212.144.249.243) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Wed, 08 Jun 2016 13:14:57 +0000 Received: from HNOCHT01.corp.atmel.com (10.161.30.161) by eusmtp01.atmel.com (10.161.101.31) with Microsoft SMTP Server (TLS) id 14.3.235.1; Wed, 8 Jun 2016 15:14:48 +0200 Received: from jaguar.atmel.com (10.161.30.18) by HNOCHT01.corp.atmel.com (10.161.30.161) with Microsoft SMTP Server (TLS) id 14.3.235.1; Wed, 8 Jun 2016 15:14:51 +0200 User-agent: mu4e 0.9.17; emacs 24.5.1 From: Senthil Kumar Selvaraj To: "gcc-patches@gcc.gnu.org" CC: Mike Stump , Jeff Law Subject: [Patch, testsuite] Skip some more tests for targets with int size < 32 Date: Wed, 8 Jun 2016 18:44:38 +0530 Message-ID: <878tyfg6v5.fsf@atmel.com> MIME-Version: 1.0 X-IsSubscribed: yes Hi, This patch requires int32plus support for a few more tests - these were failing for the avr target. bswap-2.c uses left shifts wider than 16 bits on a char, and pr68067-{1,2} use an out of range negative number (INT_MIN for 32 bit int). If this is ok, could someone commit please? I don't have commit access. Regards Senthil gcc/testsuite/ChangeLog 2016-06-08 Senthil Kumar Selvaraj * gcc.c-torture/execute/bswap-2.c: Require int32plus. * gcc.dg/torture/pr68067-1.c: Likewise. * gcc.dg/torture/pr68067-2.c: Likewise. diff --git gcc/testsuite/gcc.c-torture/execute/bswap-2.c gcc/testsuite/gcc.c-torture/execute/bswap-2.c index 88132fe..63e7807 100644 --- gcc/testsuite/gcc.c-torture/execute/bswap-2.c +++ gcc/testsuite/gcc.c-torture/execute/bswap-2.c @@ -1,3 +1,5 @@ +/* { dg-require-effective-target int32plus } */ + #ifdef __UINT32_TYPE__ typedef __UINT32_TYPE__ uint32_t; #else diff --git gcc/testsuite/gcc.dg/torture/pr68067-1.c gcc/testsuite/gcc.dg/torture/pr68067-1.c index a7b6aa0..f8ad3ca 100644 --- gcc/testsuite/gcc.dg/torture/pr68067-1.c +++ gcc/testsuite/gcc.dg/torture/pr68067-1.c @@ -1,4 +1,5 @@ /* { dg-do run } */ +/* { dg-require-effective-target int32plus } */ int main() { diff --git gcc/testsuite/gcc.dg/torture/pr68067-2.c gcc/testsuite/gcc.dg/torture/pr68067-2.c index 38a459b..e03bf22 100644 --- gcc/testsuite/gcc.dg/torture/pr68067-2.c +++ gcc/testsuite/gcc.dg/torture/pr68067-2.c @@ -1,4 +1,5 @@ /* { dg-do run } */ +/* { dg-require-effective-target int32plus } */ int main() {