1// RUN: %clang_cc1 -triple arm-none-linux-gnueabi %s -emit-llvm -o - | FileCheck %s
2
3typedef float float32_t;
4typedef __fp16 float16_t;
5typedef signed char poly8_t;
6typedef short poly16_t;
7typedef unsigned long long uint64_t;
8
9typedef __attribute__((neon_vector_type(2))) int int32x2_t;
10typedef __attribute__((neon_vector_type(4))) int int32x4_t;
11typedef __attribute__((neon_vector_type(1))) uint64_t uint64x1_t;
12typedef __attribute__((neon_vector_type(2))) uint64_t uint64x2_t;
13typedef __attribute__((neon_vector_type(2))) float32_t float32x2_t;
14typedef __attribute__((neon_vector_type(4))) float32_t float32x4_t;
15typedef __attribute__((neon_vector_type(4))) float16_t float16x4_t;
16typedef __attribute__((neon_vector_type(8))) float16_t float16x8_t;
17typedef __attribute__((neon_polyvector_type(16))) poly8_t poly8x16_t;
18typedef __attribute__((neon_polyvector_type(8))) poly16_t poly16x8_t;
19
20// CHECK: 16__simd64_int32_t
21void f1(int32x2_t v) { }
22// CHECK: 17__simd128_int32_t
23void f2(int32x4_t v) { }
24// CHECK: 17__simd64_uint64_t
25void f3(uint64x1_t v) { }
26// CHECK: 18__simd128_uint64_t
27void f4(uint64x2_t v) { }
28// CHECK: 18__simd64_float32_t
29void f5(float32x2_t v) { }
30// CHECK: 19__simd128_float32_t
31void f6(float32x4_t v) { }
32// CHECK: 18__simd64_float16_t
33void f7(float16x4_t v) {}
34// CHECK: 19__simd128_float16_t
35void f8(float16x8_t v) {}
36// CHECK: 17__simd128_poly8_t
37void f9(poly8x16_t v) {}
38// CHECK: 18__simd128_poly16_t
39void f10(poly16x8_t v) {}
40