aboutsummaryrefslogtreecommitdiff
path: root/riscv/insns/fsqrt_d.h
diff options
context:
space:
mode:
Diffstat (limited to 'riscv/insns/fsqrt_d.h')
-rw-r--r--riscv/insns/fsqrt_d.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/riscv/insns/fsqrt_d.h b/riscv/insns/fsqrt_d.h
index da138ba..363b457 100644
--- a/riscv/insns/fsqrt_d.h
+++ b/riscv/insns/fsqrt_d.h
@@ -1,5 +1,5 @@
-require_extension('D');
+require_either_extension('D', EXT_ZDINX);
require_fp;
softfloat_roundingMode = RM;
-WRITE_FRD(f64_sqrt(f64(FRS1)));
+WRITE_FRD_D(f64_sqrt(FRS1_D));
set_fp_exceptions;