Browse Source

rvv: fix floating-point exception for comparison

don't use quiet api

Signed-off-by: Chih-Min Chao <chihmin.chao@sifive.com>
pull/355/head
Chih-Min Chao 7 years ago
parent
commit
530b2d1d58
  1. 1
      riscv/decode.h
  2. 2
      riscv/insns/vmfge_vf.h
  3. 2
      riscv/insns/vmfgt_vf.h
  4. 2
      riscv/insns/vmfle_vv.h
  5. 2
      riscv/insns/vmflt_vf.h
  6. 2
      riscv/insns/vmflt_vv.h

1
riscv/decode.h

@ -1673,6 +1673,7 @@ for (reg_t i = 0; i < vlmax; ++i) { \
#define VI_VFP_LOOP_CMP(BODY) \
VI_VFP_LOOP_CMP_BASE \
BODY; \
set_fp_exceptions; \
DEBUG_RVV_FP_VV; \
VI_VFP_LOOP_CMP_END \

2
riscv/insns/vmfge_vf.h

@ -1,5 +1,5 @@
// vfge.vf vd, vs2, rs1
VI_VFP_LOOP_CMP
({
res = f32_le_quiet(rs1, vs2);
res = f32_le(rs1, vs2);
})

2
riscv/insns/vmfgt_vf.h

@ -1,5 +1,5 @@
// vfgt.vf vd, vs2, rs1
VI_VFP_LOOP_CMP
({
res = f32_lt_quiet(rs1, vs2);
res = f32_lt(rs1, vs2);
})

2
riscv/insns/vmfle_vv.h

@ -1,5 +1,5 @@
// vfle.vv vd, vs2, rs1
VI_VFP_LOOP_CMP
({
res = f32_le_quiet(vs2, vs1);
res = f32_le(vs2, vs1);
})

2
riscv/insns/vmflt_vf.h

@ -1,5 +1,5 @@
// vflt.vf vd, vs2, rs1
VI_VFP_LOOP_CMP
({
res = f32_lt_quiet(vs2, rs1);
res = f32_lt(vs2, rs1);
})

2
riscv/insns/vmflt_vv.h

@ -1,5 +1,5 @@
// vflt.vv vd, vs2, vs1
VI_VFP_LOOP_CMP
({
res = f32_lt_quiet(vs2, vs1);
res = f32_lt(vs2, vs1);
})

Loading…
Cancel
Save