From mboxrd@z Thu Jan 1 00:00:00 1970 From: linux@arm.linux.org.uk (Russell King - ARM Linux) Date: Thu, 12 Dec 2013 15:43:09 +0000 Subject: gcc miscompiles csum_tcpudp_magic() on ARMv5 In-Reply-To: <20131212152849.GC31816@1wt.eu> References: <20131212124015.GL4360@n2100.arm.linux.org.uk> <1386855390.22947.68.camel@sakura.staff.proxad.net> <1386857410.22947.78.camel@sakura.staff.proxad.net> <20131212141926.GA31816@1wt.eu> <1386858504.22947.85.camel@sakura.staff.proxad.net> <20131212150745.GB31816@1wt.eu> <20131212152849.GC31816@1wt.eu> Message-ID: <20131212154309.GR4360@n2100.arm.linux.org.uk> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Thu, Dec 12, 2013 at 04:28:49PM +0100, Willy Tarreau wrote: > On Thu, Dec 12, 2013 at 03:18:18PM +0000, M?ns Rullg?rd wrote: > > The ABI for function calls sign/zero-extends all arguments prior to the > > call. > > OK then that's pretty clear, there's no ambiguity, thanks for the precision. Let's be clear about this: there is no GCC bug here - the kernel code unfortunately what is buggy. asm() input arguments are not subject to this promotion irrespective of the ABI.