This is the mail archive of the
libc-help@sourceware.org
mailing list for the glibc project.
Need details about generating traps for floating point exceptions
- From: Faisal Riyaz <faisalriyaz011 at gmail dot com>
- To: libc-help at sourceware dot org
- Date: Mon, 24 Jun 2019 17:10:22 +0530
- Subject: Need details about generating traps for floating point exceptions
Hi,
I am interested in knowing more about how traps are generated when floating
point exception occur.
Currently, gcc for RISC-V(riscv64-unknown-elf-gcc (GCC) 8.2.0) does not
generate traps on encountering
floating point exceptions.
I am going through glibc source code. I found .c files for functions
defined in fenv.h to handle floating point
exceptions but i am not able to figure out how trap is generated.
Thanks
Faisal