1 /* Enable E500 support.
2 Copyright (C) 2003, 2004, 2006, 2007 Free Software Foundation, Inc.
3 This file is part of GCC.
5 GCC is free software; you can redistribute it and/or modify it
6 under the terms of the GNU General Public License as published
7 by the Free Software Foundation; either version 2, or (at your
8 option) any later version.
10 GCC is distributed in the hope that it will be useful, but WITHOUT
11 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
12 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
13 License for more details.
15 You should have received a copy of the GNU General Public License
16 along with GCC; see the file COPYING. If not, write to the
17 Free Software Foundation, 51 Franklin Street, Fifth Floor, Boston,
18 MA 02110-1301, USA. */
25 #undef TARGET_E500_SINGLE
26 #undef TARGET_E500_DOUBLE
27 #undef CHECK_E500_OPTIONS
29 #define TARGET_SPE_ABI rs6000_spe_abi
30 #define TARGET_SPE rs6000_spe
31 #define TARGET_E500 (rs6000_cpu == PROCESSOR_PPC8540)
32 #define TARGET_ISEL rs6000_isel
33 #define TARGET_FPRS (rs6000_float_gprs == 0)
34 #define TARGET_E500_SINGLE (TARGET_HARD_FLOAT && rs6000_float_gprs == 1)
35 #define TARGET_E500_DOUBLE (TARGET_HARD_FLOAT && rs6000_float_gprs == 2)
36 #define CHECK_E500_OPTIONS \
38 if (TARGET_E500 || TARGET_SPE || TARGET_SPE_ABI || TARGET_ISEL \
39 || TARGET_E500_SINGLE || TARGET_E500_DOUBLE) \
42 error ("AltiVec and E500 instructions cannot coexist"); \
44 error ("64-bit E500 not supported"); \
45 if (TARGET_HARD_FLOAT && TARGET_FPRS) \
46 error ("E500 and FPRs not supported"); \