1 /* MIPS extra machine modes.
2 Copyright (C) 2003-2013 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 3, or (at your option)
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 COPYING3. If not see
18 <http://www.gnu.org/licenses/>. */
20 /* MIPS has a quirky almost-IEEE format for all its
22 RESET_FLOAT_FORMAT (SF, mips_single_format);
23 RESET_FLOAT_FORMAT (DF, mips_double_format);
25 FLOAT_MODE (TF, 16, mips_quad_format);
28 VECTOR_MODES (INT, 4); /* V4QI V2HI */
29 VECTOR_MODES (INT, 8); /* V8QI V4HI V2SI */
30 VECTOR_MODES (FLOAT, 8); /* V4HF V2SF */
32 /* Double-sized vector modes for vec_concat. */
33 VECTOR_MODE (INT, QI, 16); /* V16QI */
34 VECTOR_MODE (INT, HI, 8); /* V8HI */
35 VECTOR_MODE (INT, SI, 4); /* V4SI */
36 VECTOR_MODE (FLOAT, SF, 4); /* V4SF */
38 VECTOR_MODES (FRACT, 4); /* V4QQ V2HQ */
39 VECTOR_MODES (UFRACT, 4); /* V4UQQ V2UHQ */
40 VECTOR_MODES (ACCUM, 4); /* V2HA */
41 VECTOR_MODES (UACCUM, 4); /* V2UHA */
43 /* Paired single comparison instructions use 2 or 4 CC. */
45 ADJUST_BYTESIZE (CCV2, 8);
46 ADJUST_ALIGNMENT (CCV2, 8);
49 ADJUST_BYTESIZE (CCV4, 16);
50 ADJUST_ALIGNMENT (CCV4, 16);
52 /* For MIPS DSP control registers. */