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, 4 insertions, 0 deletions
diff --git a/riscv/insns/fcvt_s_w.h b/riscv/insns/fcvt_s_w.h
new file mode 100644
index 0000000..dedebb5
--- /dev/null
+++ b/riscv/insns/fcvt_s_w.h
@@ -0,0 +1,4 @@
+require_fp;
+softfloat_roundingMode = RM;
+FRD = i32_to_f32((int32_t)RS1);
+set_fp_exceptions;