On Thu, 2021-03-25 at 06:39 -0600, Richard Henderson wrote: > On 3/24/21 9:15 PM, Robert Hoo wrote: > > > > + } else if (env->xcr0 & XFEATURE_AVX) { > > > > > > This is normally a 2-bit test. > > > > I beg your pardon. What 2 bits? > > I forget the names, but isn't the usual test xcr0 & 6 == 6?
6 stands for SSE state-component and AVX state-component. I'm not sure about this. Can you remember where did you this "xcr0 & 6 == 6"? I can look into that. > > > BTW, checkpatch didn't warn me on this. It escaped.:) > > Heh. > > > r~