/* Extra machine modes for RISC-V target. Copyright (C) 2011-2022 Free Software Foundation, Inc. Contributed by Andrew Waterman (andrew@sifive.com). Based on MIPS target for GNU compiler. This file is part of GCC. GCC is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3, or (at your option) any later version. GCC is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with GCC; see the file COPYING3. If not see . */ FLOAT_MODE (HF, 2, ieee_half_format); FLOAT_MODE (TF, 16, ieee_quad_format); /* TODO: According to RISC-V 'V' ISA spec, the maximun vector length can be 65536 for a single vector register which means the vector mode in GCC can be maximum = 65536 * 8 bits (LMUL=8). However, 'GET_MODE_SIZE' is using poly_uint16/unsigned short which will overflow if we specify vector-length = 65536. To support this feature, we need to change the codes outside the RISC-V port. We will support it in the future. */ #define MAX_BITSIZE_MODE_ANY_MODE (4096 * 8) /* Coefficient 1 is multiplied by the number of 64-bit/32-bit chunks in a vector minus one. */ #define NUM_POLY_INT_COEFFS 2