On 12/30/19 6:11 PM, LIU Zhiwei wrote: > > However It's not clear when use tcg_gen_gvec_*_ptr or tcg_gen_gvec_ool. I > think > the meaning of oprsz is the > the bits of active elements. Therefore , oprsz is 8 * env->vext.vl in RISC-V > and it can't be fetched from > TB_FLAGS like SVE. > > Probably oprsz field will be not be used in RISC-V vector extension.
Correct. For those risc-v helpers that are called when VL != VLMAX, you would ignore the oprsz field and fetch it from env. It may still be handy to pass in vlmax as maxsz, even if you leave the oprsz field 0. You'll find that out as you do the coding, I suppose. r~