| 1 |
/* Machine description for Visium. |
| 2 |
Copyright (C) 2014-2025 Free Software Foundation, Inc. |
| 3 |
|
| 4 |
This file is part of GCC. |
| 5 |
|
| 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 3, or (at your option) |
| 9 |
any later version. |
| 10 |
|
| 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. |
| 15 |
|
| 16 |
You should have received a copy of the GNU General Public License |
| 17 |
along 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 |
|
| 41 |
CC_MODE (CCNZ); |
| 42 |
CC_MODE (CCC); |
| 43 |
CC_MODE (CCV); |
| 44 |
CC_MODE (CCFP); |
| 45 |
CC_MODE (CCFPE); |