2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / config / rs6000 / rs6000-modes.def
blob1b6aa481feef55000e5fffaa016d89c48d2595a9
1 /* Definitions of target machine for GNU compiler, for IBM RS/6000.
2 Copyright (C) 2002, 2003 Free Software Foundation, Inc.
3 Contributed by Richard Kenner (kenner@vlsi1.ultra.nyu.edu)
5 This file is part of GCC.
7 GCC is free software; you can redistribute it and/or modify it
8 under the terms of the GNU General Public License as published
9 by the Free Software Foundation; either version 2, or (at your
10 option) any later version.
12 GCC is distributed in the hope that it will be useful, but WITHOUT
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
14 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
15 License for more details.
17 You should have received a copy of the GNU General Public License
18 along with GCC; see the file COPYING. If not, write to the
19 Free Software Foundation, 59 Temple Place - Suite 330, Boston,
20 MA 02111-1307, USA. */
22 /* 128-bit floating point. ABI_V4 uses IEEE quad, AIX/Darwin
23 adjust this in rs6000_override_options. */
24 FLOAT_MODE (TF, 16, ieee_quad_format);
26 /* PSImode is used for the XER register. The XER register
27 is not used for anything; perhaps it should be deleted,
28 except that that would change register numbers. */
29 PARTIAL_INT_MODE (SI);
31 /* Add any extra modes needed to represent the condition code.
33 For the RS/6000, we need separate modes when unsigned (logical) comparisons
34 are being done and we need a separate mode for floating-point. We also
35 use a mode for the case when we are comparing the results of two
36 comparisons, as then only the EQ bit is valid in the register. */
38 CC_MODE (CCUNS);
39 CC_MODE (CCFP);
40 CC_MODE (CCEQ);