Skip to content

Commit

Permalink
Merge branch 'topic/bernardi/riscv-only-use-fma-on-double-fpu' into '…
Browse files Browse the repository at this point in the history
…master'

Only use FMA instructions on RISC-V if FPU supports double precision FP

See merge request eng/toolchain/bb-runtimes!116
  • Loading branch information
burratoo committed Jul 31, 2024
2 parents 61ee750 + f0a1eb4 commit 6e2f73a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions support/rts_sources/profiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,10 +141,10 @@ def light_scenarios(self, profile="light"):
ret["Has_FMA"] = "no"
elif cpu in ("riscv32", "r7"):
ret["CPU_Family"] = "riscv32"
ret["Has_FMA"] = "yes" if self.config.has_fpu else "no"
ret["Has_FMA"] = "yes" if self.config.has_double_precision_fpu else "no"
elif cpu in ("riscv64",):
ret["CPU_Family"] = "riscv64"
ret["Has_FMA"] = "yes" if self.config.has_fpu else "no"
ret["Has_FMA"] = "yes" if self.config.has_double_precision_fpu else "no"
else:
print("Unexpected cpu %s" % cpu)
sys.exit(2)
Expand Down

0 comments on commit 6e2f73a

Please sign in to comment.