OSDN Git Service

Two little fixes I commited to classpath but not to libgcj first
[pf3gnuchains/gcc-fork.git] / gcc / config / i386 / i386-modes.def
1 /* Definitions of target machine for GNU compiler for IA-32.
2    Copyright (C) 2002 Free Software Foundation, Inc.
3
4 This file is part of GNU CC.
5
6 GNU CC 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.
10
11 GNU CC 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.
15
16 You should have received a copy of the GNU General Public License
17 along with GNU CC; see the file COPYING.  If not, write to
18 the Free Software Foundation, 59 Temple Place - Suite 330,
19 Boston, MA 02111-1307, USA.  */
20
21 /* Add any extra modes needed to represent the condition code.
22
23    For the i386, we need separate modes when floating-point
24    equality comparisons are being done.
25
26    Add CCNO to indicate comparisons against zero that requires
27    Overflow flag to be unset.  Sign bit test is used instead and
28    thus can be used to form "a&b>0" type of tests.
29
30    Add CCGC to indicate comparisons against zero that allows
31    unspecified garbage in the Carry flag.  This mode is used
32    by inc/dec instructions.
33
34    Add CCGOC to indicate comparisons against zero that allows
35    unspecified garbage in the Carry and Overflow flag. This
36    mode is used to simulate comparisons of (a-b) and (a+b)
37    against zero using sub/cmp/add operations.
38
39    Add CCZ to indicate that only the Zero flag is valid.  */
40
41 CC (CCGC)
42 CC (CCGOC)
43 CC (CCNO)
44 CC (CCZ)
45 CC (CCFP)
46 CC (CCFPU)