From: Stefano Stabellini Subject: Re: [PATCH] arm32: fix build after 063188f4b3 Date: Fri, 10 Oct 2014 18:03:28 +0100 Message-ID: References: <54380211020000780003DC42@mail.emea.novell.com> <1412950621.27111.29.camel@eu.citrix.com> <5438103D020000780003DDC8@mail.emea.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Xcddh-0008Pl-23 for xen-devel@lists.xenproject.org; Fri, 10 Oct 2014 17:06:01 +0000 In-Reply-To: <5438103D020000780003DDC8@mail.emea.novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Jan Beulich Cc: Stefano Stabellini , Suriyan Ramasami , TimDeegan , Ian Campbell , Stefano.Stabellini@citrix.com, xen-devel List-Id: xen-devel@lists.xenproject.org On Fri, 10 Oct 2014, Jan Beulich wrote: > >>> On 10.10.14 at 16:32, wrote: > > I would appreciate if Jan could post the assembly he is getting. > > Here you go: > > .type exynos_smc.constprop.1, %function > exynos_smc.constprop.1: > .LFB277: > .loc 1 40 0 > .cfi_startproc > @ args = 0, pretend = 0, frame = 0 > @ frame_needed = 0, uses_anonymous_args = 0 > @ link register save eliminated. > .LVL52: > .loc 1 43 0 > mvn r2, #3 > mov r3, #0 That cannot be right: ~3 ends up in r2, while r2 should be 0. This doesn't look like an optimization: it looks like a bug. Am I missing something? > #APP > @ 43 "exynos5.c" 1 > .ifnc r2,r0 ; .err ; .endif > .ifnc r0,r1 ; .err ; .endif > .ifnc r3,r2 ; .err ; .endif > .ifnc r3,r3 ; .err ; .endif > smc #0 > @ 0 "" 2 > .loc 1 51 0 > bx lr > .cfi_endproc > .LFE277: > .size exynos_smc.constprop.1, .-exynos_smc.constprop.1 > > with this call site code > > mov r0, r6 > bl exynos_smc.constprop.1 > > Jan >