Zfinx extension also provide floating point environment like F extension, so
enable that on `__fe_getround` and `__fe_raise_inexact` too.
Reviewed By: asb
Differential Revision: https://reviews.llvm.org/D154570
#define RISCV_INEXACT 0x1
CRT_FE_ROUND_MODE __fe_getround(void) {
-#if defined(__riscv_f)
+#if defined(__riscv_f) || defined(__riscv_zfinx)
int frm;
__asm__ __volatile__("frrm %0" : "=r" (frm));
switch (frm) {
}
int __fe_raise_inexact(void) {
-#if defined(__riscv_f)
+#if defined(__riscv_f) || defined(__riscv_zfinx)
__asm__ __volatile__("csrsi fflags, %0" :: "i" (RISCV_INEXACT));
#endif
return 0;