1/* Definitions of target machine for GNU compiler, for ARM. 2 Copyright (C) 2002-2020 Free Software Foundation, Inc. 3 Contributed by Pieter `Tiggr' Schoenmakers (rcpieter@win.tue.nl) 4 and Martin Simmons (@harleqn.co.uk). 5 More major hacks by Richard Earnshaw (rearnsha@arm.com) 6 Minor hacks by Nick Clifton (nickc@cygnus.com) 7 8 This file is part of GCC. 9 10 GCC is free software; you can redistribute it and/or modify it 11 under the terms of the GNU General Public License as published 12 by the Free Software Foundation; either version 3, or (at your 13 option) any later version. 14 15 GCC is distributed in the hope that it will be useful, but WITHOUT 16 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 17 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public 18 License for more details. 19 20 You should have received a copy of the GNU General Public License 21 along with GCC; see the file COPYING3. If not see 22 <http://www.gnu.org/licenses/>. */ 23 24 25/* Half-precision floating point */ 26FLOAT_MODE (HF, 2, 0); 27ADJUST_FLOAT_FORMAT (HF, ((arm_fp16_format == ARM_FP16_FORMAT_ALTERNATIVE) 28 ? &arm_half_format : &ieee_half_format)); 29 30/* CCFPEmode should be used with floating inequalities, 31 CCFPmode should be used with floating equalities. 32 CC_NZmode should be used if only the N and Z bits are set correctly. 33 CC_Zmode should be used if only the Z flag is set correctly 34 CC_Cmode should be used if only the C flag is set correctly, after an 35 addition. 36 CC_Nmode should be used if only the N (sign) flag is set correctly 37 CC_NVmode should be used if only the N and V bits are set correctly, 38 (used for signed comparisons when the carry is propagated in). 39 CC_RSBmode should be used where the comparison is set by an RSB immediate, 40 or NEG instruction. The form of the comparison for (const - reg) will 41 be (COMPARE (not (reg)) (~const)). 42 CC_Bmode should be used if only the C flag is correct after a subtract 43 (eg after an unsigned borrow with carry-in propagation). 44 (used for DImode signed comparisons). 45 CC_ADCmode is used when the carry is formed from the output of ADC for an 46 addtion. In this case we cannot use the trick of comparing the sum 47 against one of the other operands. 48 CCmode should be used otherwise. */ 49 50CC_MODE (CC_NZ); 51CC_MODE (CC_Z); 52CC_MODE (CC_NV); 53CC_MODE (CC_SWP); 54CC_MODE (CC_RSB); 55CC_MODE (CCFP); 56CC_MODE (CCFPE); 57CC_MODE (CC_DNE); 58CC_MODE (CC_DEQ); 59CC_MODE (CC_DLE); 60CC_MODE (CC_DLT); 61CC_MODE (CC_DGE); 62CC_MODE (CC_DGT); 63CC_MODE (CC_DLEU); 64CC_MODE (CC_DLTU); 65CC_MODE (CC_DGEU); 66CC_MODE (CC_DGTU); 67CC_MODE (CC_C); 68CC_MODE (CC_B); 69CC_MODE (CC_N); 70CC_MODE (CC_V); 71CC_MODE (CC_ADC); 72 73/* Vector modes. */ 74VECTOR_MODES (INT, 4); /* V4QI V2HI */ 75VECTOR_MODES (INT, 8); /* V8QI V4HI V2SI */ 76VECTOR_MODES (INT, 16); /* V16QI V8HI V4SI V2DI */ 77VECTOR_MODES (FLOAT, 8); /* V4HF V2SF */ 78VECTOR_MODES (FLOAT, 16); /* V8HF V4SF V2DF */ 79VECTOR_MODE (FLOAT, HF, 2); /* V2HF */ 80 81FLOAT_MODE (BF, 2, 0); 82ADJUST_FLOAT_FORMAT (BF, &arm_bfloat_half_format); 83VECTOR_MODE (FLOAT, BF, 2); /* V2BF. */ 84VECTOR_MODE (FLOAT, BF, 4); /* V4BF. */ 85VECTOR_MODE (FLOAT, BF, 8); /* V8BF. */ 86 87/* Fraction and accumulator vector modes. */ 88VECTOR_MODES (FRACT, 4); /* V4QQ V2HQ */ 89VECTOR_MODES (UFRACT, 4); /* V4UQQ V2UHQ */ 90VECTOR_MODES (ACCUM, 4); /* V2HA */ 91VECTOR_MODES (UACCUM, 4); /* V2UHA */ 92 93/* Opaque integer modes for 3, 4, 6 or 8 Neon double registers (2 is 94 TImode). */ 95INT_MODE (EI, 24); 96INT_MODE (OI, 32); 97INT_MODE (CI, 48); 98INT_MODE (XI, 64); 99