Welcome, guest ( Login )

WikiHome » CustomInstructions » single-precision -mcustom-* options

single-precision -mcustom-* options

Version 6, changed by kerry. 09/28/2006.   Show version history

first operand second operand operation result nios2-elf-gcc option GCC pattern name
float float + float -mcustom-fadds=N addsf3
float float - float -mcustom-fsubs=N subsf3
float float * float -mcustom-fmuls=N mulsf3
float float / float -mcustom-fdivs=N divsf3
float float min float -mcustom-fmins=N minsf3
float float max float -mcustom-fmaxs=N maxsf3
float none negation float -mcustom-fnegs=N negsf2
float none abs float -mcustom-fabss=N abssf2
float none sqrt float -mcustom-fsqrts=N sqrtsf2
float none cos float -mcustom-fcoss=N cossf2
float none sin float -mcustom-fsins=N sinsf2
float none tan float -mcustom-ftans=N tansf2
float none atan float -mcustom-fatans=N atansf2
float none exp float -mcustom-fexps=N expsf2
float none log float -mcustom-flogs=N logsf2
float float < int -mcustom-fcmplts=N nios2_sltsf
float float <= int -mcustom-fcmples=N nios2_slesf
float float > int -mcustom-fcmpgts=N nios2_sgtsf
float float >= int -mcustom-fcmpges=N nios2_sgesf
float float == int -mcustom-fcmpeqs=N nios2_seqsf
float float != int -mcustom-fcmpnes=N nios2_snesf






int none int to float float -mcustom-floatis=N floatsisf2
unsigned none unsigned to float float -mcustom-floatus=N floatunssisf2
float none float to int int -mcustom-fixsi=N fixsfsi2
float none float to unsigned unsigned -mcustom-fixsu=N fixunssfsi2

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).

Attachments (0)

  File By Size Attached Ver.