aboutsummaryrefslogtreecommitdiff
path: root/riscv/insns/fround_s.h
diff options
context:
space:
mode:
Diffstat (limited to 'riscv/insns/fround_s.h')
-rw-r--r--riscv/insns/fround_s.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/riscv/insns/fround_s.h b/riscv/insns/fround_s.h
new file mode 100644
index 0000000..272897e
--- /dev/null
+++ b/riscv/insns/fround_s.h
@@ -0,0 +1,5 @@
+require_extension('F');
+require_extension(EXT_ZFA);
+require_fp;
+WRITE_FRD_F(f32_roundToInt(FRS1_F, RM, true));
+set_fp_exceptions;