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