gcc/testsuite/gcc.target/riscv/rvv/base/intrinsic_required_ext-2.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-march=rv64gc -mabi=lp64d -O3" } */ |
| 3 | |
| 4 | #include "riscv_vector.h" |
| 5 | |
| 6 | vuint32m1_t |
| 7 | __attribute__((target("arch=+v"))) |
| 8 | test_1 (vuint32m1_t op_1, vuint32m1_t op_2, size_t vl) |
| 9 | { |
| 10 | return __riscv_vandn_vv_u32m1 (op_1, op_2, vl); /* { dg-error {built-in function '__riscv_vandn_vv_u32m1\(op_1, op_2, vl\)' requires the 'zvbb or zvkb' ISA extension} } */ |
| 11 | } |