brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.3 KiB · 725c126 Raw
26 lines · c
1// REQUIRES: riscv-registered-target2// RUN: %clang_cc1 -triple riscv64 -target-feature +v -target-feature +zvkned \3// RUN:   -target-feature +zvksh -target-feature +experimental %s -fsyntax-only -verify4 5#include <riscv_vector.h>6 7void test_vaeskf1_tu(vuint32mf2_t vd, vuint32mf2_t vs2, size_t vl) {8  __riscv_vaeskf1_vi_u32mf2_tu(vd, vs2, 0, vl); // expected-error {{RISC-V type 'vuint32mf2_t' (aka '__rvv_uint32mf2_t') requires the 'zvl256b' extension}}9}10 11void test_vsm3c_tu(vuint32mf2_t vd, vuint32mf2_t vs2, size_t vl) {12  __riscv_vsm3c_vi_u32mf2_tu(vd, vs2, 0, vl); // expected-error {{RISC-V type 'vuint32mf2_t' (aka '__rvv_uint32mf2_t') requires the 'zvl512b' extension}}13}14 15void test_vaeskf1(vuint32mf2_t vs2, size_t vl) {16  __riscv_vaeskf1_vi_u32mf2(vs2, 0, vl); // expected-error {{RISC-V type 'vuint32mf2_t' (aka '__rvv_uint32mf2_t') requires the 'zvl256b' extension}}17}18 19void test_vaesdf(vuint32mf2_t vd, vuint32mf2_t vs2, size_t vl) {20  __riscv_vaesdf_vv_u32mf2(vd, vs2, vl); // expected-error {{RISC-V type 'vuint32mf2_t' (aka '__rvv_uint32mf2_t') requires the 'zvl256b' extension}}21}22 23void test_vaesdf_vs(vuint32m2_t vd, vuint32mf2_t vs2, size_t vl) {24  __riscv_vaesdf_vs_u32mf2_u32m2(vd, vs2, vl); // expected-error {{RISC-V type 'vuint32mf2_t' (aka '__rvv_uint32mf2_t') requires the 'zvl256b' extension}}25}26