Debian Codegraph @

gcc/testsuite/gcc.target/riscv/rvv/base/bug-9.c

raw
1 /* Test that we do not have ice when compile */
2 /* { dg-do assemble } */
3 /* { dg-options "-march=rv64gcv -mabi=lp64d -O2" { target { rv64 } } } */
4 /* { dg-options "-march=rv32gcv -mabi=ilp32d -O2" { target { rv32 } } } */
5
6 #include "riscv_vector.h"
7
8 vfloat16m1_t f0 (vfloat16m1_t vs2, vfloat16m1_t vs1, size_t vl)
9 {
10 return __riscv_vfadd_vv_f16m1_rm (vs2, vs1, 0, vl);
11 }
12
13 /* { dg-error "return type 'vfloat16m1_t' requires the zvfhmin or zvfh ISA extension" "" { target { "riscv*-*-*" } } 0 } */
14 /* { dg-error "argument type 'vfloat16m1_t' requires the zvfhmin or zvfh ISA extension" "" { target { "riscv*-*-*" } } 0 } */