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