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