From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14393 invoked by alias); 4 Jun 2011 06:10:21 -0000 Received: (qmail 14384 invoked by uid 22791); 4 Jun 2011 06:10:20 -0000 X-SWARE-Spam-Status: No, hits=-6.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 04 Jun 2011 06:10:02 +0000 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p546A1u7024257 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Sat, 4 Jun 2011 02:10:02 -0400 Received: from tyan-ft48-01.lab.bos.redhat.com (tyan-ft48-01.lab.bos.redhat.com [10.16.42.4]) by int-mx12.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id p546A180029635 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sat, 4 Jun 2011 02:10:01 -0400 Received: from tyan-ft48-01.lab.bos.redhat.com (localhost.localdomain [127.0.0.1]) by tyan-ft48-01.lab.bos.redhat.com (8.14.4/8.14.4) with ESMTP id p546A0tF030665 for ; Sat, 4 Jun 2011 08:10:00 +0200 Received: (from jakub@localhost) by tyan-ft48-01.lab.bos.redhat.com (8.14.4/8.14.4/Submit) id p546A0kt030663 for gcc-patches@gcc.gnu.org; Sat, 4 Jun 2011 08:10:00 +0200 Date: Sat, 04 Jun 2011 06:10:00 -0000 From: Jakub Jelinek To: gcc-patches@gcc.gnu.org Subject: [committed] Fix two pastos in guality/rotatetest.c Message-ID: <20110604061000.GJ17079@tyan-ft48-01.lab.bos.redhat.com> Reply-To: Jakub Jelinek MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org X-SW-Source: 2011-06/txt/msg00292.txt.bz2 Hi! f4/f5/f6 were copied from f1/f2/f3, just with s/long/int/, but only in f4 I've adjusted the shift count. Fixed thusly, committed to trunk. 2011-06-04 Jakub Jelinek * gcc.dg/guality/rotatetest.c (f5, f6): Fix up pastos. --- gcc/testsuite/gcc.dg/guality/rotatetest.c (revision 174631) +++ gcc/testsuite/gcc.dg/guality/rotatetest.c (working copy) @@ -46,7 +46,7 @@ f4 (unsigned int x) __attribute__((noclone, noinline)) unsigned int f5 (unsigned int x, int y) { - unsigned int f = (x << y) | (x >> (64 - y)); + unsigned int f = (x << y) | (x >> (32 - y)); unsigned int g = f; asm volatile ("" : "+r" (f)); vv++; /* { dg-final { gdb-test 52 "g" "f" } } */ @@ -56,7 +56,7 @@ f5 (unsigned int x, int y) __attribute__((noclone, noinline)) unsigned int f6 (unsigned int x, int y) { - unsigned int f = (x >> y) | (x << (64 - y)); + unsigned int f = (x >> y) | (x << (32 - y)); unsigned int g = f; asm volatile ("" : "+r" (f)); vv++; /* { dg-final { gdb-test 62 "g" "f" } } */ Jakub