diff mbox

[SPARC] Disable muldf3_extend for LEON/LEON3

Message ID ee959e38-a034-ae34-26b0-a950850114c0@embedded-brains.de
State New
Headers show

Commit Message

Sebastian Huber July 25, 2017, 2:12 p.m. UTC
On 25/07/17 15:42, Eric Botcazou wrote:

>> What is your opinion with respect to a -mno-fsmuld option or something
>> similar?
> Far better in my opinion (at least for LEON3).
>

How should I add this option? For example:


In this case I have to update the cpu_table. I guess all (MASK_V8 || 
MASK_V9) && MASK_FPU entries should then get a MASK_FSMULD in the enable 
field (except leon)?

Comments

Sebastian Huber July 25, 2017, 2:27 p.m. UTC | #1
On 25/07/17 16:12, Sebastian Huber wrote:

> On 25/07/17 15:42, Eric Botcazou wrote:
>
>>> What is your opinion with respect to a -mno-fsmuld option or something
>>> similar?
>> Far better in my opinion (at least for LEON3).
>>
>
> How should I add this option? For example:
>
> diff --git a/gcc/config/sparc/sparc.opt b/gcc/config/sparc/sparc.opt
> index ae63d2018e3..7a582f3a870 100644
> --- a/gcc/config/sparc/sparc.opt
> +++ b/gcc/config/sparc/sparc.opt
> @@ -93,6 +93,10 @@ mfmaf
>  Target Report Mask(FMAF)
>  Use UltraSPARC Fused Multiply-Add extensions.
>
> +mfsmuld
> +Target Report Mask(FSMULD)
> +Use V8+ Floating-point Multiply Single to Double (FsMULd) instruction.
> +
>  mpopc
>  Target Report Mask(POPC)
>  Use UltraSPARC Population-Count instruction.
>
> In this case I have to update the cpu_table. I guess all (MASK_V8 || 
> MASK_V9) && MASK_FPU entries should then get a MASK_FSMULD in the 
> enable field (except leon)? 

The only CPUs in this category are hypersparc and leon3. What about all 
the V9 processors? They don't have MASK_FPU set?
diff mbox

Patch

diff --git a/gcc/config/sparc/sparc.opt b/gcc/config/sparc/sparc.opt
index ae63d2018e3..7a582f3a870 100644
--- a/gcc/config/sparc/sparc.opt
+++ b/gcc/config/sparc/sparc.opt
@@ -93,6 +93,10 @@  mfmaf
  Target Report Mask(FMAF)
  Use UltraSPARC Fused Multiply-Add extensions.

+mfsmuld
+Target Report Mask(FSMULD)
+Use V8+ Floating-point Multiply Single to Double (FsMULd) instruction.
+
  mpopc
  Target Report Mask(POPC)
  Use UltraSPARC Population-Count instruction.