1132718Skan/* Definitions of target machine for GCC for IA-32.
2169689Skan   Copyright (C) 2002, 2004, 2005 Free Software Foundation, Inc.
3117395Skan
4132718SkanThis file is part of GCC.
5117395Skan
6132718SkanGCC is free software; you can redistribute it and/or modify
7117395Skanit under the terms of the GNU General Public License as published by
8117395Skanthe Free Software Foundation; either version 2, or (at your option)
9117395Skanany later version.
10117395Skan
11132718SkanGCC is distributed in the hope that it will be useful,
12117395Skanbut WITHOUT ANY WARRANTY; without even the implied warranty of
13117395SkanMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14117395SkanGNU General Public License for more details.
15117395Skan
16117395SkanYou should have received a copy of the GNU General Public License
17132718Skanalong with GCC; see the file COPYING.  If not, write to
18169689Skanthe Free Software Foundation, 51 Franklin Street, Fifth Floor,
19169689SkanBoston, MA 02110-1301, USA.  */
20117395Skan
21169689Skan/* The x86_64 ABI specifies both XF and TF modes.
22132718Skan   XFmode is __float80 is IEEE extended; TFmode is __float128
23169689Skan   is IEEE quad.  */
24132718Skan
25169689SkanFRACTIONAL_FLOAT_MODE (XF, 80, 12, ieee_extended_intel_96_format);
26169689SkanFLOAT_MODE (TF, 16, ieee_quad_format);
27132718Skan
28169689Skan/* In ILP32 mode, XFmode has size 12 and alignment 4.
29169689Skan   In LP64 mode, XFmode has size and alignment 16.  */
30132718SkanADJUST_FLOAT_FORMAT (XF, (TARGET_128BIT_LONG_DOUBLE
31132718Skan			  ? &ieee_extended_intel_128_format
32146895Skan			  : TARGET_96_ROUND_53_LONG_DOUBLE
33146895Skan			  ? &ieee_extended_intel_96_round_53_format
34132718Skan			  : &ieee_extended_intel_96_format));
35132718SkanADJUST_BYTESIZE  (XF, TARGET_128BIT_LONG_DOUBLE ? 16 : 12);
36132718SkanADJUST_ALIGNMENT (XF, TARGET_128BIT_LONG_DOUBLE ? 16 : 4);
37132718Skan
38117395Skan/* Add any extra modes needed to represent the condition code.
39117395Skan
40117395Skan   For the i386, we need separate modes when floating-point
41117395Skan   equality comparisons are being done.
42117395Skan
43117395Skan   Add CCNO to indicate comparisons against zero that requires
44117395Skan   Overflow flag to be unset.  Sign bit test is used instead and
45117395Skan   thus can be used to form "a&b>0" type of tests.
46117395Skan
47132718Skan   Add CCGC to indicate comparisons against zero that allows
48117395Skan   unspecified garbage in the Carry flag.  This mode is used
49117395Skan   by inc/dec instructions.
50117395Skan
51132718Skan   Add CCGOC to indicate comparisons against zero that allows
52117395Skan   unspecified garbage in the Carry and Overflow flag. This
53117395Skan   mode is used to simulate comparisons of (a-b) and (a+b)
54117395Skan   against zero using sub/cmp/add operations.
55117395Skan
56117395Skan   Add CCZ to indicate that only the Zero flag is valid.  */
57117395Skan
58132718SkanCC_MODE (CCGC);
59132718SkanCC_MODE (CCGOC);
60132718SkanCC_MODE (CCNO);
61132718SkanCC_MODE (CCZ);
62132718SkanCC_MODE (CCFP);
63132718SkanCC_MODE (CCFPU);
64169689Skan
65169689Skan/* Vector modes.  */
66169689SkanVECTOR_MODES (INT, 4);        /*            V4QI V2HI */
67169689SkanVECTOR_MODES (INT, 8);        /*       V8QI V4HI V2SI */
68169689SkanVECTOR_MODES (INT, 16);       /* V16QI V8HI V4SI V2DI */
69169689SkanVECTOR_MODES (FLOAT, 8);      /*            V4HF V2SF */
70169689SkanVECTOR_MODES (FLOAT, 16);     /*       V8HF V4SF V2DF */
71169689SkanVECTOR_MODE (INT, DI, 4);     /*                 V4DI */
72169689SkanVECTOR_MODE (INT, SI, 8);     /*                 V8SI */
73169689SkanVECTOR_MODE (INT, HI, 16);    /*                V16HI */
74169689SkanVECTOR_MODE (INT, QI, 32);    /*                V32QI */
75169689SkanVECTOR_MODE (FLOAT, DF, 4);   /*                 V4DF */
76169689SkanVECTOR_MODE (FLOAT, SF, 8);   /*                 V8SF */
77169689Skan
78169689Skan/* The symbol Pmode stands for one of the above machine modes (usually SImode).
79169689Skan   The tm.h file specifies which one.  It is not a distinct mode.  */
80