Mercurial > hg > CbC > CbC_gcc
comparison gcc/config/rs6000/rs6000-modes.def @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | f6334be47118 |
children | 84e7813d76e9 |
comparison
equal
deleted
inserted
replaced
68:561a7518be6b | 111:04ced10e8804 |
---|---|
1 /* Definitions of target machine for GNU compiler, for IBM RS/6000. | 1 /* Definitions of target machine for GNU compiler, for IBM RS/6000. |
2 Copyright (C) 2002, 2003, 2004, 2007, 2010 Free Software Foundation, Inc. | 2 Copyright (C) 2002-2017 Free Software Foundation, Inc. |
3 Contributed by Richard Kenner (kenner@vlsi1.ultra.nyu.edu) | 3 Contributed by Richard Kenner (kenner@vlsi1.ultra.nyu.edu) |
4 | 4 |
5 This file is part of GCC. | 5 This file is part of GCC. |
6 | 6 |
7 GCC is free software; you can redistribute it and/or modify it | 7 GCC is free software; you can redistribute it and/or modify it |
16 | 16 |
17 You should have received a copy of the GNU General Public License | 17 You should have received a copy of the GNU General Public License |
18 along with GCC; see the file COPYING3. If not see | 18 along with GCC; see the file COPYING3. If not see |
19 <http://www.gnu.org/licenses/>. */ | 19 <http://www.gnu.org/licenses/>. */ |
20 | 20 |
21 /* IBM 128-bit floating point. IFmode and KFmode use the fractional float | |
22 support in order to declare 3 128-bit floating point types. */ | |
23 FRACTIONAL_FLOAT_MODE (IF, 106, 16, ibm_extended_format); | |
24 | |
25 /* Explicit IEEE 128-bit floating point. */ | |
26 FRACTIONAL_FLOAT_MODE (KF, 113, 16, ieee_quad_format); | |
27 | |
21 /* 128-bit floating point. ABI_V4 uses IEEE quad, AIX/Darwin | 28 /* 128-bit floating point. ABI_V4 uses IEEE quad, AIX/Darwin |
22 adjust this in rs6000_option_override_internal. */ | 29 adjust this in rs6000_option_override_internal. */ |
23 FLOAT_MODE (TF, 16, ieee_quad_format); | 30 FLOAT_MODE (TF, 16, ieee_quad_format); |
24 | 31 |
25 /* Add any extra modes needed to represent the condition code. | 32 /* Add any extra modes needed to represent the condition code. |
32 CC_MODE (CCUNS); | 39 CC_MODE (CCUNS); |
33 CC_MODE (CCFP); | 40 CC_MODE (CCFP); |
34 CC_MODE (CCEQ); | 41 CC_MODE (CCEQ); |
35 | 42 |
36 /* Vector modes. */ | 43 /* Vector modes. */ |
37 VECTOR_MODES (INT, 8); /* V8QI V4HI V2SI */ | 44 |
38 VECTOR_MODES (INT, 16); /* V16QI V8HI V4SI V2DI */ | 45 /* VMX/VSX. */ |
39 VECTOR_MODE (INT, DI, 1); | 46 VECTOR_MODES (INT, 16); /* V16QI V8HI V4SI V2DI */ |
40 VECTOR_MODES (FLOAT, 8); /* V4HF V2SF */ | 47 VECTOR_MODE (INT, TI, 1); /* V1TI */ |
41 VECTOR_MODES (FLOAT, 16); /* V8HF V4SF V2DF */ | 48 VECTOR_MODES (FLOAT, 16); /* V8HF V4SF V2DF */ |
49 | |
50 /* Two VMX/VSX vectors (for permute, select, concat, etc.) */ | |
51 VECTOR_MODES (INT, 32); /* V32QI V16HI V8SI V4DI */ | |
52 VECTOR_MODES (FLOAT, 32); /* V16HF V8SF V4DF */ | |
53 | |
54 /* Paired single. */ | |
55 VECTOR_MODE (FLOAT, SF, 2); /* The only valid paired-single mode. */ | |
56 VECTOR_MODE (INT, SI, 2); /* For paired-single permutes. */ | |
57 | |
58 /* Replacement for TImode that only is allowed in GPRs. We also use PTImode | |
59 for quad memory atomic operations to force getting an even/odd register | |
60 combination. */ | |
61 PARTIAL_INT_MODE (TI, 128, PTI); |