Success! Subscription added.
Success! Subscription removed.
Sorry, you must verify to complete this action. Please click the verification link in your email. You may re-send via your profile.
<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 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 |
Community support is provided Monday to Friday. Other contact methods are available here.
Intel does not verify all solutions, including but not limited to any file transfers that may appear in this community. Accordingly, Intel disclaims all express and implied warranties, including without limitation, the implied warranties of merchantability, fitness for a particular purpose, and non-infringement, as well as any warranty arising from course of performance, course of dealing, or usage in trade.
For more complete information about compiler optimizations, see our Optimization Notice.