20 lines · c
1// RUN: %clang_cc1 -triple aarch64-none-linux-gnu -target-feature +neon -disable-O0-optnone -emit-llvm -o - %s -fexperimental-new-constant-interpreter2 3// REQUIRES: aarch64-registered-target4 5/// This just tests that we're not crashing with a non-primitive vector element type.6 7typedef __mfp8 mfloat8_t;8typedef __bf16 bfloat16_t;9 10typedef __attribute__((neon_vector_type(8))) mfloat8_t mfloat8x8_t;11typedef __attribute__((neon_vector_type(8))) bfloat16_t bfloat16x8_t;12 13typedef __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}20