2003-07-11 03:40:53 +00:00
|
|
|
/* Definitions of target machine GNU compiler. IA-64 version.
|
2007-05-19 01:19:51 +00:00
|
|
|
Copyright (C) 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
|
2003-07-11 03:40:53 +00:00
|
|
|
Contributed by James E. Wilson <wilson@cygnus.com> and
|
|
|
|
David Mosberger <davidm@hpl.hp.com>.
|
|
|
|
|
2004-07-28 03:11:36 +00:00
|
|
|
This file is part of GCC.
|
2003-07-11 03:40:53 +00:00
|
|
|
|
2004-07-28 03:11:36 +00:00
|
|
|
GCC is free software; you can redistribute it and/or modify
|
2003-07-11 03:40:53 +00:00
|
|
|
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.
|
|
|
|
|
2004-07-28 03:11:36 +00:00
|
|
|
GCC is distributed in the hope that it will be useful,
|
2003-07-11 03:40:53 +00:00
|
|
|
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
|
2004-07-28 03:11:36 +00:00
|
|
|
along with GCC; see the file COPYING. If not, write to
|
2007-05-19 01:19:51 +00:00
|
|
|
the Free Software Foundation, 51 Franklin Street, Fifth Floor,
|
|
|
|
Boston, MA 02110-1301, USA. */
|
2003-07-11 03:40:53 +00:00
|
|
|
|
2004-07-28 03:11:36 +00:00
|
|
|
/* IA64 requires both XF and TF modes.
|
|
|
|
XFmode is __float80 is IEEE extended; TFmode is __float128
|
2007-05-19 01:19:51 +00:00
|
|
|
is IEEE quad. Both these modes occupy 16 bytes, but XFmode
|
|
|
|
only has 80 significant bits. RFmode is __fpreg is IA64 internal
|
|
|
|
register format with 82 significant bits but otherwise handled like
|
|
|
|
XFmode. */
|
2004-07-28 03:11:36 +00:00
|
|
|
|
2007-05-19 01:19:51 +00:00
|
|
|
FRACTIONAL_FLOAT_MODE (XF, 80, 16, ieee_extended_intel_128_format);
|
|
|
|
FRACTIONAL_FLOAT_MODE (RF, 82, 16, ieee_extended_intel_128_format);
|
2004-07-28 03:11:36 +00:00
|
|
|
FLOAT_MODE (TF, 16, ieee_quad_format);
|
|
|
|
|
|
|
|
/* The above produces:
|
|
|
|
|
|
|
|
mode ILP32 size/align LP64 size/align
|
2007-05-19 01:19:51 +00:00
|
|
|
XF 16/16 16/16
|
2004-07-28 03:11:36 +00:00
|
|
|
TF 16/16 16/16
|
|
|
|
|
|
|
|
psABI expectations:
|
|
|
|
|
|
|
|
mode ILP32 size/align LP64 size/align
|
2007-05-19 01:19:51 +00:00
|
|
|
XF 12/4 -
|
2004-07-28 03:11:36 +00:00
|
|
|
TF - -
|
|
|
|
|
|
|
|
HPUX expectations:
|
|
|
|
|
|
|
|
mode ILP32 size/align LP64 size/align
|
2007-05-19 01:19:51 +00:00
|
|
|
XF - -
|
2004-07-28 03:11:36 +00:00
|
|
|
TF 16/8 -
|
|
|
|
|
|
|
|
We fix this up here. */
|
|
|
|
|
2007-05-19 01:19:51 +00:00
|
|
|
ADJUST_FLOAT_FORMAT (XF, (TARGET_ILP32 && !TARGET_HPUX)
|
|
|
|
? &ieee_extended_intel_96_format
|
|
|
|
: &ieee_extended_intel_128_format);
|
2004-07-28 03:11:36 +00:00
|
|
|
ADJUST_BYTESIZE (XF, (TARGET_ILP32 && !TARGET_HPUX) ? 12 : 16);
|
|
|
|
ADJUST_ALIGNMENT (XF, (TARGET_ILP32 && !TARGET_HPUX) ? 4 : 16);
|
|
|
|
|
2007-05-19 01:19:51 +00:00
|
|
|
ADJUST_FLOAT_FORMAT (RF, (TARGET_ILP32 && !TARGET_HPUX)
|
|
|
|
? &ieee_extended_intel_96_format
|
|
|
|
: &ieee_extended_intel_128_format);
|
|
|
|
ADJUST_BYTESIZE (RF, (TARGET_ILP32 && !TARGET_HPUX) ? 12 : 16);
|
|
|
|
ADJUST_ALIGNMENT (RF, (TARGET_ILP32 && !TARGET_HPUX) ? 4 : 16);
|
|
|
|
|
2004-07-28 03:11:36 +00:00
|
|
|
ADJUST_ALIGNMENT (TF, (TARGET_ILP32 && TARGET_HPUX) ? 8 : 16);
|
|
|
|
|
|
|
|
/* 256-bit integer mode is needed for STACK_SAVEAREA_MODE. */
|
|
|
|
INT_MODE (OI, 32);
|
|
|
|
|
2003-07-11 03:40:53 +00:00
|
|
|
/* Add any extra modes needed to represent the condition code.
|
|
|
|
|
|
|
|
CCImode is used to mark a single predicate register instead
|
|
|
|
of a register pair. This is currently only used in reg_raw_mode
|
|
|
|
so that flow doesn't do something stupid. */
|
|
|
|
|
2004-07-28 03:11:36 +00:00
|
|
|
CC_MODE (CCI);
|
2007-05-19 01:19:51 +00:00
|
|
|
|
|
|
|
/* Vector modes. */
|
|
|
|
VECTOR_MODES (INT, 4); /* V4QI V2HI */
|
|
|
|
VECTOR_MODES (INT, 8); /* V8QI V4HI V2SI */
|
|
|
|
VECTOR_MODE (INT, QI, 16);
|
|
|
|
VECTOR_MODE (INT, HI, 8);
|
|
|
|
VECTOR_MODE (INT, SI, 4);
|
|
|
|
VECTOR_MODE (FLOAT, SF, 2);
|
|
|
|
VECTOR_MODE (FLOAT, SF, 4);
|
|
|
|
|