From patchwork Mon Aug 19 12:05:10 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joern Rennecke X-Patchwork-Id: 268196 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 DE05E2C00D3 for ; Mon, 19 Aug 2013 22:05:18 +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:to:cc:subject:mime-version:content-type :content-transfer-encoding; q=dns; s=default; b=jt+coHjeADM4l9j+ VJ4AAH+nwOCov6rh0wdLO8S3qnF1P7OObrhqFPqYzHxR8vQX8DHjSgpybkhkEQY2 1WnASpHOmNSY382UCUIussmKPO9q7Ee6StxngFOuSm8pVZ+3cEEcSjYOig/KzX20 1oda3JIVzMIVsWCFNB3MYeVwU6g= 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:to:cc:subject:mime-version:content-type :content-transfer-encoding; s=default; bh=vmgMoF14sd+pGYmb36NbAc t3CFQ=; b=Rv+zvZH5iZCWeCdcAtCR1oD9WhtsL6V/3oggWtMhI9OuVk+yA258Kx 3A/Juvrsg/2bSbm2ohmj/R/mf/GihBaSo8mO+UdPosVhwi1ob4qlK0FI5VhDLX0+ 1oIAentx3QZSicEwGTmCC9UuhgyHvaqkBlHul191A3jHF/fZr6zAY= Received: (qmail 9017 invoked by alias); 19 Aug 2013 12:05:12 -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 9008 invoked by uid 89); 19 Aug 2013 12:05:12 -0000 X-Spam-SWARE-Status: No, score=-2.8 required=5.0 tests=AWL, BAYES_00, KHOP_RCVD_UNTRUST, RCVD_IN_DNSWL_MED, RCVD_IN_HOSTKARMA_W autolearn=ham version=3.3.2 Received: from c62.cesmail.net (HELO c62.cesmail.net) (216.154.195.54) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Mon, 19 Aug 2013 12:05:11 +0000 Received: from unknown (HELO delta2) ([192.168.1.50]) by c62.cesmail.net with ESMTP; 19 Aug 2013 08:05:10 -0400 Received: from cust213-dsl91-135-11.idnet.net (cust213-dsl91-135-11.idnet.net [91.135.11.213]) by webmail.spamcop.net (Horde MIME library) with HTTP; Mon, 19 Aug 2013 08:05:10 -0400 Message-ID: <20130819080510.o5gr2vxqo8s4w0wo-nzlynne@webmail.spamcop.net> Date: Mon, 19 Aug 2013 08:05:10 -0400 From: Joern Rennecke To: gcc-patches@gcc.gnu.org Cc: Rainer Orth , Mike Stump , Janis Johnson Subject: RFA: testsuite patches (6/6): More int16 / !size32plus patches MIME-Version: 1.0 User-Agent: Internet Messaging Program (IMP) H3 (4.1.4) X-Virus-Found: No Tested for avr with --target_board=atmega128-sim and native on i686-pc-linuc-gnu. Ok to apply? 2013-08-18 Joern Rennecke PR testsuite/52641 * gcc.dg/tree-ssa/pr31261.c [int16]: Change expected unsigned type. * gcc.dg/tree-ssa/ssa-pre-21.c [! size32plus]: Mark as xfail. * gcc.dg/tree-ssa/vector-4.c (SItype): New typedef. (v4si): Use it. * gcc.dg/tree-ssa/ssa-pre-30.c: Test requires int32. * gcc.dg/tree-ssa/vrp58.c: Adjust scan expression for int16. Index: gcc.dg/tree-ssa/pr31261.c =================================================================== --- gcc.dg/tree-ssa/pr31261.c (revision 201835) +++ gcc.dg/tree-ssa/pr31261.c (working copy) @@ -35,6 +35,7 @@ f5 (int e) /* { dg-final { scan-tree-dump-times "return -a \& 7;" 1 "original" } } */ /* { dg-final { scan-tree-dump-times "return b \& 7;" 1 "original" } } */ /* { dg-final { scan-tree-dump-times "return \\(char\\) -\\(unsigned char\\) c \& 31;" 1 "original" } } */ -/* { dg-final { scan-tree-dump-times "return \\(int\\) \\(12 - \\(unsigned int\\) d\\) \& 7;" 1 "original" } } */ +/* { dg-final { scan-tree-dump-times "return \\(int\\) \\(12 - \\(unsigned int\\) d\\) \& 7;" 1 "original" { target { ! int16 } } } } */ +/* { dg-final { scan-tree-dump-times "return \\(int\\) \\(12 - \\(unsigned short\\) d\\) \& 7;" 1 "original" { target { int16 } } } } */ /* { dg-final { scan-tree-dump-times "return 12 - \\(e \& 7\\) \& 15;" 1 "original" } } */ /* { dg-final { cleanup-tree-dump "original" } } */ Index: gcc.dg/tree-ssa/ssa-pre-21.c =================================================================== --- gcc.dg/tree-ssa/ssa-pre-21.c (revision 201835) +++ gcc.dg/tree-ssa/ssa-pre-21.c (working copy) @@ -11,5 +11,5 @@ NumSift (long *array, unsigned long k) /* There should be only two loads left. */ -/* { dg-final { scan-tree-dump-times "= \\\*\[^\n;\]*;" 2 "pre" } } */ +/* { dg-final { scan-tree-dump-times "= \\\*\[^\n;\]*;" 2 "pre" { xfail { ! size32plus } } } } */ /* xfail: PR tree-optimization/58169 */ /* { dg-final { cleanup-tree-dump "pre" } } */ Index: gcc.dg/tree-ssa/vector-4.c =================================================================== --- gcc.dg/tree-ssa/vector-4.c (revision 201835) +++ gcc.dg/tree-ssa/vector-4.c (working copy) @@ -1,7 +1,8 @@ /* { dg-do compile } */ /* { dg-options "-w -O1 -fdump-tree-gimple" } */ -typedef int v4si __attribute__ ((vector_size (16))); +typedef int SItype __attribute__ ((mode (SI))); +typedef SItype v4si __attribute__ ((vector_size (16))); v4si vs (v4si a, v4si b) { Index: gcc.dg/tree-ssa/ssa-pre-30.c =================================================================== --- gcc.dg/tree-ssa/ssa-pre-30.c (revision 201835) +++ gcc.dg/tree-ssa/ssa-pre-30.c (working copy) @@ -1,4 +1,5 @@ /* { dg-do compile } */ +/* { dg-require-effective-target int32 } */ /* { dg-options "-O2 -fdump-tree-pre-details" } */ int f; Index: gcc.dg/tree-ssa/vrp58.c =================================================================== --- gcc.dg/tree-ssa/vrp58.c (revision 201835) +++ gcc.dg/tree-ssa/vrp58.c (working copy) @@ -8,5 +8,6 @@ foo (long long a, signed char b, signed return a + (short)bc; } -/* { dg-final { scan-tree-dump "Folded into" "vrp1" } } */ +/* { dg-final { scan-tree-dump "Folded into" "vrp1" { target int32plus } } } */ +/* { dg-final { scan-tree-dump "Folding statement: _\[0-9\]\* = \\(long long int\\) bc_\[0-9\]\*;" "vrp1" { target int16 } } } */ /* { dg-final { cleanup-tree-dump "vrp1" } } */