Debian Codegraph @

gcc/testsuite/gcc.target/riscv/rvv/base/intrinsic_required_ext-8.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 dest, vuint64m1_t op_1, vuint64m1_t op_2, size_t vl)
9 {
10 return __riscv_vsha2ms_vv_u64m1 (dest, op_1, op_2, vl); /* { dg-error {built-in function '__riscv_vsha2ms_vv_u64m1\(dest, op_1, op_2, vl\)' requires the 'zvknhb' ISA extension} } */
11 }