nios2: Add -mcustom-fpu-cfg=fph2
authorSebastian Huber <sebastian.huber@embedded-brains.de>
Thu, 14 Jan 2021 18:09:36 +0000 (19:09 +0100)
committerSebastian Huber <sebastian.huber@embedded-brains.de>
Sat, 16 Jan 2021 16:54:27 +0000 (17:54 +0100)
commit42f4e23992487ecacba70575bf88af11288f557f
tree272c0dae757db0c4932f9c61f9721b257b3e6313
parent7e02426ba0cc4f97ed347f963a6409b32c3c0c88
nios2: Add -mcustom-fpu-cfg=fph2

The new -mcustom-fpu-cfg=fph2 option variant is useful to build a
multilib for the "Nios II Floating Point Hardware 2 Component":

https://www.intel.com/content/dam/www/programmable/us/en/pdfs/literature/ug/ug_nios2_custom_instruction.pdf

Directly using the corresponding -mcustom-insn=N options for this
floating-point unit leads to a combinatorial explosion in the potential
count of multilibs which may break the build.

gcc/

* config/nios2/nios2.c (NIOS2_FPU_CONFIG_NUM): Adjust value.
(nios2_init_fpu_configs): Provide register values for new
-mcustom-fpu-cfg=fph2 option variant.
* doc/invoke.texi (-mcustom-fpu-cfg=fph2): Document new option
variant.
gcc/config/nios2/nios2.c
gcc/doc/invoke.texi