1*67e74705SXin Li // RUN: %clang_cc1 -triple thumbv7-none-eabi %s -target-feature +neon -target-feature -fp16 -fsyntax-only -verify 2*67e74705SXin Li 3*67e74705SXin Li #include <arm_neon.h> 4*67e74705SXin Li test_vcvt_f16_f32(float32x4_t a)5*67e74705SXin Lifloat16x4_t test_vcvt_f16_f32(float32x4_t a) { 6*67e74705SXin Li return vcvt_f16_f32(a); // expected-warning{{implicit declaration of function 'vcvt_f16_f32'}} expected-error{{returning 'int' from a function with incompatible result type 'float16x4_t'}} 7*67e74705SXin Li } 8*67e74705SXin Li test_vcvt_f32_f16(float16x4_t a)9*67e74705SXin Lifloat32x4_t test_vcvt_f32_f16(float16x4_t a) { 10*67e74705SXin Li return vcvt_f32_f16(a); // expected-warning{{implicit declaration of function 'vcvt_f32_f16'}} expected-error{{returning 'int' from a function with incompatible result type 'float32x4_t'}} 11*67e74705SXin Li } 12