Re: Advice on how to disable floating point instructions

2023-11-05 Thread Enrico via Gcc
Thank you Andrew for the hint. I noticed that the option Mask() is used a lot with the flag msoft-float. The documentation states that Mask sets a flag in the target_flags variable. What is the advantage of setting a flag in target_flags, compared to using Var() on a custom variable? Thank you Be

Re: Advice on how to disable floating point instructions

2023-11-04 Thread Andrew Pinski via Gcc
On Sat, Nov 4, 2023 at 9:41 AM Enrico via Gcc wrote: > > Hello, > > > for a custom architecture I am working on, I would like to entirely disable > the usage of hardware floating point instructions in favor of library > methods on demand. > > I need advice on what is the best strategy to do this.

Advice on how to disable floating point instructions

2023-11-04 Thread Enrico via Gcc
Hello, for a custom architecture I am working on, I would like to entirely disable the usage of hardware floating point instructions in favor of library methods on demand. I need advice on what is the best strategy to do this. My idea is to: - create a new flag (let's say -m[no-]float-insn or