| 1 |
// RUN: %clang_cc1 -triple aarch64-none-linux-gnu -target-feature +neon -disable-O0-optnone -emit-llvm -o - %s -fexperimental-new-constant-interpreter |
| 2 |
|
| 3 |
// REQUIRES: aarch64-registered-target |
| 4 |
|
| 5 |
/// This just tests that we're not crashing with a non-primitive vector element type. |
| 6 |
|
| 7 |
typedef __mfp8 mfloat8_t; |
| 8 |
typedef __bf16 bfloat16_t; |
| 9 |
|
| 10 |
typedef __attribute__((neon_vector_type(8))) mfloat8_t mfloat8x8_t; |
| 11 |
typedef __attribute__((neon_vector_type(8))) bfloat16_t bfloat16x8_t; |
| 12 |
|
| 13 |
typedef __UINT64_TYPE__ fpm_t; |
| 14 |
#define __ai static __inline__ __attribute__((__always_inline__, __nodebug__)) |
| 15 |
__ai __attribute__((target("fp8,neon"))) bfloat16x8_t vcvt1_bf16_mf8_fpm(mfloat8x8_t __p0, fpm_t __p1) { |
| 16 |
bfloat16x8_t __ret; |
| 17 |
__ret = (bfloat16x8_t) __builtin_neon_vcvt1_bf16_mf8_fpm(__p0, __p1); |
| 18 |
return __ret; |
| 19 |
} |