xref: /netbsd-src/external/gpl3/gcc/dist/gcc/config/visium/visium-modes.def (revision b1e838363e3c6fc78a55519254d99869742dd33c)
1/* Machine description for Visium.
2   Copyright (C) 2014-2022 Free Software Foundation, Inc.
3
4This file is part of GCC.
5
6GCC is free software; you can redistribute it and/or modify
7it under the terms of the GNU General Public License as published by
8the Free Software Foundation; either version 3, or (at your option)
9any later version.
10
11GCC is distributed in the hope that it will be useful,
12but WITHOUT ANY WARRANTY; without even the implied warranty of
13MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14GNU General Public License for more details.
15
16You should have received a copy of the GNU General Public License
17along with GCC; see the file COPYING3.  If not see
18<http://www.gnu.org/licenses/>.  */
19
20/* Add any extra modes needed to represent the condition code.
21
22   We have a CCNZ mode which is used for implicit comparisons with zero when
23   arithmetic instructions set the condition code.  Only the N and Z flags
24   are valid in this mode, which means that only the =,!= and <,>= operators
25   can be used in conjunction with it.
26
27   We also have a CCCmode which is used by the arithmetic instructions when
28   they explicitly set the C flag (unsigned overflow) and by the bit-test
29   instruction.  Only the =,!= and unsigned <,>= operators can be used in
30   conjunction with it.
31
32   We also have a CCVmode which is used by the arithmetic instructions when
33   they explicitly set the V flag (signed overflow).  Only the =,!= operators
34   can be used in conjunction with it.
35
36   We also have two modes to indicate that the condition code is set by the
37   the floating-point unit.  One for comparisons which generate an exception
38   if the result is unordered (CCFPEmode) and one for comparisons which never
39   generate such an exception (CCFPmode).  */
40
41CC_MODE (CCNZ);
42CC_MODE (CCC);
43CC_MODE (CCV);
44CC_MODE (CCFP);
45CC_MODE (CCFPE);
46