1/* MIPS extra machine modes. 
2   Copyright (C) 2003, 2004 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 2, 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 COPYING.  If not, write to
18the Free Software Foundation, 51 Franklin Street, Fifth Floor,
19Boston, MA 02110-1301, USA.  */
20
21/* MIPS has a quirky almost-IEEE format for all its
22   floating point.  */
23RESET_FLOAT_FORMAT (SF, mips_single_format);
24RESET_FLOAT_FORMAT (DF, mips_double_format);
25
26/* Irix6 will override this via MIPS_TFMODE_FORMAT.  */
27FLOAT_MODE (TF, 16, mips_quad_format);
28
29/* Vector modes.  */
30VECTOR_MODES (FLOAT, 8);      /*            V4HF V2SF */
31VECTOR_MODES (INT, 4);        /*            V4QI V2HI */
32
33/* Paired single comparison instructions use 2 or 4 CC.  */
34CC_MODE (CCV2);
35ADJUST_BYTESIZE (CCV2, 8);
36ADJUST_ALIGNMENT (CCV2, 8);
37
38CC_MODE (CCV4);
39ADJUST_BYTESIZE (CCV4, 16);
40ADJUST_ALIGNMENT (CCV4, 16);
41
42/* For MIPS DSP control registers.  */
43CC_MODE (CCDSP);
44