From mboxrd@z Thu Jan 1 00:00:00 1970 From: "H. Peter Anvin" Subject: Re: [RFC][PATCH 2/3] math128: Introduce {mult,add,cmp}_u128 Date: Tue, 24 Apr 2012 17:09:41 -0700 Message-ID: <4F9740C5.6050306@zytor.com> References: <20120424161039.293018424@chello.nl> <20120424162224.526249106@chello.nl> <1335304497.28150.243.camel@twins> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from terminus.zytor.com ([198.137.202.10]:38915 "EHLO mail.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756888Ab2DYAJ7 (ORCPT ); Tue, 24 Apr 2012 20:09:59 -0400 In-Reply-To: <1335304497.28150.243.camel@twins> Sender: linux-arch-owner@vger.kernel.org List-ID: To: Peter Zijlstra Cc: Linus Torvalds , linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, Andrew Morton , Juri Lelli , Ingo Molnar , Thomas Gleixner On 04/24/2012 02:54 PM, Peter Zijlstra wrote: > - andl $4294967295, %edx > shrq $32, %rcx > - andl $4294967295, %esi > + mov %esi, %esi If you can *ever* get gcc to generate those andl instructions on x86, then please file a gcc bug report: the constant is 0xffffffff and those are plain zero-extension instructions which is much better done with mov. -hpa