/* Builtin lists for Arm MVE Copyright (C) 2021-2024 Free Software Foundation, Inc. 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 . */ #ifndef DEF_MVE_MODE #define DEF_MVE_MODE(A, B, C, D) #endif #ifndef DEF_MVE_TYPE #define DEF_MVE_TYPE(A, B) #endif #ifndef DEF_MVE_TYPE_SUFFIX #define DEF_MVE_TYPE_SUFFIX(A, B, C, D, E) #endif #ifndef DEF_MVE_FUNCTION #define DEF_MVE_FUNCTION(A, B, C, D) #endif DEF_MVE_MODE (n, none, none, none) DEF_MVE_MODE (offset, none, none, bytes) DEF_MVE_MODE (r, none, none, none) #define REQUIRES_FLOAT false DEF_MVE_TYPE (mve_pred16_t, boolean_type_node) DEF_MVE_TYPE (uint8x16_t, get_typenode_from_name (UINT8_TYPE)) DEF_MVE_TYPE (uint16x8_t, get_typenode_from_name (UINT16_TYPE)) DEF_MVE_TYPE (uint32x4_t, get_typenode_from_name (UINT32_TYPE)) DEF_MVE_TYPE (uint64x2_t, get_typenode_from_name (UINT64_TYPE)) DEF_MVE_TYPE (int8x16_t, get_typenode_from_name (INT8_TYPE)) DEF_MVE_TYPE (int16x8_t, get_typenode_from_name (INT16_TYPE)) DEF_MVE_TYPE (int32x4_t, get_typenode_from_name (INT32_TYPE)) DEF_MVE_TYPE (int64x2_t, get_typenode_from_name (INT64_TYPE)) #undef REQUIRES_FLOAT #define REQUIRES_FLOAT true DEF_MVE_TYPE (float16x8_t, arm_fp16_type_node) DEF_MVE_TYPE (float32x4_t, float_type_node) #undef REQUIRES_FLOAT #define REQUIRES_FLOAT false DEF_MVE_TYPE_SUFFIX (s8, int8x16_t, signed, 8, V16QImode) DEF_MVE_TYPE_SUFFIX (s16, int16x8_t, signed, 16, V8HImode) DEF_MVE_TYPE_SUFFIX (s32, int32x4_t, signed, 32, V4SImode) DEF_MVE_TYPE_SUFFIX (s64, int64x2_t, signed, 64, V2DImode) DEF_MVE_TYPE_SUFFIX (u8, uint8x16_t, unsigned, 8, V16QImode) DEF_MVE_TYPE_SUFFIX (u16, uint16x8_t, unsigned, 16, V8HImode) DEF_MVE_TYPE_SUFFIX (u32, uint32x4_t, unsigned, 32, V4SImode) DEF_MVE_TYPE_SUFFIX (u64, uint64x2_t, unsigned, 64, V2DImode) DEF_MVE_TYPE_SUFFIX (p8, uint8x16_t, poly, 8, V16QImode) DEF_MVE_TYPE_SUFFIX (p16, uint16x8_t, poly, 16, V8HImode) #undef REQUIRES_FLOAT #define REQUIRES_FLOAT true DEF_MVE_TYPE_SUFFIX (f16, float16x8_t, float, 16, V8HFmode) DEF_MVE_TYPE_SUFFIX (f32, float32x4_t, float, 32, V4SFmode) #undef REQUIRES_FLOAT #include "arm-mve-builtins-base.def" #undef DEF_MVE_TYPE #undef DEF_MVE_TYPE_SUFFIX #undef DEF_MVE_FUNCTION #undef DEF_MVE_MODE