qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v2 10/10] tcg/optimize: add constant folding for


From: Richard Henderson
Subject: Re: [Qemu-devel] [PATCH v2 10/10] tcg/optimize: add constant folding for deposit
Date: Fri, 21 Sep 2012 16:22:53 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:15.0) Gecko/20120828 Thunderbird/15.0

On 09/21/2012 12:43 PM, Aurelien Jarno wrote:
> +                tmp = ((1ull << args[4]) - 1);
> +                tmp = (temps[args[1]].val & ~(tmp << args[3]))
> +                      | ((temps[args[2]].val & tmp) << args[3]);
> +                tcg_opt_gen_movi(gen_args, args[0], tmp);

We do have a deposit64 function in bitops.h, fwiw.

Though, really, bitops.h has some crappy functions in it that are
redundant with the better functions in host-utils.h...


r~



reply via email to

[Prev in Thread] Current Thread [Next in Thread]