* real.c (encode_ieee_extended): Initialize whole array.
[official-gcc.git] / gcc / config / i386 / i386-modes.def
blob9f52f7f0b1b7eef8a47cbc6e1093936943fadd4f
1 /* Definitions of target machine for GCC for IA-32.
2 Copyright (C) 2002 Free Software Foundation, Inc.
4 This file is part of GCC.
6 GCC is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2, or (at your option)
9 any later version.
11 GCC is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with GCC; see the file COPYING. If not, write to
18 the Free Software Foundation, 59 Temple Place - Suite 330,
19 Boston, MA 02111-1307, USA. */
21 /* x86_64 ABI specifies both XF and TF modes.
22 XFmode is __float80 is IEEE extended; TFmode is __float128
23 is IEEE quad.
25 IEEE extended is 128 bits wide, except in ILP32 mode, but we
26 have to say it's 12 bytes so that the bitsize and wider_mode
27 tables are correctly set up. We correct its size below. */
29 FLOAT_MODE (XF, 12, ieee_extended_intel_96_format);
30 ADJUST_BYTESIZE (XF, TARGET_128BIT_LONG_DOUBLE ? 16 : 12);
31 ADJUST_ALIGNMENT (XF, TARGET_128BIT_LONG_DOUBLE ? 16 : 4);
32 FLOAT_MODE (TF, 16, ieee_quad_format);
34 /* Add any extra modes needed to represent the condition code.
36 For the i386, we need separate modes when floating-point
37 equality comparisons are being done.
39 Add CCNO to indicate comparisons against zero that requires
40 Overflow flag to be unset. Sign bit test is used instead and
41 thus can be used to form "a&b>0" type of tests.
43 Add CCGC to indicate comparisons against zero that allows
44 unspecified garbage in the Carry flag. This mode is used
45 by inc/dec instructions.
47 Add CCGOC to indicate comparisons against zero that allows
48 unspecified garbage in the Carry and Overflow flag. This
49 mode is used to simulate comparisons of (a-b) and (a+b)
50 against zero using sub/cmp/add operations.
52 Add CCZ to indicate that only the Zero flag is valid. */
54 CC_MODE (CCGC);
55 CC_MODE (CCGOC);
56 CC_MODE (CCNO);
57 CC_MODE (CCZ);
58 CC_MODE (CCFP);
59 CC_MODE (CCFPU);