brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.5 KiB · 899ec29 Raw
32 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 +zvfbfmin \4// RUN:   -fsyntax-only -verify %s5 6#include <riscv_vector.h>7 8vbfloat16m1_t test_vfncvtbf16_f_f_w_bf16m1_rm_m(vbool16_t mask, vfloat32m2_t src, size_t vl) {9  // expected-error@+1 {{argument value 5 is outside the valid range [0, 4]}}10  return __riscv_vfncvtbf16_f_f_w_bf16m1_rm_m(mask, src, 5, vl);11}12 13vbfloat16m1_t test_vfncvtbf16_f_f_w_bf16m1_rm_tu(vbfloat16m1_t maskedoff, vfloat32m2_t src, size_t vl) {14  // expected-error@+1 {{argument value 5 is outside the valid range [0, 4]}}15  return __riscv_vfncvtbf16_f_f_w_bf16m1_rm_tu(maskedoff, src, 5, vl);16}17 18vbfloat16m1_t test_vfncvtbf16_f_f_w_bf16m1_rm_tum(vbool16_t mask, vbfloat16m1_t maskedoff, vfloat32m2_t src, size_t vl) {19  // expected-error@+1 {{argument value 5 is outside the valid range [0, 4]}}20  return __riscv_vfncvtbf16_f_f_w_bf16m1_rm_tum(mask, maskedoff, src, 5, vl);21}22 23vbfloat16m1_t test_vfncvtbf16_f_f_w_bf16m1_rm_tumu(vbool16_t mask, vbfloat16m1_t maskedoff, vfloat32m2_t src, size_t vl) {24  // expected-error@+1 {{argument value 5 is outside the valid range [0, 4]}}25  return __riscv_vfncvtbf16_f_f_w_bf16m1_rm_tumu(mask, maskedoff, src, 5, vl);26}27 28vbfloat16m1_t test_vfncvtbf16_f_f_w_bf16m1_rm_mu(vbool16_t mask, vbfloat16m1_t maskedoff, vfloat32m2_t src, size_t vl) {29  // expected-error@+1 {{argument value 5 is outside the valid range [0, 4]}}30  return __riscv_vfncvtbf16_f_f_w_bf16m1_rm_mu(mask, maskedoff, src, 5, vl);31}32