Bob Wilson | 560ba14 | 2010-11-16 00:32:31 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 %s -emit-llvm -o - | FileCheck %s |
| 2 | |
| 3 | typedef float float32_t; |
| 4 | typedef signed char poly8_t; |
| 5 | typedef short poly16_t; |
| 6 | typedef unsigned long long uint64_t; |
| 7 | |
| 8 | typedef __attribute__((neon_vector_type(2))) int int32x2_t; |
| 9 | typedef __attribute__((neon_vector_type(4))) int int32x4_t; |
| 10 | typedef __attribute__((neon_vector_type(1))) uint64_t uint64x1_t; |
| 11 | typedef __attribute__((neon_vector_type(2))) uint64_t uint64x2_t; |
| 12 | typedef __attribute__((neon_vector_type(2))) float32_t float32x2_t; |
| 13 | typedef __attribute__((neon_vector_type(4))) float32_t float32x4_t; |
| 14 | typedef __attribute__((neon_polyvector_type(16))) poly8_t poly8x16_t; |
| 15 | typedef __attribute__((neon_polyvector_type(8))) poly16_t poly16x8_t; |
| 16 | |
| 17 | // CHECK: 16__simd64_int32_t |
| 18 | void f1(int32x2_t v) { } |
| 19 | // CHECK: 17__simd128_int32_t |
| 20 | void f2(int32x4_t v) { } |
| 21 | // CHECK: 17__simd64_uint64_t |
| 22 | void f3(uint64x1_t v) { } |
| 23 | // CHECK: 18__simd128_uint64_t |
| 24 | void f4(uint64x2_t v) { } |
| 25 | // CHECK: 18__simd64_float32_t |
| 26 | void f5(float32x2_t v) { } |
| 27 | // CHECK: 19__simd128_float32_t |
| 28 | void f6(float32x4_t v) { } |
| 29 | // CHECK: 17__simd128_poly8_t |
| 30 | void f7(poly8x16_t v) { } |
| 31 | // CHECK: 18__simd128_poly16_t |
| 32 | void f8(poly16x8_t v) { } |