linux_dsm_epyc7002/arch/nds32/math-emu
Vincent Chen 44e92e0364 nds32: support denormalized result through FP emulator
Currently, the nds32 FPU dose not support the arithmetic of denormalized
number. When the nds32 FPU finds the result of the instruction is a
denormlized number, the nds32 FPU considers it to be an underflow condition
and rounds the result to an appropriate number. It may causes some loss
of precision. This commit proposes a solution to re-execute the
instruction by the FPU emulator to enhance the precision. To transfer
calculations from user space to kernel space, this feature will enable
the underflow exception trap by default. Enabling this feature may cause
some side effects:
  1. Performance loss due to extra FPU exception
  2. Need another scheme to control real underflow trap
       A new parameter, UDF_trap, which is belong to FPU context is used
     to control underflow trap.

User can configure this feature via CONFIG_SUPPORT_DENORMAL_ARITHMETIC

Signed-off-by: Vincent Chen <vincentc@andestech.com>
Acked-by: Greentime Hu <greentime@andestech.com>
Signed-off-by: Greentime Hu <greentime@andestech.com>
2018-11-22 18:13:27 +08:00
..
faddd.c nds32: Support FP emulation 2018-11-22 18:13:21 +08:00
fadds.c nds32: Support FP emulation 2018-11-22 18:13:21 +08:00
fcmpd.c nds32: Support FP emulation 2018-11-22 18:13:21 +08:00
fcmps.c nds32: Support FP emulation 2018-11-22 18:13:21 +08:00
fd2s.c nds32: Support FP emulation 2018-11-22 18:13:21 +08:00
fdivd.c nds32: Support FP emulation 2018-11-22 18:13:21 +08:00
fdivs.c nds32: Support FP emulation 2018-11-22 18:13:21 +08:00
fmuld.c nds32: Support FP emulation 2018-11-22 18:13:21 +08:00
fmuls.c nds32: Support FP emulation 2018-11-22 18:13:21 +08:00
fnegd.c nds32: Support FP emulation 2018-11-22 18:13:21 +08:00
fnegs.c nds32: Support FP emulation 2018-11-22 18:13:21 +08:00
fpuemu.c nds32: support denormalized result through FP emulator 2018-11-22 18:13:27 +08:00
fs2d.c nds32: Support FP emulation 2018-11-22 18:13:21 +08:00
fsqrtd.c nds32: Support FP emulation 2018-11-22 18:13:21 +08:00
fsqrts.c nds32: Support FP emulation 2018-11-22 18:13:21 +08:00
fsubd.c nds32: Support FP emulation 2018-11-22 18:13:21 +08:00
fsubs.c nds32: Support FP emulation 2018-11-22 18:13:21 +08:00
Makefile nds32: Support FP emulation 2018-11-22 18:13:21 +08:00