From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26434 invoked by alias); 1 Apr 2011 15:17:39 -0000 Received: (qmail 26421 invoked by uid 22791); 1 Apr 2011 15:17:38 -0000 X-SWARE-Spam-Status: No, hits=-1.6 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (38.113.113.100) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 01 Apr 2011 15:17:31 +0000 Received: (qmail 18587 invoked from network); 1 Apr 2011 15:17:30 -0000 Received: from unknown (HELO ?192.168.1.66?) (vries@127.0.0.2) by mail.codesourcery.com with ESMTPA; 1 Apr 2011 15:17:30 -0000 Message-ID: <4D95EC89.7040404@codesourcery.com> Date: Fri, 01 Apr 2011 15:17:00 -0000 From: Tom de Vries User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.14) Gecko/20110223 Lightning/1.0b2 Thunderbird/3.1.8 MIME-Version: 1.0 To: gcc-patches@gcc.gnu.org, richard.earnshaw@arm.com Subject: Re: [PATCH, PR43920, 2/9] ARM specific part - test case References: <4D94C603.7080505@codesourcery.com> <4D94C787.4060207@codesourcery.com> <4D95E587.8090404@codesourcery.com> In-Reply-To: <4D95E587.8090404@codesourcery.com> Content-Type: multipart/mixed; boundary="------------010202030007080501080407" 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-04/txt/msg00048.txt.bz2 This is a multi-part message in MIME format. --------------010202030007080501080407 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-length: 309 On 04/01/2011 05:01 PM, Jakub Jelinek wrote: > On Fri, Apr 01, 2011 at 04:56:10PM +0200, Tom de Vries wrote: >> Reposting, with ChangeLog. > > gcc/testsuite/ has its own ChangeLog, so the ChangeLog entry > should say just > * gcc.target/arm/pr43920-2.c: New test. > > Jakub Fixed ChangeLog. Thanks, - Tom --------------010202030007080501080407 Content-Type: text/x-patch; name="2_arm-size-branch_cost.test.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="2_arm-size-branch_cost.test.patch" Content-length: 768 2011-04-01 Tom de Vries PR target/43920 * gcc.target/arm/pr43920-1.c: New test. Index: gcc/testsuite/gcc.target/arm/pr43920-1.c =================================================================== --- gcc/testsuite/gcc.target/arm/pr43920-1.c (revision 0) +++ gcc/testsuite/gcc.target/arm/pr43920-1.c (revision 0) @@ -0,0 +1,20 @@ +/* { dg-do compile } */ +/* { dg-options "-march=armv7-a -mthumb -Os" } */ + +int +f (int start, int end, int *start_) +{ + if (start == -1 || end == -1) + return -1; + + if (end - start) + return -1; + + *start_ = start; + + return 0; +} + +/* { dg-final { scan-assembler-times "\torr" 0 } } */ +/* { dg-final { scan-assembler-times "\tit\t" 0 } } */ +/* { dg-final { scan-assembler "\tbeq" } } */ --------------010202030007080501080407--