1// RUN: %clang_cc1 -triple arm64-none-linux-gnu -target-feature +neon %s -emit-llvm -o - | FileCheck %s
2
3typedef unsigned char uint8_t;
4typedef unsigned short uint16_t;
5typedef signed char int8_t;
6typedef signed short int16_t;
7typedef signed long int64_t;
8typedef unsigned long uint64_t;
9typedef unsigned char poly8_t;
10typedef unsigned short poly16_t;
11typedef __fp16 float16_t;
12typedef float float32_t;
13typedef double float64_t;
14
15typedef __attribute__((neon_vector_type(8))) int8_t int8x8_t;
16typedef __attribute__((neon_vector_type(16))) int8_t int8x16_t;
17typedef __attribute__((neon_vector_type(4))) int16_t int16x4_t;
18typedef __attribute__((neon_vector_type(8))) int16_t int16x8_t;
19typedef __attribute__((neon_vector_type(2))) int int32x2_t;
20typedef __attribute__((neon_vector_type(4))) int int32x4_t;
21typedef __attribute__((neon_vector_type(2))) int64_t int64x2_t;
22typedef __attribute__((neon_vector_type(8))) uint8_t uint8x8_t;
23typedef __attribute__((neon_vector_type(16))) uint8_t uint8x16_t;
24typedef __attribute__((neon_vector_type(4))) uint16_t uint16x4_t;
25typedef __attribute__((neon_vector_type(8))) uint16_t uint16x8_t;
26typedef __attribute__((neon_vector_type(2))) unsigned int uint32x2_t;
27typedef __attribute__((neon_vector_type(4))) unsigned int uint32x4_t;
28typedef __attribute__((neon_vector_type(2))) uint64_t uint64x2_t;
29typedef __attribute__((neon_vector_type(4))) float16_t float16x4_t;
30typedef __attribute__((neon_vector_type(8))) float16_t float16x8_t;
31typedef __attribute__((neon_vector_type(2))) float32_t float32x2_t;
32typedef __attribute__((neon_vector_type(4))) float32_t float32x4_t;
33typedef __attribute__((neon_vector_type(2))) float64_t float64x2_t;
34typedef __attribute__((neon_polyvector_type(8))) poly8_t poly8x8_t;
35typedef __attribute__((neon_polyvector_type(16))) poly8_t poly8x16_t;
36typedef __attribute__((neon_polyvector_type(4))) poly16_t poly16x4_t;
37typedef __attribute__((neon_polyvector_type(8))) poly16_t poly16x8_t;
38
39// CHECK: 10__Int8x8_t
40void f1(int8x8_t) {}
41// CHECK: 11__Int16x4_t
42void f2(int16x4_t) {}
43// CHECK: 11__Int32x2_t
44void f3(int32x2_t) {}
45// CHECK: 11__Uint8x8_t
46void f4(uint8x8_t) {}
47// CHECK: 12__Uint16x4_t
48void f5(uint16x4_t) {}
49// CHECK: 13__Float16x4_t
50void f6(float16x4_t) {}
51// CHECK: 13__Float16x8_t
52void f7(float16x8_t) {}
53// CHECK: 12__Uint32x2_t
54void f8(uint32x2_t) {}
55// CHECK: 13__Float32x2_t
56void f9(float32x2_t) {}
57// CHECK: 13__Float32x4_t
58void f10(float32x4_t) {}
59// CHECK: 11__Poly8x8_t
60void f11(poly8x8_t v) {}
61// CHECK: 12__Poly16x4_t
62void f12(poly16x4_t v) {}
63// CHECK:12__Poly8x16_t
64void f13(poly8x16_t v) {}
65// CHECK:12__Poly16x8_t
66void f14(poly16x8_t v) {}
67// CHECK: 11__Int8x16_t
68void f15(int8x16_t) {}
69// CHECK: 11__Int16x8_t
70void f16(int16x8_t) {}
71// CHECK:11__Int32x4_t
72void f17(int32x4_t) {}
73// CHECK: 12__Uint8x16_t
74void f18(uint8x16_t) {}
75// CHECK: 12__Uint16x8_t
76void f19(uint16x8_t) {}
77// CHECK: 12__Uint32x4_t
78void f20(uint32x4_t) {}
79// CHECK: 11__Int64x2_t
80void f21(int64x2_t) {}
81// CHECK: 12__Uint64x2_t
82void f22(uint64x2_t) {}
83// CHECK: 13__Float64x2_t
84void f23(float64x2_t) {}
85