aboutsummaryrefslogtreecommitdiff
path: root/riscv/insns/fcvt_s_w.h
diff options
context:
space:
mode:
Diffstat (limited to 'riscv/insns/fcvt_s_w.h')
-rw-r--r--riscv/insns/fcvt_s_w.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/riscv/insns/fcvt_s_w.h b/riscv/insns/fcvt_s_w.h
index 1ddabd8..75c87db 100644
--- a/riscv/insns/fcvt_s_w.h
+++ b/riscv/insns/fcvt_s_w.h
@@ -1,5 +1,5 @@
-require_extension('F');
+require_either_extension('F', EXT_ZFINX);
require_fp;
softfloat_roundingMode = RM;
-WRITE_FRD(i32_to_f32((int32_t)RS1));
+WRITE_FRD_F(i32_to_f32((int32_t)RS1));
set_fp_exceptions;