[PR testsuite/116860] Testsuite adjustment for recently added tests
[official-gcc.git] / gcc / config / riscv / sifive-vector-builtins-functions.def
blobe6621c77f5362e5782a1e3b998652c31cd4b494a
1 /* Intrinsic define macros for SiFive custom 'V' Extension for GNU compiler.
2 Copyright (C) 2024-2025 Free Software Foundation, Inc.
3 Contributed by SiFive and PLCT Lab.
5 This file is part of GCC.
7 GCC is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 3, or (at your option)
10 any later version.
12 GCC is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with GCC; see the file COPYING3. If not see
19 <http://www.gnu.org/licenses/>. */
21 /* Use "DEF_RVV_FUNCTION" macro to define RVV intrinsic functions.
23 - NAME not only describes the base_name of the functions
24 but also point to the name of the function_base class.
26 - SHAPE point to the function_shape class.
28 - PREDS describes the predication types that are supported in the
29 functions.
31 - OPS_INFO describes all information of return type and each
32 argument type.
35 #ifndef DEF_RVV_FUNCTION
36 #define DEF_RVV_FUNCTION(NAME, SHAPE, PREDS, OPS_INFO)
37 #endif
39 #define REQUIRED_EXTENSIONS XSFVQMACCQOQ_EXT
40 DEF_RVV_FUNCTION (sf_vqmacc, sf_vqmacc, none_tu_preds, i_qqvv_ops)
41 DEF_RVV_FUNCTION (sf_vqmaccu, sf_vqmacc, none_tu_preds, u_qqvv_ops)
42 DEF_RVV_FUNCTION (sf_vqmaccsu, sf_vqmacc, none_tu_preds, i_su_qqvv_ops)
43 DEF_RVV_FUNCTION (sf_vqmaccus, sf_vqmacc, none_tu_preds, i_us_qqvv_ops)
44 #undef REQUIRED_EXTENSIONS
46 #define REQUIRED_EXTENSIONS XSFVQMACCDOD_EXT
47 DEF_RVV_FUNCTION (sf_vqmacc, sf_vqmacc, none_tu_preds, i_qdvv_ops)
48 DEF_RVV_FUNCTION (sf_vqmaccu, sf_vqmacc, none_tu_preds, u_qdvv_ops)
49 DEF_RVV_FUNCTION (sf_vqmaccsu, sf_vqmacc, none_tu_preds, i_su_qdvv_ops)
50 DEF_RVV_FUNCTION (sf_vqmaccus, sf_vqmacc, none_tu_preds, i_us_qdvv_ops)
51 #undef REQUIRED_EXTENSIONS
53 #define REQUIRED_EXTENSIONS XSFVFNRCLIPXFQF_EXT
54 DEF_RVV_FUNCTION (sf_vfnrclip_x_f_qf, sf_vfnrclip, full_preds, i_clip_qf_ops)
55 DEF_RVV_FUNCTION (sf_vfnrclip_xu_f_qf, sf_vfnrclip, full_preds, u_clip_qf_ops)
56 #undef REQUIRED_EXTENSIONS
58 #undef DEF_RVV_FUNCTION