From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29397 invoked by alias); 2 Dec 2016 12:03:16 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 29383 invoked by uid 89); 2 Dec 2016 12:03:15 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-4.8 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy= X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 02 Dec 2016 12:03:14 +0000 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 248BF1E59; Fri, 2 Dec 2016 12:03:13 +0000 (UTC) Received: from [10.36.126.12] ([10.36.126.12]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id uB2C3Bjf021909 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 2 Dec 2016 07:03:12 -0500 Subject: Re: [PATCH] fix for aarch64 sim tbnz bug To: Jim Wilson , gdb-patches@sourceware.org References: From: Nick Clifton Message-ID: <81f852ec-2ef8-9551-dd9e-de93909adef6@redhat.com> Date: Fri, 02 Dec 2016 12:03:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-SW-Source: 2016-12/txt/msg00081.txt.bz2 Hi Jim, > Tested with a gcc C testsuite run. This reduces failures from 2856 to 2710. Patch approved - please apply. Just one question: + if (aarch64_get_reg_u64 (cpu, rt, NO_SP) & (((uint64_t) 1) << pos)) Would: + if (aarch64_get_reg_u64 (cpu, rt, NO_SP) & (1UL << pos)) work as well, or would this break on 32-bit hosts ? Cheers Nick