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