aboutsummaryrefslogtreecommitdiff
path: root/riscv/insns/fcvt_w_s.h
diff options
context:
space:
mode:
Diffstat (limited to 'riscv/insns/fcvt_w_s.h')
-rw-r--r--riscv/insns/fcvt_w_s.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/riscv/insns/fcvt_w_s.h b/riscv/insns/fcvt_w_s.h
index d30f1b4..6aeb510 100644
--- a/riscv/insns/fcvt_w_s.h
+++ b/riscv/insns/fcvt_w_s.h
@@ -1,5 +1,5 @@
-require_extension('F');
+require_either_extension('F', EXT_ZFINX);
require_fp;
softfloat_roundingMode = RM;
-WRITE_RD(sext32(f32_to_i32(f32(FRS1), RM, true)));
+WRITE_RD(sext32(f32_to_i32(FRS1_F, RM, true)));
set_fp_exceptions;