Support setting ISA/subsets with --isa flag
[riscv-isa-sim.git] / riscv / insns / fcvt_w_s.h
index f14cc19a37798d4e2032cf69bc2b233b02c50c8c..81bc89ff8d8ed48323a5c5ab0b26bf28007953ab 100644 (file)
@@ -1,4 +1,5 @@
+require_extension('F');
 require_fp;
 softfloat_roundingMode = RM;
-RD = sext32(f32_to_i32(FRS1, RM, true));
+WRITE_RD(sext32(f32_to_i32(FRS1, RM, true)));
 set_fp_exceptions;