[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 23/37] target/i386: reimplement 0x0f 0x78-0x7f, add AVX
From: |
Paolo Bonzini |
Subject: |
Re: [PATCH 23/37] target/i386: reimplement 0x0f 0x78-0x7f, add AVX |
Date: |
Wed, 14 Sep 2022 18:17:23 +0200 |
On Mon, Sep 12, 2022 at 3:56 PM Richard Henderson
<richard.henderson@linaro.org> wrote:
> > +static void gen_SSE4a_I(DisasContext *s, CPUX86State *env, X86DecodedInsn
> > *decode)
> > +{
> > + TCGv_i32 length = tcg_const_i32(decode->immediate & 255);
> > + TCGv_i32 index = tcg_const_i32(decode->immediate >> 8);
> > +
> > + if (s->prefix & PREFIX_DATA) {
> > + gen_helper_extrq_i(cpu_env, s->ptr0, index, length);
> > + } else {
> > + gen_helper_insertq_i(cpu_env, s->ptr0, index, length);
> > + }
> > + tcg_temp_free_i32(length);
> > + tcg_temp_free_i32(index);
>
> Again, why the choice of delayed decode? I guess it doesn't matter, but it's
> odd.
Mostly because I wasn't sure of which would be preferable so I tried
different things. I think now I have a better picture.
I will mostly switch to decode_by_prefix.
Paolo
- Re: [PATCH 22/37] target/i386: reimplement 0x0f 0x50-0x5f, add AVX, (continued)
- [PATCH 21/37] target/i386: reimplement 0x0f 0xd8-0xdf, 0xe8-0xef, 0xf8-0xff, add AVX, Paolo Bonzini, 2022/09/11
- [PATCH 20/37] target/i386: reimplement 0x0f 0x60-0x6f, add AVX, Paolo Bonzini, 2022/09/11
- Re: [PATCH 20/37] target/i386: reimplement 0x0f 0x60-0x6f, add AVX, Richard Henderson, 2022/09/12
- [PATCH 23/37] target/i386: reimplement 0x0f 0x78-0x7f, add AVX, Paolo Bonzini, 2022/09/11
- [PATCH 25/37] target/i386: reimplement 0x0f 0xd0-0xd7, 0xe0-0xe7, 0xf0-0xf7, add AVX, Paolo Bonzini, 2022/09/11
- [PATCH 24/37] target/i386: reimplement 0x0f 0x70-0x77, add AVX, Paolo Bonzini, 2022/09/11
- [PATCH 27/37] target/i386: Use tcg gvec ops for pmovmskb, Paolo Bonzini, 2022/09/11
[PATCH 26/37] target/i386: reimplement 0x0f 0x3a, add AVX, Paolo Bonzini, 2022/09/11