From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56757) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZFzAo-0004vO-5p for qemu-devel@nongnu.org; Fri, 17 Jul 2015 02:31:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZFzAh-0001m1-OP for qemu-devel@nongnu.org; Fri, 17 Jul 2015 02:31:06 -0400 Received: from mail-wi0-x22c.google.com ([2a00:1450:400c:c05::22c]:38383) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZFzAh-0001lv-HF for qemu-devel@nongnu.org; Fri, 17 Jul 2015 02:30:59 -0400 Received: by wicmv11 with SMTP id mv11so34093002wic.1 for ; Thu, 16 Jul 2015 23:30:55 -0700 (PDT) Sender: Richard Henderson References: <1436958199-5181-1-git-send-email-aurelien@aurel32.net> <1436958199-5181-8-git-send-email-aurelien@aurel32.net> From: Richard Henderson Message-ID: <55A8A11C.5030109@twiddle.net> Date: Fri, 17 Jul 2015 07:30:52 +0100 MIME-Version: 1.0 In-Reply-To: <1436958199-5181-8-git-send-email-aurelien@aurel32.net> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH RFC 7/9] tcg: replace ext/u_i32_i64 by a mov when not implemented List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Aurelien Jarno , qemu-devel@nongnu.org Cc: Paolo Bonzini On 07/15/2015 12:03 PM, Aurelien Jarno wrote: > When ext_i32_i64 and extu_i32_i64 ops are not implemented, this means > that the register is already properly zero/sign extended, so we can > simply replace it by a mov. > > In practice it means at least one of the two ops should always be > implemented on 64-bit targets. > > Cc: Paolo Bonzini > Cc: Richard Henderson > Signed-off-by: Aurelien Jarno > --- > tcg/tcg-op.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) If we're going to do this (and of course pick a solution for all of the other backends), I think perhaps x86 should choose trunc + exts as the two that should be implemented, leaving extu the one that can be folded away. Something to experiment with... r~