Single-precision -mcustom-* option

cancel
Showing results for 
Search instead for 
Did you mean: 

Single-precision -mcustom-* option

Single-precision -mcustom-* option



<colgroup><col width="104" /><col width="132" /><col width="124" /><col width="76" /><col width="183" /><col width="153" /></colgroup> <tbody> </tbody>

  

The -mcustom-fpu-cfg=60-1 option is equivalent to setting

-mcustom-fmuls=252

-mcustom-fadds=253

-mcustom-fsubs=254

-fsingle-precision-constant

The -mcustom-fpu-cfg=60-2 option is equivalent to setting

-mcustom-fmuls=252

-mcustom-fadds=253

-mcustom-fsubs=254

-mcustom-fdivs=255

-fsingle-precision-constant

However, be aware that these two "60" options are applied late when scanning the command line. The consequence is that you cannot disable -fsingle-precision-constant if either of these options is present.

The "60" in the options' names refers to the first version of the Nios dev kit that supports them (6.0).

first operandsecond operandoperationresultnios2-elf-gcc optionGCC pattern name
floatfloat+float-mcustom-fadds=Naddsf3
floatfloat-float-mcustom-fsubs=Nsubsf3
floatfloat*float-mcustom-fmuls=Nmulsf3
floatfloat/float-mcustom-fdivs=Ndivsf3
floatfloatminfloat-mcustom-fmins=Nminsf3
floatfloatmaxfloat-mcustom-fmaxs=Nmaxsf3
floatnonenegationfloat-mcustom-fnegs=Nnegsf2
floatnoneabsfloat-mcustom-fabss=Nabssf2
floatnonesqrtfloat-mcustom-fsqrts=Nsqrtsf2
floatnonecosfloat-mcustom-fcoss=Ncossf2
floatnonesinfloat-mcustom-fsins=Nsinsf2
floatnonetanfloat-mcustom-ftans=Ntansf2
floatnoneatanfloat-mcustom-fatans=Natansf2
floatnoneexpfloat-mcustom-fexps=Nexpsf2
floatnonelogfloat-mcustom-flogs=Nlogsf2
floatfloat<int-mcustom-fcmplts=Nnios2_sltsf
floatfloat<=int-mcustom-fcmples=Nnios2_slesf
floatfloat>int-mcustom-fcmpgts=Nnios2_sgtsf
floatfloat>=int-mcustom-fcmpges=Nnios2_sgesf
floatfloat==int-mcustom-fcmpeqs=Nnios2_seqsf
floatfloat!=int-mcustom-fcmpnes=Nnios2_snesf






intnoneint to floatfloat-mcustom-floatis=Nfloatsisf2
unsignednoneunsigned to floatfloat-mcustom-floatus=Nfloatunssisf2
floatnonefloat to intint-mcustom-fixsi=Nfixsfsi2
floatnonefloat to unsignedunsigned-mcustom-fixsu=Nfixunssfsi2


Version history
Last update:
‎06-26-2019 09:39 PM
Updated by:
Contributors