qemu-ppc
[Top][All Lists]
Advanced

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

Re: [Qemu-ppc] [PATCH v1 2/3] target-ppc: add vrldnmi and vrlwmi instruc


From: Richard Henderson
Subject: Re: [Qemu-ppc] [PATCH v1 2/3] target-ppc: add vrldnmi and vrlwmi instructions
Date: Tue, 25 Oct 2016 10:02:44 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0

On 10/24/2016 11:19 PM, Nikunj A Dadhania wrote:
> +        begin = extract##size(src2, size - begin_last - 1, num_bits); \
> +        end = extract##size(src2, size - end_last - 1, num_bits);     \
> +        shift = extract##size(src2, size - shift_last - 1, num_bits); \

What I mean is

  shift = extract##size(src2, 0, 6);
  end = extract##size(src2, 8, 6);
  begin = extract##size(src2, 16, 6);

The values are at the *same* position for both instructions.  There's no need
to parameterize with silly bigendian numberings.


r~



reply via email to

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