Re: [PATCH v6 39/61] target/riscv: vector floating-point compare instructions

2020-03-28 Thread LIU Zhiwei
On 2020/3/28 10:01, Richard Henderson wrote: On 3/17/20 8:06 AM, LIU Zhiwei wrote: +static uint8_t vmfne16(uint16_t a, uint16_t b, float_status *s) +{ +int compare = float16_compare_quiet(a, b, s); +return compare != float_relation_equal && + compare !=

Re: [PATCH v6 39/61] target/riscv: vector floating-point compare instructions

2020-03-27 Thread Richard Henderson
On 3/17/20 8:06 AM, LIU Zhiwei wrote: > +static uint8_t vmfne16(uint16_t a, uint16_t b, float_status *s) > +{ > +int compare = float16_compare_quiet(a, b, s); > +return compare != float_relation_equal && > + compare != float_relation_unordered; > +} > + > +static uint8_t

[PATCH v6 39/61] target/riscv: vector floating-point compare instructions

2020-03-17 Thread LIU Zhiwei
Signed-off-by: LIU Zhiwei --- target/riscv/helper.h | 37 + target/riscv/insn32.decode | 12 ++ target/riscv/insn_trans/trans_rvv.inc.c | 33 + target/riscv/vector_helper.c| 182 4 files changed, 264 insertions(+)