Debian Codegraph @

gcc/testsuite/gcc.target/riscv/rvv/base/target_attribute_v_with_intrinsic-18.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-march=rv64gc -mabi=lp64d -O3" } */
3
4 #include "riscv_vector.h"
5
6 vfloat32m1_t
7 __attribute__((target("arch=+zve32x")))
8 test_1 (vfloat32m1_t a, vfloat32m1_t b, size_t vl)
9 {
10 return __riscv_vfadd_vv_f32m1 (a, b, vl);
11 }
12
13 /* { dg-error "return type 'vfloat32m1_t' requires the zve32f, zve64f, zve64d or v ISA extension" "" { target { "riscv*-*-*" } } 0 } */
14 /* { dg-error "argument type 'vfloat32m1_t' requires the zve32f, zve64f, zve64d or v ISA extension" "" { target { "riscv*-*-*" } } 0 } */