Re: [PATCH 3/6] target/riscv: Check for LEGAL NaN-boxing

2020-06-30 Thread LIU Zhiwei
On 2020/6/30 15:20, Chih-Min Chao wrote: On Sat, Jun 27, 2020 at 5:05 AM LIU Zhiwei > wrote: A narrow n-bit operation, where n < FLEN, checks that input operands are correctly NaN-boxed, i.e., all upper FLEN - n bits are 1. If so, the n

Re: [PATCH 3/6] target/riscv: Check for LEGAL NaN-boxing

2020-06-30 Thread Chih-Min Chao
On Sat, Jun 27, 2020 at 5:05 AM LIU Zhiwei wrote: > A narrow n-bit operation, where n < FLEN, checks that input operands > are correctly NaN-boxed, i.e., all upper FLEN - n bits are 1. > If so, the n least-significant bits of the input are used as the input > value, > otherwise the input value