From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:59026) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RkkyX-00065d-Cl for qemu-devel@nongnu.org; Tue, 10 Jan 2012 18:19:30 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RkkyV-0006by-LY for qemu-devel@nongnu.org; Tue, 10 Jan 2012 18:19:29 -0500 Received: from mail-yw0-f45.google.com ([209.85.213.45]:59565) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RkkyV-0006bh-Em for qemu-devel@nongnu.org; Tue, 10 Jan 2012 18:19:27 -0500 Received: by yhoo22 with SMTP id o22so79748yho.4 for ; Tue, 10 Jan 2012 15:19:26 -0800 (PST) Sender: Richard Henderson Message-ID: <4F0CC777.3000904@twiddle.net> Date: Wed, 11 Jan 2012 10:19:19 +1100 From: Richard Henderson MIME-Version: 1.0 References: <1326191247-14880-1-git-send-email-edgar.iglesias@gmail.com> In-Reply-To: <1326191247-14880-1-git-send-email-edgar.iglesias@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] microblaze: Add support for the clz insn List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Edgar E. Iglesias" Cc: qemu-devel@nongnu.org On 01/10/2012 09:27 PM, Edgar E. Iglesias wrote: > +++ b/target-microblaze/helper.h > @@ -5,6 +5,7 @@ DEF_HELPER_0(debug, void) > DEF_HELPER_FLAGS_3(carry, TCG_CALL_PURE | TCG_CALL_CONST, i32, i32, i32, i32) > DEF_HELPER_2(cmp, i32, i32, i32) > DEF_HELPER_2(cmpu, i32, i32, i32) > +DEF_HELPER_1(clz, i32, i32) Use DEF_HELPER_FLAGS_1 with PURE|CONST, since the function examines nothing but its arguments. r~