diff options
Diffstat (limited to 'gcc/config/nios2/nios2.c')
-rw-r--r-- | gcc/config/nios2/nios2.c | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/gcc/config/nios2/nios2.c b/gcc/config/nios2/nios2.c index e4349e7..3ff4ff1 100644 --- a/gcc/config/nios2/nios2.c +++ b/gcc/config/nios2/nios2.c @@ -1208,7 +1208,7 @@ struct nios2_fpu_config int code[n2fpu_code_num]; }; -#define NIOS2_FPU_CONFIG_NUM 3 +#define NIOS2_FPU_CONFIG_NUM 4 static struct nios2_fpu_config custom_fpu_config[NIOS2_FPU_CONFIG_NUM]; static void @@ -1252,6 +1252,27 @@ nios2_init_fpu_configs (void) cfg->code[n2fpu_fsubs] = 254; cfg->code[n2fpu_fdivs] = 255; + NEXT_FPU_CONFIG; + cfg->name = "fph2"; + cfg->code[n2fpu_fabss] = 224; + cfg->code[n2fpu_fnegs] = 225; + cfg->code[n2fpu_fcmpnes] = 226; + cfg->code[n2fpu_fcmpeqs] = 227; + cfg->code[n2fpu_fcmpges] = 228; + cfg->code[n2fpu_fcmpgts] = 229; + cfg->code[n2fpu_fcmples] = 230; + cfg->code[n2fpu_fcmplts] = 231; + cfg->code[n2fpu_fmaxs] = 232; + cfg->code[n2fpu_fmins] = 233; + cfg->code[n2fpu_round] = 248; + cfg->code[n2fpu_fixsi] = 249; + cfg->code[n2fpu_floatis] = 250; + cfg->code[n2fpu_fsqrts] = 251; + cfg->code[n2fpu_fmuls] = 252; + cfg->code[n2fpu_fadds] = 253; + cfg->code[n2fpu_fsubs] = 254; + cfg->code[n2fpu_fdivs] = 255; + #undef NEXT_FPU_CONFIG gcc_assert (i == NIOS2_FPU_CONFIG_NUM); } |