summaryrefslogtreecommitdiffstats
path: root/gcc/config/rs6000/eabi.h
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/config/rs6000/eabi.h')
-rw-r--r--gcc/config/rs6000/eabi.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/config/rs6000/eabi.h b/gcc/config/rs6000/eabi.h
index ff8df2c3e41..8de75a6cee2 100644
--- a/gcc/config/rs6000/eabi.h
+++ b/gcc/config/rs6000/eabi.h
@@ -49,9 +49,13 @@
#undef TARGET_E500
#undef TARGET_ISEL
#undef TARGET_FPRS
+#undef TARGET_E500_SINGLE
+#undef TARGET_E500_DOUBLE
#define TARGET_SPE_ABI rs6000_spe_abi
#define TARGET_SPE rs6000_spe
#define TARGET_E500 (rs6000_cpu == PROCESSOR_PPC8540)
#define TARGET_ISEL rs6000_isel
-#define TARGET_FPRS (!rs6000_float_gprs)
+#define TARGET_FPRS (rs6000_float_gprs == 0)
+#define TARGET_E500_SINGLE (TARGET_HARD_FLOAT && rs6000_float_gprs == 1)
+#define TARGET_E500_DOUBLE (TARGET_HARD_FLOAT && rs6000_float_gprs == 2)
OpenPOWER on IntegriCloud