]>
Commit | Line | Data |
---|---|---|
63c8f7d6 SP |
1 | /* Arm MVE intrinsics include file. |
2 | ||
3 | Copyright (C) 2019-2020 Free Software Foundation, Inc. | |
4 | Contributed by Arm. | |
5 | ||
6 | This file is part of GCC. | |
7 | ||
8 | GCC is free software; you can redistribute it and/or modify it | |
9 | under the terms of the GNU General Public License as published | |
10 | by the Free Software Foundation; either version 3, or (at your | |
11 | option) any later version. | |
12 | ||
13 | GCC is distributed in the hope that it will be useful, but WITHOUT | |
14 | ANY WARRANTY; without even the implied warranty of MERCHANTABILITY | |
15 | or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public | |
16 | License for more details. | |
17 | ||
18 | You should have received a copy of the GNU General Public License | |
19 | along with GCC; see the file COPYING3. If not see | |
20 | <http://www.gnu.org/licenses/>. */ | |
21 | ||
22 | #ifndef _GCC_ARM_MVE_H | |
23 | #define _GCC_ARM_MVE_H | |
24 | ||
25 | #if !__ARM_FEATURE_MVE | |
26 | #error "MVE feature not supported" | |
27 | #endif | |
28 | ||
29 | #include <stdint.h> | |
30 | #ifndef __cplusplus | |
31 | #include <stdbool.h> | |
32 | #endif | |
33 | ||
34 | #ifdef __cplusplus | |
35 | extern "C" { | |
36 | #endif | |
37 | ||
38 | #if (__ARM_FEATURE_MVE & 2) /* MVE Floating point. */ | |
39 | typedef __fp16 float16_t; | |
40 | typedef float float32_t; | |
41 | typedef __simd128_float16_t float16x8_t; | |
42 | typedef __simd128_float32_t float32x4_t; | |
43 | #endif | |
44 | ||
45 | typedef uint16_t mve_pred16_t; | |
46 | typedef __simd128_uint8_t uint8x16_t; | |
47 | typedef __simd128_uint16_t uint16x8_t; | |
48 | typedef __simd128_uint32_t uint32x4_t; | |
49 | typedef __simd128_uint64_t uint64x2_t; | |
50 | typedef __simd128_int8_t int8x16_t; | |
51 | typedef __simd128_int16_t int16x8_t; | |
52 | typedef __simd128_int32_t int32x4_t; | |
53 | typedef __simd128_int64_t int64x2_t; | |
54 | ||
55 | #ifdef __cplusplus | |
56 | } | |
57 | #endif | |
58 | ||
59 | #endif /* _GCC_ARM_MVE_H. */ |