Re: [PATCH RFC v4] target/arm: Implement SVE2 HISTCNT, HISTSEG

2020-04-16 Thread Richard Henderson
On 4/16/20 7:42 AM, Stephen Long wrote: > +static inline uint8_t do_histseg_cnt(uint8_t n, uint64_t m0, uint64_t m1) > +{ > +int esz = 0; Clearer to use MO_8. > +int bits = 8 << esz; > +uint64_t ones = dup_const(esz, 1); > +uint64_t signs = ones << (bits - 1); > +uint64_t cmp0

[PATCH RFC v4] target/arm: Implement SVE2 HISTCNT, HISTSEG

2020-04-16 Thread Stephen Long
Signed-off-by: Stephen Long --- Fix error in the helper function for HISTSEG target/arm/helper-sve.h| 7 +++ target/arm/sve.decode | 6 +++ target/arm/sve_helper.c| 94 ++ target/arm/translate-sve.c | 29 4 files changed, 136 insert