summaryrefslogtreecommitdiff
path: root/gcc/config/rs6000/e500-double.h
diff options
context:
space:
mode:
authoraldyh <aldyh@138bc75d-0d04-0410-961f-82ee72b054a4>2004-10-21 22:28:29 +0000
committeraldyh <aldyh@138bc75d-0d04-0410-961f-82ee72b054a4>2004-10-21 22:28:29 +0000
commit63f9fa57011ac8705efdb0934c9f635e577950a3 (patch)
tree3b8f1b01f11e5cca14d59ffac221b3e86cf38e0d /gcc/config/rs6000/e500-double.h
parent8d5785eae8a9de598a4badad76cd0e78b1087e00 (diff)
downloadgcc-63f9fa57011ac8705efdb0934c9f635e577950a3.tar.gz
* config.gcc: Add support for --enable-e500_double.
* config/rs6000/e500-double.h: New file. * config/rs6000/rs6000.h: Define TARGET_E500_SINGLE and TARGET_E500_DOUBLE. * config/rs6000/eabi.h: Define TARGET_E500_SINGLE and TARGET_E500_DOUBLE. * config/rs6000/linuxspe.h: Same. * doc/invoke.texi (Option Summary): Document new options for mfloat-gprs. (RS/6000 and PowerPC Options): Same. * config/rs6000/rs6000.c (rs6000_parse_float_gprs_option): New function. (rs6000_override_options): Use it. Use SUB3TARGET_OVERRIDE_OPTIONS. Add 8548 to processor_target_table. (rs6000_legitimate_address): Handle e500 doubles. (rs6000_legitimize_address): Same. (rs6000_legitimize_reload_address): Same. (rs6000_hard_regno_nregs): Same. (spe_func_has_64bit_regs_p): Same. (emit_frame_save): Same. (gen_frame_mem_offset): Same. (rs6000_dwarf_register_span): Same. (rs6000_generate_compare): Same. (easy_fp_constant): Same. (legitimate_offset_address_p): Same. * config/rs6000/spe.md: (cmdfeq_gpr): New. (tstdfeq_gpr): New. (cmpdfgt_gpr): New. (tstdfgt_gpr): New. (tstdfgt_gpr): New. (cmpdflt_gpr): New. (tstdflt_gpr): New. Add new constants. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@89416 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/rs6000/e500-double.h')
-rw-r--r--gcc/config/rs6000/e500-double.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/gcc/config/rs6000/e500-double.h b/gcc/config/rs6000/e500-double.h
new file mode 100644
index 00000000000..5f0c734762e
--- /dev/null
+++ b/gcc/config/rs6000/e500-double.h
@@ -0,0 +1,25 @@
+/* Target definitions for E500 with double precision FP.
+ Copyright (C) 2004 Free Software Foundation, Inc.
+ Contributed by Aldy Hernandez (aldyh@redhat.com).
+
+ This file is part of GCC.
+
+ GCC is free software; you can redistribute it and/or modify it
+ under the terms of the GNU General Public License as published
+ by the Free Software Foundation; either version 2, or (at your
+ option) any later version.
+
+ GCC is distributed in the hope that it will be useful, but WITHOUT
+ ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
+ or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
+ License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with GCC; see the file COPYING. If not, write to the
+ Free Software Foundation, 59 Temple Place - Suite 330, Boston,
+ MA 02111-1307, USA. */
+
+#undef SUB3TARGET_OVERRIDE_OPTIONS
+#define SUB3TARGET_OVERRIDE_OPTIONS \
+ if (rs6000_float_gprs_string == NULL) \
+ rs6000_float_gprs = 2;