Tim Northover | 2fe823a | 2013-08-01 09:23:19 +0000 | [diff] [blame^] | 1 | // RUN: %clang_cc1 -triple arm-none-linux-gnueabi %s -emit-llvm -o - | FileCheck %s |
Bob Wilson | bafdb73 | 2010-11-16 00:32:31 +0000 | [diff] [blame] | 2 | |
| 3 | typedef float float32_t; |
Tim Northover | 2fe823a | 2013-08-01 09:23:19 +0000 | [diff] [blame^] | 4 | typedef __fp16 float16_t; |
Bob Wilson | bafdb73 | 2010-11-16 00:32:31 +0000 | [diff] [blame] | 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; |
Tim Northover | 2fe823a | 2013-08-01 09:23:19 +0000 | [diff] [blame^] | 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; |
Bob Wilson | bafdb73 | 2010-11-16 00:32:31 +0000 | [diff] [blame] | 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) { } |
Tim Northover | 2fe823a | 2013-08-01 09:23:19 +0000 | [diff] [blame^] | 32 | // CHECK: 18__simd64_float16_t |
| 33 | void f7(float16x4_t v) {} |
| 34 | // CHECK: 19__simd128_float16_t |
| 35 | void f8(float16x8_t v) {} |
Bob Wilson | bafdb73 | 2010-11-16 00:32:31 +0000 | [diff] [blame] | 36 | // CHECK: 17__simd128_poly8_t |
Tim Northover | 2fe823a | 2013-08-01 09:23:19 +0000 | [diff] [blame^] | 37 | void f9(poly8x16_t v) {} |
Bob Wilson | bafdb73 | 2010-11-16 00:32:31 +0000 | [diff] [blame] | 38 | // CHECK: 18__simd128_poly16_t |
Tim Northover | 2fe823a | 2013-08-01 09:23:19 +0000 | [diff] [blame^] | 39 | void f10(poly16x8_t v) {} |