|
From: | Richard Henderson |
Subject: | Re: [RFC v2 21/76] target/riscv: rvv-0.9: configure instructions |
Date: | Wed, 22 Jul 2020 13:00:21 -0700 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 |
On 7/22/20 2:15 AM, frank.chang@sifive.com wrote: > + float vflmul = flmul_table[lmul]; > + > + if ((sew > cpu->cfg.elen) > + || vill > + || vflmul < ((float)sew / cpu->cfg.elen) Hmm. I suppose this is fairly compact. Expanding this to integer code would take something like if (vflmul & 4) { /* Fractional LMUL. */ if (vflmul == 4 || cpu->cfg.elen >> (8 - vflmul) < sew) { vill = 1; } } r~
[Prev in Thread] | Current Thread | [Next in Thread] |