67 lines · c
1// REQUIRES: riscv-registered-target2// RUN: %clang_cc1 -triple riscv64 -target-feature +f -target-feature +d \3// RUN: -target-feature +v -target-feature +zfh -target-feature +zvfh \4// RUN: -fsyntax-only -verify %s5 6#include <riscv_vector.h>7 8vint32m1_t test_vfwcvt_x_f_v_i32m1_rm(vfloat16mf2_t src, size_t vl) {9 // expected-error@+1 {{argument value 5 is outside the valid range [0, 4]}}10 return __riscv_vfwcvt_x_f_v_i32m1_rm(src, 5, vl);11}12 13vuint32m1_t test_vfwcvt_xu_f_v_u32m1_rm(vfloat16mf2_t src, size_t vl) {14 // expected-error@+1 {{argument value 5 is outside the valid range [0, 4]}}15 return __riscv_vfwcvt_xu_f_v_u32m1_rm(src, 5, vl);16}17 18vint32m1_t test_vfwcvt_x_f_v_i32m1_rm_m(vbool32_t mask, vfloat16mf2_t src, size_t vl) {19 // expected-error@+1 {{argument value 5 is outside the valid range [0, 4]}}20 return __riscv_vfwcvt_x_f_v_i32m1_rm_m(mask, src, 5, vl);21}22 23vuint32m1_t test_vfwcvt_xu_f_v_u32m1_rm_m(vbool32_t mask, vfloat16mf2_t src, size_t vl) {24 // expected-error@+1 {{argument value 5 is outside the valid range [0, 4]}}25 return __riscv_vfwcvt_xu_f_v_u32m1_rm_m(mask, src, 5, vl);26}27 28vint32m1_t test_vfwcvt_x_f_v_i32m1_rm_tu(vint32m1_t maskedoff, vfloat16mf2_t src, size_t vl) {29 // expected-error@+1 {{argument value 5 is outside the valid range [0, 4]}}30 return __riscv_vfwcvt_x_f_v_i32m1_rm_tu(maskedoff, src, 5, vl);31}32 33vuint32m1_t test_vfwcvt_xu_f_v_u32m1_rm_tu(vuint32m1_t maskedoff, vfloat16mf2_t src, size_t vl) {34 // expected-error@+1 {{argument value 5 is outside the valid range [0, 4]}}35 return __riscv_vfwcvt_xu_f_v_u32m1_rm_tu(maskedoff, src, 5, vl);36}37 38vint32m1_t test_vfwcvt_x_f_v_i32m1_rm_tum(vbool32_t mask, vint32m1_t maskedoff, vfloat16mf2_t src, size_t vl) {39 // expected-error@+1 {{argument value 5 is outside the valid range [0, 4]}}40 return __riscv_vfwcvt_x_f_v_i32m1_rm_tum(mask, maskedoff, src, 5, vl);41}42 43vuint32m1_t test_vfwcvt_xu_f_v_u32m1_rm_tum(vbool32_t mask, vuint32m1_t maskedoff, vfloat16mf2_t src, size_t vl) {44 // expected-error@+1 {{argument value 5 is outside the valid range [0, 4]}}45 return __riscv_vfwcvt_xu_f_v_u32m1_rm_tum(mask, maskedoff, src, 5, vl);46}47 48vint32m1_t test_vfwcvt_x_f_v_i32m1_rm_tumu(vbool32_t mask, vint32m1_t maskedoff, vfloat16mf2_t src, size_t vl) {49 // expected-error@+1 {{argument value 5 is outside the valid range [0, 4]}}50 return __riscv_vfwcvt_x_f_v_i32m1_rm_tumu(mask, maskedoff, src, 5, vl);51}52 53vuint32m1_t test_vfwcvt_xu_f_v_u32m1_rm_tumu(vbool32_t mask, vuint32m1_t maskedoff, vfloat16mf2_t src, size_t vl) {54 // expected-error@+1 {{argument value 5 is outside the valid range [0, 4]}}55 return __riscv_vfwcvt_xu_f_v_u32m1_rm_tumu(mask, maskedoff, src, 5, vl);56}57 58vint32m1_t test_vfwcvt_x_f_v_i32m1_rm_mu(vbool32_t mask, vint32m1_t maskedoff, vfloat16mf2_t src, size_t vl) {59 // expected-error@+1 {{argument value 5 is outside the valid range [0, 4]}}60 return __riscv_vfwcvt_x_f_v_i32m1_rm_mu(mask, maskedoff, src, 5, vl);61}62 63vuint32m1_t test_vfwcvt_xu_f_v_u32m1_rm_mu(vbool32_t mask, vuint32m1_t maskedoff, vfloat16mf2_t src, size_t vl) {64 // expected-error@+1 {{argument value 5 is outside the valid range [0, 4]}}65 return __riscv_vfwcvt_xu_f_v_u32m1_rm_mu(mask, maskedoff, src, 5, vl);66}67