brintos

brintos / llvm-project-archived public Read only

0
0
Text · 731 B · 988f8aa Raw
17 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:   -target-feature +zvksh -target-feature +experimental -fsyntax-only -verify %s5 6#include <riscv_vector.h>7 8vuint32m2_t test_vsm3c_vi_u32m2(vuint32m2_t vd, vuint32m2_t vs2, size_t vl) {9// expected-error@+1 {{argument value 33 is outside the valid range [0, 31]}}10  return __riscv_vsm3c_vi_u32m2(vd, vs2, 33, vl);11}12 13vuint32m2_t test_vsm3c_vi_u32m2_tu(vuint32m2_t merge, vuint32m2_t vs2, size_t vl) {14// expected-error@+1 {{argument value 33 is outside the valid range [0, 31]}}15  return __riscv_vsm3c_vi_u32m2_tu(merge, vs2, 33, vl);16}17